This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix PCH failures on sparc64-*-linux
- From: "David S. Miller" <davem at davemloft dot net>
- To: gcc-patches at gcc dot gnu dot org
- Cc: ebotcazou at libertysurf dot fr, mark at codesourcery dot com
- Date: Fri, 15 Apr 2005 12:07:11 -0700
- Subject: [PATCH] Fix PCH failures on sparc64-*-linux
Because sparc_hard_reg_printed is not marked GTY(()), we output
.register directives multiple times when using precompiled headers.
This causes the static-[123] PCH test assembler comparisons to fail.
This failure does not show up on Solaris targets only because the
-mno-app-reg option is the default there, so .register directives
are not usually output unless this setting is changed on the command
line.
Mark, ok for 4.0.0?
2005-04-15 David S. Miller <davem@davemloft.net>
* config/sparc/sparc.h (sparc_hard_reg_printed): Mark as GTY(()).
--- config/sparc/sparc.h 13 Apr 2005 08:47:22 -0000 1.278
+++ config/sparc/sparc.h 15 Apr 2005 19:07:15 -0000
@@ -1608,7 +1608,7 @@ extern GTY(()) rtx sparc_compare_op1;
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) \