diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2014-07-24 15:17:54 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2014-07-24 15:17:54 +0000 |
commit | 2175bf4930b19cb7cb93567277a931a950213751 (patch) | |
tree | b62c3c1aabe9db6804f2c8fca2b2de8865db370f /gcc | |
parent | 1a8cb1557afa68b6924036babfa7b68f2d9bdfec (diff) | |
download | gcc-2175bf4930b19cb7cb93567277a931a950213751.zip gcc-2175bf4930b19cb7cb93567277a931a950213751.tar.gz gcc-2175bf4930b19cb7cb93567277a931a950213751.tar.bz2 |
re PR rtl-optimization/61629 (FAIL: gcc.dg/20020312-2.c (internal compiler error))
gcc/
PR rtl-optimization/61629
* reginfo.c (reinit_regs): Only call ira_init and recog_init if
they have already been initialized.
From-SVN: r213003
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/reginfo.c | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3418ae7..3218429 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com> + PR rtl-optimization/61629 + * reginfo.c (reinit_regs): Only call ira_init and recog_init if + they have already been initialized. + +2014-07-24 Richard Sandiford <rdsandiford@googlemail.com> + PR middle-end/61268 * function.c (assign_parm_setup_reg): Prevent invalid sharing of DECL_INCOMING_RTL and entry_parm. diff --git a/gcc/reginfo.c b/gcc/reginfo.c index 5bf07f6..7668be0 100644 --- a/gcc/reginfo.c +++ b/gcc/reginfo.c @@ -533,8 +533,11 @@ reinit_regs (void) init_regs (); /* caller_save needs to be re-initialized. */ caller_save_initialized_p = false; - ira_init (); - recog_init (); + if (this_target_rtl->target_specific_initialized) + { + ira_init (); + recog_init (); + } } /* Initialize some fake stack-frame MEM references for use in |