aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2006-02-02 23:49:01 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2006-02-02 23:49:01 +0100
commit392e57568d710517638bbcb5a308d3e296455203 (patch)
treed419788b8d1470ea6cf0ebd1d5a3603f0c35ed7b
parentf767d7943513ae0fb8f85484f802389853dc8a71 (diff)
downloadgcc-392e57568d710517638bbcb5a308d3e296455203.zip
gcc-392e57568d710517638bbcb5a308d3e296455203.tar.gz
gcc-392e57568d710517638bbcb5a308d3e296455203.tar.bz2
sparc.c (sparc_output_scratch_registers): Use #ignore instead of #scratch for %g7 .register directive.
* config/sparc/sparc.c (sparc_output_scratch_registers): Use #ignore instead of #scratch for %g7 .register directive. From-SVN: r110522
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/sparc/sparc.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index eb8ae7a..ac296e0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2006-02-02 Jakub Jelinek <jakub@redhat.com>
+
+ * config/sparc/sparc.c (sparc_output_scratch_registers): Use
+ #ignore instead of #scratch for %g7 .register directive.
+
2006-02-02 Andreas Tobler <a.tobler@schweiz.ch>
* config/sparc/freebsd.h (ENDFILE_SPEC): Add space to separate
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c
index f311247..2d2adba 100644
--- a/gcc/config/sparc/sparc.c
+++ b/gcc/config/sparc/sparc.c
@@ -3693,7 +3693,10 @@ sparc_output_scratch_registers (FILE *file ATTRIBUTE_UNUSED)
&& ! sparc_hard_reg_printed [i])
{
sparc_hard_reg_printed [i] = 1;
- fprintf (file, "\t.register\t%%g%d, #scratch\n", i);
+ /* %g7 is used as TLS base register, use #ignore
+ for it instead of #scratch. */
+ fprintf (file, "\t.register\t%%g%d, #%s\n", i,
+ i == 7 ? "ignore" : "scratch");
}
if (i == 3) i = 5;
}