diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2013-12-30 08:48:25 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2013-12-30 09:48:25 +0100 |
commit | 5cf5a0e59b7ad7736d36b0042881f0c0788ccd82 (patch) | |
tree | ec1dde7661a0c8475e36f564d51d434c65ce5d54 /gcc/config | |
parent | 3836fdc0c92d3c2de7205a77029406dca22dfc21 (diff) | |
download | gcc-5cf5a0e59b7ad7736d36b0042881f0c0788ccd82.zip gcc-5cf5a0e59b7ad7736d36b0042881f0c0788ccd82.tar.gz gcc-5cf5a0e59b7ad7736d36b0042881f0c0788ccd82.tar.bz2 |
re PR target/59605 (error: wrong number of branch edges after unconditional jump in bb 11)
PR target/59605
* config/i386/i386.c (ix86_expand_set_or_movmem): Create
jump_around_label only if it doesn't exist.
* gcc.dg/pr59605.c: New test.
From-SVN: r206242
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/i386/i386.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 2fc9b80..6e6b261 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -24047,7 +24047,8 @@ ix86_expand_set_or_movmem (rtx dst, rtx src, rtx count_exp, rtx val_exp, else { rtx hot_label = gen_label_rtx (); - jump_around_label = gen_label_rtx (); + if (jump_around_label == NULL_RTX) + jump_around_label = gen_label_rtx (); emit_cmp_and_jump_insns (count_exp, GEN_INT (dynamic_check - 1), LEU, 0, GET_MODE (count_exp), 1, hot_label); predict_jump (REG_BR_PROB_BASE * 90 / 100); |