summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-23 01:35:07 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-23 01:35:07 +0000
commit2b4ca870dfbd7485bfdf85eda3710e8a1dd5e22e (patch)
tree5f85227f5c7c77fbb7565197ed51a2ee24dcd027 /gcc/toplev.c
parentc7d80600af3cb26f465ea6fea52ac5f4e47e2ae6 (diff)
downloadgcc-2b4ca870dfbd7485bfdf85eda3710e8a1dd5e22e.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95432 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 99704a43090..ae564f05f10 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 ();