projects
/
gcc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix sparc %gsr write elimination and add a testcase.
[gcc.git]
/
gcc
/
config
/
sparc
/
sparc.c
diff --git
a/gcc/config/sparc/sparc.c
b/gcc/config/sparc/sparc.c
index 8193d1cf4889772ce1c97f35ce76b16834b5f03a..a395321dd3e9ecda6265d0c429e53a5d0954ff37 100644
(file)
--- a/
gcc/config/sparc/sparc.c
+++ b/
gcc/config/sparc/sparc.c
@@
-10426,6
+10426,8
@@
sparc_conditional_register_usage (void)
for (regno = 0; regno < FIRST_PSEUDO_REGISTER; regno++)
leaf_reg_remap [regno] = regno;
}
+ if (TARGET_VIS)
+ global_regs[SPARC_GSR_REG] = 1;
}
/* Implement TARGET_PREFERRED_RELOAD_CLASS