Fix for i960 build failure reported by Andreas Jaeger.
authorJim Wilson <wilson@redhat.com>
Wed, 17 Jul 2002 03:03:40 +0000 (03:03 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Wed, 17 Jul 2002 03:03:40 +0000 (20:03 -0700)
* toplev.c (lang_dependent_init): Create function context for
init_expr_once.

From-SVN: r55508

gcc/ChangeLog
gcc/toplev.c

index 31154660c30f64a0b6c48fe04bfe98727831f4e1..b3db910500c0286dfe06e2ed1c03bf71d718c9ed 100644 (file)
@@ -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
index e9a15a572231ca16ed3926a8bf2e700ee7dca26b..60cb3beb2ad8138beffb9f34b5a309ed7f5695df 100644 (file)
@@ -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);