diff options
author | Bernd Schmidt <bernd.schmidt@analog.com> | 2006-11-23 12:53:15 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2006-11-23 12:53:15 +0000 |
commit | 49bcb41649de38398633c544833ecdf4169a30f5 (patch) | |
tree | a50280c7ff8fcbcc191c1d0d7c622959ea284c11 /gcc/var-tracking.c | |
parent | 57250223c0a5f0522ed07b11042bcbbd8b65907a (diff) | |
download | gcc-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.c | 4 |
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); |