lddigest 32-bit support and gcc-4 compile errors
authorAlan Modra <amodra@gmail.com>
Wed, 8 Mar 2023 10:56:52 +0000 (21:26 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 9 Mar 2023 05:32:57 +0000 (16:02 +1030)
commitbf0e35375461ef2a17e2872e7f5c1446a5924b64
tree7a340aae6467a79926b417febb38ab6232a20e79
parent1478a11d76dbd4de9a0de43b1ea736223b3662c2
lddigest 32-bit support and gcc-4 compile errors

* ld.texi: Revert 2023-03-08 commit 9a534b9f8e3d.
* testsuite/ld-scripts/crc64-poly.d: Likewise.
* testsuite/ld-scripts/crc64-poly.t: Likewise.
* lddigest.c: Formatting.
(get_uint64_t): New function.
(lang_add_digest): Take etree_type* args.  Replace "illegal" with
"invalid" in error message.
* lddigest.h (lang_add_digest): Update prototype.
* lddigest_tab.c (algorithms): Work around gcc-4 errors.
* ldgram.y (polynome): Adjust lang_add_digest call.
* testsuite/ld-scripts/crc64-poly-size.d: Update expected error.
ld/ld.texi
ld/lddigest.c
ld/lddigest.h
ld/lddigest_tab.c
ld/ldgram.y
ld/testsuite/ld-scripts/crc64-poly-size.d
ld/testsuite/ld-scripts/crc64-poly.d
ld/testsuite/ld-scripts/crc64-poly.t