32-bit host pdp11 breakage
authorAlan Modra <amodra@gmail.com>
Tue, 1 Sep 2020 11:53:52 +0000 (21:23 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 2 Sep 2020 07:00:42 +0000 (16:30 +0930)
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.

gas/ChangeLog
gas/config/tc-pdp11.c

index 167f357febb4dbd61598d785ba3b6b23fe736b9e..b7cc8cb3d95cf196e36afc272183ef4ef6551a1a 100644 (file)
@@ -1,3 +1,8 @@
+2020-09-02  Alan Modra  <amodra@gmail.com>
+
+       * config/tc-pdp11.c (md_number_to_chars): Condition nbytes=8 code
+       on BFD64.
+
 2020-09-02  Cooper Qu  <cooper.qu@linux.alibaba.com>
 
        * config/tc-csky.c (csky_cpus): Add ck803r3.
index 1230daee34bc11f6d619d69b66a0e68baf8eda35..6bf81e541b88cb1bbf554a47471c76093ec2dd9a 100644 (file)
@@ -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);
     }
This page took 0.0279 seconds and 4 git commands to generate.