]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
var-tracking.c (emit_note_insn_var_location): Take care not to cause verify_flow_info...
authorBernd Schmidt <bernd.schmidt@analog.com>
Thu, 23 Nov 2006 12:53:15 +0000 (12:53 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Thu, 23 Nov 2006 12:53:15 +0000 (12:53 +0000)
* var-tracking.c (emit_note_insn_var_location): Take care not to
cause verify_flow_info failures.

From-SVN: r119116

gcc/ChangeLog
gcc/var-tracking.c

index b045a0d0ce4a4661560be91de91637b6c693045a..fbf1652106488dac4f292e7314101d4f93f79d74 100644 (file)
@@ -1,3 +1,8 @@
+2006-11-23  Bernd Schmidt  <bernd.schmidt@analog.com>
+
+       * var-tracking.c (emit_note_insn_var_location): Take care not to
+       cause verify_flow_info failures.
+
 2006-11-22  Daniel Berlin  <dberlin@dberlin.org>
 
        * tree-ssa-structalias.c: Remove edge weights in favor of just
index 815facae1820e47b06f0c10b7aac1e6ecd781f7d..c4bef66d5e2e7fe6418f10788fa79b19ecece6a7 100644 (file)
@@ -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);