toplev.c (backend_init): Move init_real_once invocation ...
authorRichard Henderson <rth@redhat.com>
Thu, 19 Sep 2002 00:12:07 +0000 (17:12 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 19 Sep 2002 00:12:07 +0000 (17:12 -0700)
        * toplev.c (backend_init): Move init_real_once invocation ...
        (do_compile): ... here.

From-SVN: r57291

gcc/ChangeLog
gcc/toplev.c

index 10414c8263778dc7390cb535501147dca5a402d5..b88236f989a608ea6e43e34b44b0c895b6e2355f 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-18  Richard Henderson  <rth@redhat.com>
+
+       * toplev.c (backend_init): Move init_real_once invocation ...
+       (do_compile): ... here.
+
 2002-09-18  Richard Henderson  <rth@redhat.com>
 
        * sibcall.c (optimize_sibling_and_tail_recursive_call): Also remove
index 595eefc624a8d99ea97215eda60c3b8a5255dab1..eec8455e6383652a394cea4278d0e3a83539e685 100644 (file)
@@ -5156,9 +5156,6 @@ backend_init ()
   /* init_emit_once uses reg_raw_mode and therefore must be called
      after init_regs which initialized reg_raw_mode.  */
   init_regs ();
-  /* Similarly, init_emit_once uses floating point numbers, and
-     thus must follow init_real_once.  */
-  init_real_once ();
   init_emit_once (debug_info_level == DINFO_LEVEL_NORMAL
                  || debug_info_level == DINFO_LEVEL_VERBOSE
 #ifdef VMS_DEBUGGING_INFO
@@ -5325,6 +5322,11 @@ do_compile ()
   init_timevar ();
   timevar_start (TV_TOTAL);
 
+  /* We need to initialize real.c in order to define __FLT_MIN__ etc,
+     which must happen even with -E.  But with -E we'll suppress the
+     rest of backend_init.  */
+  init_real_once ();
+
   /* Set up the back-end if requested.  */
   if (!no_backend)
     backend_init ();