summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-22 20:24:10 +0000
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-22 20:24:10 +0000
commit77a04ea35477fd2a08512c20b26a6cda96969a58 (patch)
tree5c8fd877d09bd3a56adfe66f641f66a3632e08ab
parent96c5803173876ffe8c0d94ca30583a31d938b151 (diff)
downloadppe42-gcc-77a04ea35477fd2a08512c20b26a6cda96969a58.tar.gz
ppe42-gcc-77a04ea35477fd2a08512c20b26a6cda96969a58.zip
* toplev.c (rest_of_compilation): Rebuild label notes after
post-reload splitting pass if new labels have been created. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35892 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/toplev.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7bf3b853dd8..55b82b16b2a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Tue Aug 22 21:21:05 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
+
+ * toplev.c (rest_of_compilation): Rebuild label notes after
+ post-reload splitting pass if new labels have been created.
+
2000-08-22 Gabriel Dos Reis <gdr@codesourcery.com>
* diagnostic.h (output_buffer_state): New macro.
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 225549ac7ba..55ff15d28fa 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -3380,7 +3380,12 @@ rest_of_compilation (decl)
/* If optimizing, then go ahead and split insns now since we are about
to recompute flow information anyway. */
if (optimize > 0)
- split_all_insns (0);
+ {
+ int old_labelnum = max_label_num ();
+
+ split_all_insns (0);
+ rebuild_label_notes_after_reload |= old_labelnum != max_label_num ();
+ }
/* Register allocation and reloading may have turned an indirect jump into
a direct jump. If so, we must rebuild the JUMP_LABEL fields of
OpenPOWER on IntegriCloud