32-bit host pdp11 breakage

Paul Koning paulkoning@comcast.net
Wed Sep 2 17:37:20 GMT 2020



> On Sep 2, 2020, at 1:05 PM, Stephen Casner <casner@acm.org> wrote:
> 
> On Wed, 2 Sep 2020, Alan Modra via Binutils wrote:
> 
>> 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.
> 
> Thanks.  I did not have infrastructure to test 32-bit host when I
> added support for .quad, so I missed this problem.  Does this
> complaint mean that the assembly language is constrained not to use
> .quad for any target when the host is 32-bit?  If so, then the tests
> in the testsuite that use .quad should be gated not to run on a 32-bit
> host?  Or should I have enabled it by some other change?
> 
>                                                        -- Steve

Judging by the patch, I believe the answer is that it is supposed to work, but the code has to be written in such a way that it does for either 32 or 64 bit hosts.

	paul




More information about the Binutils mailing list