mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 00:59:15 +08:00
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.
This commit is contained in:
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user