aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJames E Wilson <wilson@specifixinc.com>2005-02-23 01:35:07 +0000
committerJim Wilson <wilson@gcc.gnu.org>2005-02-22 17:35:07 -0800
commite59ba1bccdc8895dd90e52b332869cf8015bd829 (patch)
tree5f85227f5c7c77fbb7565197ed51a2ee24dcd027 /gcc
parent78d5a34be5a7ddf381c654bec90c8a0af0795888 (diff)
downloadgcc-e59ba1bccdc8895dd90e52b332869cf8015bd829.zip
gcc-e59ba1bccdc8895dd90e52b332869cf8015bd829.tar.gz
gcc-e59ba1bccdc8895dd90e52b332869cf8015bd829.tar.bz2
Fix FreeBSD __LDBL_MAX__ -pedantic -save-temps bug.
* toplev.c (backend_init): Don't call init_adjust_machine_modes here. (do_compile): Do call it here. From-SVN: r95432
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/toplev.c7
2 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b83b79a..903d625 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 99704a4..ae564f0 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -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 ();