diff options
author | James E Wilson <wilson@specifixinc.com> | 2005-02-23 01:35:07 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 2005-02-22 17:35:07 -0800 |
commit | e59ba1bccdc8895dd90e52b332869cf8015bd829 (patch) | |
tree | 5f85227f5c7c77fbb7565197ed51a2ee24dcd027 /gcc | |
parent | 78d5a34be5a7ddf381c654bec90c8a0af0795888 (diff) | |
download | gcc-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/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/toplev.c | 7 |
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 (); |