Don't check TARGET_64BIT if TARGET_64BIT_DEFAULT is false
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 31 Mar 2012 21:03:36 +0000 (21:03 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 31 Mar 2012 21:03:36 +0000 (21:03 +0000)
2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>

PR bootstrap/52784
* config/i386/i386.c (ix86_option_override_internal): Don't
check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186049 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/i386.c

index 0ec4ecd..30823d9 100644 (file)
@@ -1,3 +1,9 @@
+2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR bootstrap/52784
+       * config/i386/i386.c (ix86_option_override_internal): Don't
+       check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
+
 2012-03-31  Eric Botcazou  <ebotcazou@adacore.com>
 
        * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
index 8cb5a0d..d58dafc 100644 (file)
@@ -3118,8 +3118,8 @@ ix86_option_override_internal (bool main_args_p)
 #endif
 
   /* Turn off both OPTION_MASK_ABI_64 and OPTION_MASK_ABI_X32 if
-     TARGET_64BIT is false.  */
-  if (!TARGET_64BIT)
+     TARGET_64BIT_DEFAULT is true and TARGET_64BIT is false.  */
+  if (TARGET_64BIT_DEFAULT && !TARGET_64BIT)
     ix86_isa_flags &= ~(OPTION_MASK_ABI_64 | OPTION_MASK_ABI_X32);
 #ifdef TARGET_BI_ARCH
   else