From: Alan Modra Date: Tue, 1 Sep 2020 11:53:52 +0000 (+0930) Subject: 32-bit host pdp11 breakage X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f6e6b0521147cde2c5861c4c755b69e7839233cb;p=binutils-gdb.git 32-bit host pdp11 breakage If bfd_vma is 32 bits, gcc complains about shift counts exceeding width of the type. * config/tc-pdp11.c (md_number_to_chars): Condition nbytes=8 code on BFD64. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 167f357febb..b7cc8cb3d95 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2020-09-02 Alan Modra + + * config/tc-pdp11.c (md_number_to_chars): Condition nbytes=8 code + on BFD64. + 2020-09-02 Cooper Qu * config/tc-csky.c (csky_cpus): Add ck803r3. diff --git a/gas/config/tc-pdp11.c b/gas/config/tc-pdp11.c index 1230daee34b..6bf81e541b8 100644 --- a/gas/config/tc-pdp11.c +++ b/gas/config/tc-pdp11.c @@ -220,6 +220,7 @@ md_number_to_chars (char con[], valueT value, int nbytes) con[2] = value & 0xff; con[3] = (value >> 8) & 0xff; break; +#ifdef BFD64 case 8: con[0] = (value >> 48) & 0xff; con[1] = (value >> 56) & 0xff; @@ -230,6 +231,7 @@ md_number_to_chars (char con[], valueT value, int nbytes) con[6] = value & 0xff; con[7] = (value >> 8) & 0xff; break; +#endif default: BAD_CASE (nbytes); }