]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ira.c (ira): Don't call init_caller_save if LRA enabled since LRA use its own infrast...
authorKito Cheng <kito@0xlab.org>
Mon, 9 Jun 2014 04:21:42 +0000 (04:21 +0000)
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>
Mon, 9 Jun 2014 04:21:42 +0000 (04:21 +0000)
* ira.c (ira): Don't call init_caller_save if LRA enabled
since LRA use its own infrastructure to handle that.

From-SVN: r211364

gcc/ChangeLog
gcc/ira.c

index 2e6c5243103af24336b70840ab71d08384f0ec69..2df8ce283eb74e99d0a5121af75f350c565fd310 100644 (file)
@@ -1,3 +1,8 @@
+2014-06-09  Kito Cheng  <kito@0xlab.org>
+
+       * ira.c (ira): Don't call init_caller_save if LRA enabled
+       since LRA use its own infrastructure to handle that.
+
 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
 
        * symtab.c (dump_symtab_base): Update dumping.
index 9d9bdf9bdda073b594ca148601a8acd3df50b3ac..6ee1c140f1377c38bcc342d66c0b0394235511ee 100644 (file)
--- 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)