Unreviewed patch (was: another bootstrap failure onsparc-sun-solaris28 in cp/xref.o)
John Wehle
john@feith.com
Thu Sep 27 13:54:00 GMT 2001
>> due to gcc outputing .uaxword which the Sun assembler dislikes when
>> targeting the 32 bit instruction set.
>
>I suspect that one can simply do
>
>#define UNALIGNED_DOUBLE_INT_ASM_OP (TARGET_ARCH64 ? ".uaxword" : NULL)
Unfortunately that doesn't suffice.
> but the patch didn't describe what caused the problem.
When compiling libobjc/linking.m the compiler outputs ".uaxword" in
order to output a double int. Changing UNALIGNED_DOUBLE_INT_ASM_OP
to return NULL when ! TARGET_ARCH64 causes the bootstrap to fail
because the dw2_asm_output_* routines assume that unaligned_integer_asm_op
always returns a string.
assemble_integer is capable of outputting unaligned integers and
knows how to output a double int even when UNALIGNED_DOUBLE_INT_ASM_OP
is NULL. The patch replaces unaligned_integer_asm_op with assemble_integer.
-- John
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------
More information about the Gcc
mailing list