aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgcleanup.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2004-01-16 12:30:48 +0100
committerRichard Henderson <rth@gcc.gnu.org>2004-01-16 03:30:48 -0800
commite24e721187ece610590c92b1a19b42b5d8ffe306 (patch)
tree035b836f27718d7ce18d5d4320d638b8f3678625 /gcc/cfgcleanup.c
parentfbf3e0dd2d5fe2d7667a7463baafb5b862d70362 (diff)
downloadgcc-e24e721187ece610590c92b1a19b42b5d8ffe306.zip
gcc-e24e721187ece610590c92b1a19b42b5d8ffe306.tar.gz
gcc-e24e721187ece610590c92b1a19b42b5d8ffe306.tar.bz2
re PR rtl-optimization/11350 (undefined labels with -Os -fPIC)
PR opt/11350 * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal after reload. * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks, rtl_try_redirect_by_replacing_branch): Likewise. From-SVN: r75968
Diffstat (limited to 'gcc/cfgcleanup.c')
-rw-r--r--gcc/cfgcleanup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c
index 3e68cbe..3da1ea5 100644
--- a/gcc/cfgcleanup.c
+++ b/gcc/cfgcleanup.c
@@ -1766,7 +1766,7 @@ try_optimize_cfg (int mode)
/* If the jump insn has side effects,
we can't kill the edge. */
&& (GET_CODE (BB_END (b)) != JUMP_INSN
- || (flow2_completed
+ || (reload_completed
? simplejump_p (BB_END (b))
: onlyjump_p (BB_END (b))))
&& (next = merge_blocks_move (s, b, c, mode)))