From 2175bf4930b19cb7cb93567277a931a950213751 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Thu, 24 Jul 2014 15:17:54 +0000 Subject: 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 --- gcc/ChangeLog | 6 ++++++ gcc/reginfo.c | 7 +++++-- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'gcc') 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 + 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 + 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 -- cgit v1.1