This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[3.4] Backport to 3.4 of patch to mainline PR target/20673 to fix PCH failures on sparc64-*-linux
- From: Christian Joensson <christian dot joensson at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Eric Botcazou <ebotcazou at libertysurf dot fr>
- Date: Fri, 5 Aug 2005 07:39:46 +0200
- Subject: [3.4] Backport to 3.4 of patch to mainline PR target/20673 to fix PCH failures on sparc64-*-linux
- Reply-to: Christian Joensson <christian dot joensson at gmail dot com>
This is a backport to the 3.4 branch of a patch to mainline PR
target/20673 to fix PCH failures on sparc64-*-linux.
Original patch submitted here:
http://gcc.gnu.org/ml/gcc-patches/2005-04/msg01761.html
2005-04-15 David S. Miller <davem@davemloft.net>
PR target/20673
* config/sparc/sparc.h (sparc_hard_reg_printed): Mark as GTY(()).
Attached one-liner patch is just a translation of Dave's original patch...
Regtested fine:
LAST_UPDATED: Thu Aug 4 14:49:27 UTC 2005 with patch from
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19300#c27
Native configuration is sparc64-unknown-linux-gnu
=== gcc tests ===
Running target unix/-m64
FAIL: gcc.c-torture/execute/conversion.c execution, -O3 -fomit-frame-pointer
FAIL: gcc.c-torture/execute/conversion.c execution, -O3 -g
UNRESOLVED: gcc.c-torture/execute/simd-4.c execution, -O0
UNRESOLVED: gcc.c-torture/execute/va-arg-25.c execution, -O0
UNRESOLVED: gcc.c-torture/execute/va-arg-25.c execution, -O1
UNRESOLVED: gcc.c-torture/execute/va-arg-25.c execution, -O2
UNRESOLVED: gcc.c-torture/execute/va-arg-25.c execution, -O3
-fomit-frame-pointer
UNRESOLVED: gcc.c-torture/execute/va-arg-25.c execution, -O3 -g
UNRESOLVED: gcc.c-torture/execute/va-arg-25.c execution, -Os
UNRESOLVED: gcc.dg/compat/vector-1 c_compat_x_tst.o-c_compat_y_tst.o link
UNRESOLVED: gcc.dg/compat/vector-1 c_compat_x_tst.o-c_compat_y_tst.o execute
UNRESOLVED: gcc.dg/compat/vector-2 c_compat_x_tst.o-c_compat_y_tst.o link
UNRESOLVED: gcc.dg/compat/vector-2 c_compat_x_tst.o-c_compat_y_tst.o execute
FAIL: gcc.dg/builtins-18.c (test for excess errors)
FAIL: gcc.dg/cleanup-8.c execution test
FAIL: gcc.dg/cleanup-9.c execution test
XPASS: gcc.dg/uninit-4.c uninitialized variable warning (test for
bogus messages, line 26)
FAIL: gcc.dg/special/gcsec-1.c (test for excess errors)
FAIL: gcc.dg/tls/alias-1.c (test for excess errors)
FAIL: gcc.dg/tls/opt-2.c (test for excess errors)
FAIL: linkage.c
=== gcc Summary for unix/-m64 ===
# of expected passes 24826
# of unexpected failures 9
# of unexpected successes 1
# of expected failures 91
# of unresolved testcases 11
# of untested testcases 7
# of unsupported tests 354
Running target unix
XPASS: gcc.c-torture/compile/simd-5.c -O0 (test for excess errors)
XPASS: gcc.c-torture/compile/simd-5.c -O1 (test for excess errors)
XPASS: gcc.c-torture/execute/20020227-1.c execution, -O2
XPASS: gcc.c-torture/execute/20020227-1.c execution, -O3 -fomit-frame-pointer
XPASS: gcc.c-torture/execute/20020227-1.c execution, -O3 -g
XPASS: gcc.c-torture/execute/20020227-1.c execution, -Os
UNRESOLVED: gcc.c-torture/execute/simd-4.c execution, -O0
XPASS: gcc.c-torture/execute/va-arg-25.c compilation, -O0
XPASS: gcc.c-torture/execute/va-arg-25.c compilation, -O1
XPASS: gcc.c-torture/execute/va-arg-25.c compilation, -O2
XPASS: gcc.c-torture/execute/va-arg-25.c compilation, -O3 -fomit-frame-pointer
XPASS: gcc.c-torture/execute/va-arg-25.c compilation, -O3 -g
XPASS: gcc.c-torture/execute/va-arg-25.c compilation, -Os
UNRESOLVED: gcc.dg/compat/vector-1 c_compat_x_tst.o-c_compat_y_tst.o link
UNRESOLVED: gcc.dg/compat/vector-1 c_compat_x_tst.o-c_compat_y_tst.o execute
UNRESOLVED: gcc.dg/compat/vector-2 c_compat_x_tst.o-c_compat_y_tst.o link
UNRESOLVED: gcc.dg/compat/vector-2 c_compat_x_tst.o-c_compat_y_tst.o execute
FAIL: gcc.dg/cleanup-8.c execution test
FAIL: gcc.dg/cleanup-9.c execution test
XPASS: gcc.dg/uninit-4.c uninitialized variable warning (test for
bogus messages, line 26)
=== gcc Summary for unix ===
# of expected passes 24839
# of unexpected failures 2
# of unexpected successes 13
# of expected failures 79
# of unresolved testcases 5
# of untested testcases 7
# of unsupported tests 354
=== gcc Summary ===
# of expected passes 49665
# of unexpected failures 11
# of unexpected successes 14
# of expected failures 170
# of unresolved testcases 16
# of untested testcases 14
# of unsupported tests 708
/usr/local/src/branch/objdir.3.4/gcc/xgcc version 3.4.5 20050804 (prerelease)
=== g++ tests ===
Running target unix/-m64
WARNING: g++.dg/eh/simd-1.C compilation failed to produce executable
WARNING: g++.dg/eh/simd-2.C compilation failed to produce executable
XPASS: g++.dg/rtti/tinfo1.C scan-assembler _ZTIP9CTemplateIhE:
XPASS: g++.dg/rtti/tinfo1.C scan-assembler-not .globl[ \\t]+_ZTIP9CTemplateIhE
WARNING: g++.old-deja/g++.mike/p10769a.C compilation failed to produce
executable
WARNING: g++.old-deja/g++.other/enum5.C compilation failed to produce executable
XPASS: g++.old-deja/g++.other/init5.C execution test
WARNING: g++.old-deja/g++.pt/friend44.C compilation failed to produce executable
=== g++ Summary for unix/-m64 ===
# of expected passes 9821
# of unexpected successes 3
# of expected failures 72
# of unsupported tests 81
Running target unix
WARNING: g++.dg/eh/simd-1.C compilation failed to produce executable
WARNING: g++.dg/eh/simd-2.C compilation failed to produce executable
XPASS: g++.dg/rtti/tinfo1.C scan-assembler _ZTIP9CTemplateIhE:
XPASS: g++.dg/rtti/tinfo1.C scan-assembler-not .globl[ \\t]+_ZTIP9CTemplateIhE
WARNING: g++.old-deja/g++.mike/p10769a.C compilation failed to produce
executable
WARNING: g++.old-deja/g++.other/enum5.C compilation failed to produce executable
XPASS: g++.old-deja/g++.other/init5.C execution test
WARNING: g++.old-deja/g++.pt/friend44.C compilation failed to produce executable
=== g++ Summary for unix ===
# of expected passes 9821
# of unexpected successes 3
# of expected failures 72
# of unsupported tests 81
=== g++ Summary ===
# of expected passes 19642
# of unexpected successes 6
# of expected failures 144
# of unsupported tests 162
/usr/local/src/branch/objdir.3.4/gcc/testsuite/../g++ version 3.4.5
20050804 (prerelease)
Pre-approved by Eric Botcazou for 3.4 branch. I have to ask someone
lese to commit... Eric?
--
Cheers,
/ChJ
--- config/sparc/sparc.h.orig 2004-05-31 23:40:19.000000000 +0200
+++ config/sparc/sparc.h 2005-08-04 16:34:13.000000000 +0200
@@ -1892,7 +1892,7 @@
case of a global register variable occupying more than one register
we prefix the second and following registers with .gnu.part1. etc. */
-extern char sparc_hard_reg_printed[8];
+extern GTY(()) char sparc_hard_reg_printed[8];
#ifdef HAVE_AS_REGISTER_PSEUDO_OP
#define ASM_DECLARE_REGISTER_GLOBAL(FILE, DECL, REGNO, NAME) \