From: Kito Cheng Date: Mon, 9 Jun 2014 04:21:42 +0000 (+0000) Subject: ira.c (ira): Don't call init_caller_save if LRA enabled since LRA use its own infrast... X-Git-Tag: releases/gcc-5.1.0~7013 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=001010df9d0be0ee43974bc2b5b44dcb878a7318;p=thirdparty%2Fgcc.git ira.c (ira): Don't call init_caller_save if LRA enabled since LRA use its own infrastructure... * ira.c (ira): Don't call init_caller_save if LRA enabled since LRA use its own infrastructure to handle that. From-SVN: r211364 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2e6c5243103a..2df8ce283eb7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-06-09 Kito Cheng + + * 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 * symtab.c (dump_symtab_base): Update dumping. diff --git a/gcc/ira.c b/gcc/ira.c index 9d9bdf9bdda0..6ee1c140f137 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)