summaryrefslogtreecommitdiff
path: root/gcc/ira.c
diff options
context:
space:
mode:
authorjasonwucj <jasonwucj@138bc75d-0d04-0410-961f-82ee72b054a4>2014-06-09 04:21:42 +0000
committerjasonwucj <jasonwucj@138bc75d-0d04-0410-961f-82ee72b054a4>2014-06-09 04:21:42 +0000
commit2d983bac25157fb644fc567e2e538c1fd8f1ac98 (patch)
tree62d9ce1b80a888d001a918a88fe422ddf42a3c31 /gcc/ira.c
parent71e19e54060804493e13748613077b0e69c0cfd9 (diff)
downloadgcc-2d983bac25157fb644fc567e2e538c1fd8f1ac98.tar.gz
* ira.c (ira): Don't call init_caller_save if LRA enabled
since LRA use its own infrastructure to handle that. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211364 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ira.c')
-rw-r--r--gcc/ira.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ira.c b/gcc/ira.c
index 9d9bdf9bdda..6ee1c140f13 100644
--- a/gcc/ira.c
+++ b/gcc/ira.c
@@ -5166,7 +5166,8 @@ ira (FILE *f)
#endif
bitmap_obstack_initialize (&ira_bitmap_obstack);
- if (flag_caller_saves)
+ /* LRA uses its own infrastructure to handle caller save registers. */
+ if (flag_caller_saves && !ira_use_lra_p)
init_caller_save ();
if (flag_ira_verbose < 10)