aboutsummaryrefslogtreecommitdiff
path: root/gcc/var-tracking.c
diff options
context:
space:
mode:
authorBernd Schmidt <bernd.schmidt@analog.com>2006-11-23 12:53:15 +0000
committerBernd Schmidt <bernds@gcc.gnu.org>2006-11-23 12:53:15 +0000
commit49bcb41649de38398633c544833ecdf4169a30f5 (patch)
treea50280c7ff8fcbcc191c1d0d7c622959ea284c11 /gcc/var-tracking.c
parent57250223c0a5f0522ed07b11042bcbbd8b65907a (diff)
downloadgcc-49bcb41649de38398633c544833ecdf4169a30f5.zip
gcc-49bcb41649de38398633c544833ecdf4169a30f5.tar.gz
gcc-49bcb41649de38398633c544833ecdf4169a30f5.tar.bz2
var-tracking.c (emit_note_insn_var_location): Take care not to cause verify_flow_info failures.
* var-tracking.c (emit_note_insn_var_location): Take care not to cause verify_flow_info failures. From-SVN: r119116
Diffstat (limited to 'gcc/var-tracking.c')
-rw-r--r--gcc/var-tracking.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/var-tracking.c b/gcc/var-tracking.c
index 815faca..c4bef66 100644
--- a/gcc/var-tracking.c
+++ b/gcc/var-tracking.c
@@ -2443,7 +2443,9 @@ emit_note_insn_var_location (void **varp, void *data)
complete = false;
if (where == EMIT_NOTE_AFTER_INSN)
- note = emit_note_after (NOTE_INSN_VAR_LOCATION, insn);
+ /* emit_note_after can insert a note after a flow-control insn in a basic
+ block. That causes verify_flow_info failures. */
+ note = emit_note_before (NOTE_INSN_VAR_LOCATION, NEXT_INSN (insn));
else
note = emit_note_before (NOTE_INSN_VAR_LOCATION, insn);