gccrs: Add port of FNV hash used during legacy symbol mangling
authorPhilip Herron <philip.herron@embecosm.com>
Tue, 23 Aug 2022 15:22:47 +0000 (16:22 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 13 Dec 2022 13:00:05 +0000 (14:00 +0100)
commitc7f8347e83caf8a66fb71e411415ae869c6e6a5c
treec164bf5745f8840526bd1f8b7dd1889979b46c23
parentb32b1b1576a6df965cb3fcbed3780b9f045286b2
gccrs: Add port of FNV hash used during legacy symbol mangling

This hash was ported from the Go runtime, as we needed a hash for the legacy
symbol mangling system. All symbols in Rust contain a hash of some
metadata for uniqueness on generic functions.

gcc/rust/
* util/fnv-hash.h: New.
gcc/rust/util/fnv-hash.h [new file with mode: 0644]