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:
Alan Modra
2020-09-01 21:23:52 +09:30
parent 4211a34001
commit f6e6b05211
2 changed files with 7 additions and 0 deletions

View 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.

View 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);
}