* Irix6.5 bootstrap failure
@ 2002-12-16 7:00 Jan Hubicka
2002-12-16 11:11 ` Eric Christopher
0 siblings, 1 reply; 2+ messages in thread
From: Jan Hubicka @ 2002-12-16 7:00 UTC (permalink / raw)
To: aoliva, gcc-patches
Hi,
Your patch:
Wed Nov 6 18:54:47 2002 Alexandre Oliva <aoliva@redhat.com>
* config/mips/mips.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output
.gpword/.gpdword for ABI_N32 and ABI_64 too, if using the GNU
assembler.
* config/mips/mips.md (tablejump_internal3): Output .cpadd
before jump on ABI_N32 too.
(tablejump_internal4): Ditto on ABI_64. Increase maximum
length to match.
Causes bootstrap failure for me as gpword is recognized by native as,
but always reports error message that argument is global symbol. I
guess it is implementation bug in Irix as (or I am just not able to
write local symbol in Irix as syntax). Only way I found to deal
with this is the attached patch. (or configury bit checking whether the
feature works). Does this look sane to you?
? mipsfix
Index: mips.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.h,v
retrieving revision 1.215.2.11
diff -c -3 -p -r1.215.2.11 mips.h
*** mips.h 17 Nov 2002 17:13:51 -0000 1.215.2.11
--- mips.h 16 Dec 2002 14:57:16 -0000
*************** do { \
*** 4386,4392 ****
Pmode == DImode ? ".dword" : ".word", \
LOCAL_LABEL_PREFIX, VALUE, LOCAL_LABEL_PREFIX, REL); \
else if (mips_abi == ABI_32 || mips_abi == ABI_O64 \
! || mips_abi == ABI_N32 \
|| (TARGET_GAS && mips_abi == ABI_64)) \
fprintf (STREAM, "\t%s\t%sL%d\n", \
Pmode == DImode ? ".gpdword" : ".gpword", \
--- 4386,4392 ----
Pmode == DImode ? ".dword" : ".word", \
LOCAL_LABEL_PREFIX, VALUE, LOCAL_LABEL_PREFIX, REL); \
else if (mips_abi == ABI_32 || mips_abi == ABI_O64 \
! || (TARGET_GAS && mips_abi == ABI_N32) \
|| (TARGET_GAS && mips_abi == ABI_64)) \
fprintf (STREAM, "\t%s\t%sL%d\n", \
Pmode == DImode ? ".gpdword" : ".gpword", \
Index: mips.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.md,v
retrieving revision 1.141.2.7
diff -c -3 -p -r1.141.2.7 mips.md
*** mips.md 14 Dec 2002 18:31:01 -0000 1.141.2.7
--- mips.md 16 Dec 2002 14:57:18 -0000
*************** move\\t%0,%z4\\n\\
*** 9799,9805 ****
"*
{
/* .cpadd expands to add REG,REG,$gp when pic, and nothing when not pic. */
! if (mips_abi == ABI_32 || mips_abi == ABI_O64 || mips_abi == ABI_N32)
output_asm_insn (\".cpadd\\t%0\", operands);
return \"%*j\\t%0\";
}"
--- 9799,9806 ----
"*
{
/* .cpadd expands to add REG,REG,$gp when pic, and nothing when not pic. */
! if (mips_abi == ABI_32 || mips_abi == ABI_O64
! || (mips_abi == ABI_N32 && TARGET_GAS))
output_asm_insn (\".cpadd\\t%0\", operands);
return \"%*j\\t%0\";
}"
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Irix6.5 bootstrap failure
2002-12-16 7:00 Irix6.5 bootstrap failure Jan Hubicka
@ 2002-12-16 11:11 ` Eric Christopher
0 siblings, 0 replies; 2+ messages in thread
From: Eric Christopher @ 2002-12-16 11:11 UTC (permalink / raw)
To: Jan Hubicka; +Cc: Alexandre Oliva, gcc-patches
Thank Jan, this is correct, please check it in :)
(I guess Alex and I have an assembler that works for this and there were
some versions that don't. Ugh.)
-eric
--
Yeah, I used to play basketball...
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-12-16 19:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-16 7:00 Irix6.5 bootstrap failure Jan Hubicka
2002-12-16 11:11 ` Eric Christopher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).