From 6750565c3686d82123ad9e0e2a153cfecdf7a2d9 Mon Sep 17 00:00:00 2001 From: Vladimir Makarov Date: Mon, 10 Nov 2014 21:33:06 +0000 Subject: [PATCH] re PR rtl-optimization/63620 (RELOAD lost SET_GOT dependency on Darwin) 2014-11-10 Vladimir Makarov PR rtl-optimization/63620 PR rtl-optimization/63799 * lra-lives.c (process_bb_lives): Do not delete EH_REGION, trapped and setting PIC pseudo insns. (lra_create_live_ranges): Fix the typo. From-SVN: r217320 --- gcc/ChangeLog | 8 ++++++++ gcc/lra-lives.c | 11 +++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8a329222dc5..63d43b68239 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2014-11-10 Vladimir Makarov + + PR rtl-optimization/63620 + PR rtl-optimization/63799 + * lra-lives.c (process_bb_lives): Do not delete EH_REGION, trapped + and setting PIC pseudo insns. + (lra_create_live_ranges): Fix the typo. + 2014-11-10 Patrick Palka PR middle-end/63748 diff --git a/gcc/lra-lives.c b/gcc/lra-lives.c index 0e97cd81429..03def823a10 100644 --- a/gcc/lra-lives.c +++ b/gcc/lra-lives.c @@ -704,7 +704,13 @@ process_bb_lives (basic_block bb, int &curr_point) set = single_set (curr_insn); if (set != NULL_RTX - && REG_P (SET_DEST (set)) && REGNO (SET_DEST (set)) >= FIRST_PSEUDO_REGISTER) + && REG_P (SET_DEST (set)) && REGNO (SET_DEST (set)) >= FIRST_PSEUDO_REGISTER + && find_reg_note (curr_insn, REG_EH_REGION, NULL_RTX) == NULL_RTX + && ! may_trap_p (PATTERN (curr_insn)) + /* Don't do premature remove of pic offset pseudo as we can + start to use it after some reload generation. */ + && (pic_offset_table_rtx == NULL_RTX + || pic_offset_table_rtx != SET_DEST (set))) { bool dead_insn_p = true; @@ -1273,7 +1279,8 @@ lra_create_live_ranges (bool all_p) df_get_postorder (DF_BACKWARD), df_get_n_blocks (DF_BACKWARD)); if (lra_dump_file != NULL) { - fprintf (lra_dump_file, "Global pseudo live data have be updated:\n"); + fprintf (lra_dump_file, + "Global pseudo live data have been updated:\n"); basic_block bb; FOR_EACH_BB_FN (bb, cfun) { -- 2.30.2