]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix FreeBSD __LDBL_MAX__ -pedantic -save-temps bug.
authorJames E Wilson <wilson@specifixinc.com>
Wed, 23 Feb 2005 01:35:07 +0000 (01:35 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Wed, 23 Feb 2005 01:35:07 +0000 (17:35 -0800)
* toplev.c (backend_init): Don't call init_adjust_machine_modes here.
(do_compile): Do call it here.

From-SVN: r95432

gcc/ChangeLog
gcc/toplev.c

index b83b79afd9a2f49b82825c2925118ede2066eeda..903d625f29e485a669babe09dc51b86af45327bc 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-22  James E Wilson  <wilson@specifixinc.com>
+
+       * toplev.c (backend_init): Don't call init_adjust_machine_modes here.
+       (do_compile): Do call it here.
+
 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
 
        PR rtl-optimization/20017.
index 99704a4309053134360d2c114ee1785afda98c0f..ae564f05f1084b7d58b65538781ea7e087dbd8d3 100644 (file)
@@ -1954,8 +1954,6 @@ process_options (void)
 static void
 backend_init (void)
 {
-  init_adjust_machine_modes ();
-
   init_emit_once (debug_info_level == DINFO_LEVEL_NORMAL
                  || debug_info_level == DINFO_LEVEL_VERBOSE
 #ifdef VMS_DEBUGGING_INFO
@@ -2092,6 +2090,11 @@ do_compile (void)
   /* Don't do any more if an error has already occurred.  */
   if (!errorcount)
     {
+      /* This must be run always, because it is needed to compute the FP
+        predefined macros, such as __LDBL_MAX__, for targets using non
+        default FP formats.  */
+      init_adjust_machine_modes ();
+
       /* Set up the back-end if requested.  */
       if (!no_backend)
        backend_init ();