]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix FreeBSD __LDBL_MAX__ problem reported to gcc mailing list.
authorJames E Wilson <wilson@specifixinc.com>
Wed, 9 Mar 2005 00:50:25 +0000 (00:50 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Wed, 9 Mar 2005 00:50:25 +0000 (16:50 -0800)
Backport from mainline
2005-02-21  James E Wilson  <wilson@specifixinc.com>
* toplev.c (backend_init): Don't call init_adjust_machine_modes here.
(do_compile): Do call it here.

From-SVN: r96151

gcc/ChangeLog
gcc/toplev.c

index f2d431eb60049a5075a2ff4d7903613baae0f914..c730b50365ae66c4c9fee985f7ba0018c1205bbc 100644 (file)
@@ -1,3 +1,10 @@
+2005-03-08  James E Wilson  <wilson@specifixinc.com>
+
+       Backport from mainline
+       2005-02-21  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-03-07  David Billinghurst <David.Billinghurst@riotinto.com>
 
        * config/i386/cygwin1.c(mingw_scan): Use xstrdup in calls to putenv.
index 04f43c4f8eb80f1083051531522ed92d761edfea..3c9dbcb06606f072d463a655fadfed7709760680 100644 (file)
@@ -4491,8 +4491,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
@@ -4636,6 +4634,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 ();