aboutsummaryrefslogtreecommitdiff
path: root/ld/ldgram.y
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-03-08 21:26:52 +1030
committerAlan Modra <amodra@gmail.com>2023-03-09 16:02:57 +1030
commitbf0e35375461ef2a17e2872e7f5c1446a5924b64 (patch)
tree7a340aae6467a79926b417febb38ab6232a20e79 /ld/ldgram.y
parent1478a11d76dbd4de9a0de43b1ea736223b3662c2 (diff)
downloadbinutils-bf0e35375461ef2a17e2872e7f5c1446a5924b64.zip
binutils-bf0e35375461ef2a17e2872e7f5c1446a5924b64.tar.gz
binutils-bf0e35375461ef2a17e2872e7f5c1446a5924b64.tar.bz2
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.
Diffstat (limited to 'ld/ldgram.y')
-rw-r--r--ld/ldgram.y14
1 files changed, 7 insertions, 7 deletions
diff --git a/ld/ldgram.y b/ld/ldgram.y
index 54bf8e0..93aff6e 100644
--- a/ld/ldgram.y
+++ b/ld/ldgram.y
@@ -747,13 +747,13 @@ polynome:
mustbe_exp ',' mustbe_exp ',' mustbe_exp ')'
{
lang_add_digest (
- $3->value.value, /* size */
- $5->value.value, /* polynome */
- $7->value.value, /* initial value */
- $9->value.value, /* xor value */
- $11->value.value, /* input reflected */
- $13->value.value, /* output reflected */
- $15->value.value /* reciprocal */
+ $3, /* size */
+ $5, /* polynome */
+ $7, /* initial value */
+ $9, /* xor value */
+ $11, /* input reflected */
+ $13, /* output reflected */
+ $15 /* reciprocal */
);
polynome_valid = true;
}