This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Unreviewed patch (was: another bootstrap failure onsparc-sun-solaris28 in cp/xref.o)
- To: rth at redhat dot com
- Subject: Re: Unreviewed patch (was: another bootstrap failure onsparc-sun-solaris28 in cp/xref.o)
- From: John Wehle <john at feith dot com>
- Date: Thu, 27 Sep 2001 16:53:35 -0400 (EDT)
- Cc: gcc at gcc dot gnu dot org, pfeifer at dbai dot tuwien dot ac dot at, lucier at math dot purdue dot edu
>> 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 | |
-------------------------------------------------------------------------