aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-09-01 21:23:52 +0930
committerAlan Modra <amodra@gmail.com>2020-09-02 16:30:42 +0930
commitf6e6b0521147cde2c5861c4c755b69e7839233cb (patch)
tree1aaf6b05bd5a5cd291b590ba523b186752c2062c /gas
parent4211a3400108b45732415cda0cacb087ab8690b1 (diff)
downloadgdb-f6e6b0521147cde2c5861c4c755b69e7839233cb.zip
gdb-f6e6b0521147cde2c5861c4c755b69e7839233cb.tar.gz
gdb-f6e6b0521147cde2c5861c4c755b69e7839233cb.tar.bz2
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.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-pdp11.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 167f357..b7cc8cb 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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.
diff --git a/gas/config/tc-pdp11.c b/gas/config/tc-pdp11.c
index 1230dae..6bf81e5 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);
}