aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@lsd.ic.unicamp.br>2000-01-08 20:30:18 +0000
committerAlexandre Oliva <oliva@gcc.gnu.org>2000-01-08 20:30:18 +0000
commitd511f9d5ecc8d4f5a7a6dc1ba239ad67e0816773 (patch)
tree33b65e9ab4709ba8a5e9dff9c732e878112938ac /gcc
parent0e668396250723eb11d4b45d234afe1ac7a696c5 (diff)
downloadgcc-d511f9d5ecc8d4f5a7a6dc1ba239ad67e0816773.zip
gcc-d511f9d5ecc8d4f5a7a6dc1ba239ad67e0816773.tar.gz
gcc-d511f9d5ecc8d4f5a7a6dc1ba239ad67e0816773.tar.bz2
toplev.c (rest_of_compilation): Initialize cse_not_expected as in prepare_function_start().
* toplev.c (rest_of_compilation): Initialize cse_not_expected as in prepare_function_start(). From-SVN: r31288
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/toplev.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f61f6eb..c5c131f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2000-01-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
+
+ * toplev.c (rest_of_compilation): Initialize cse_not_expected as
+ in prepare_function_start().
+
Sat Jan 8 12:12:46 2000 Nick Clifton <nickc@cygnus.com>
* config/v850/v850.c (expand_epilogue): Interrupt functions no
diff --git a/gcc/toplev.c b/gcc/toplev.c
index c3f975b..1c65d30 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -2777,6 +2777,10 @@ rest_of_compilation (decl)
int failure = 0;
int rebuild_label_notes_after_reload;
+ /* When processing delayed functions, prepare_function_start() won't
+ have been run to re-initialize it. */
+ cse_not_expected = ! optimize;
+
/* First, remove any notes we don't need. That will make iterating
over the instruction sequence faster, and allow the garbage
collector to reclaim the memory used by the notes. */