Commit 1eb994b7 by J"orn Rennecke Committed by Joern Rennecke

toplev.c (rest_of_compilation): Rebuild label notes after post-reload splitting pass if...

	* toplev.c (rest_of_compilation): Rebuild label notes after
	post-reload splitting pass if new labels have been created.

From-SVN: r35892
parent f6a542de
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.
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment