From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Wehle To: rth@redhat.com Cc: gcc@gcc.gnu.org, pfeifer@dbai.tuwien.ac.at, lucier@math.purdue.edu Subject: Re: Unreviewed patch (was: another bootstrap failure onsparc-sun-solaris28 in cp/xref.o) Date: Thu, 27 Sep 2001 13:54:00 -0000 Message-id: <200109272053.f8RKrZ802069@jwlab.FEITH.COM> X-SW-Source: 2001-09/msg01142.html >> 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 | | -------------------------------------------------------------------------