summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-17 03:03:40 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-17 03:03:40 +0000
commitc90349fa021b7fc3353f7aa5232cee87f21fac9c (patch)
treec55d279d876321863682471a2b45357cf6f44ce5
parent8d26615a28477c507cbaba72c7fa80a4e889e4e9 (diff)
downloadppe42-gcc-c90349fa021b7fc3353f7aa5232cee87f21fac9c.tar.gz
ppe42-gcc-c90349fa021b7fc3353f7aa5232cee87f21fac9c.zip
Fix for i960 build failure reported by Andreas Jaeger.
* toplev.c (lang_dependent_init): Create function context for init_expr_once. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55508 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/toplev.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 31154660c30..b3db910500c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2002-07-16 Jim Wilson <wilson@redhat.com>
+
+ * toplev.c (lang_dependent_init): Create function context for
+ init_expr_once.
+
2002-07-16 Hans-Peter Nilsson <hp@axis.com>
* config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
diff --git a/gcc/toplev.c b/gcc/toplev.c
index e9a15a57223..60cb3beb2ad 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -5141,7 +5141,12 @@ lang_dependent_init (name)
front end is initialized. */
init_eh ();
init_optabs ();
+
+ /* The following initialization functions need to generate rtl, so
+ provide a dummy function context for them. */
+ init_dummy_function_start ();
init_expr_once ();
+ expand_dummy_function_end ();
/* Put an entry on the input file stack for the main input file. */
push_srcloc (input_filename, 0);
OpenPOWER on IntegriCloud