Check [SUB]SUBTARGET_OVERRIDE_OPTIONS after TARGET_64BIT
authorH.J. Lu <hongjiu.lu@intel.com>
Wed, 11 Apr 2012 17:34:08 +0000 (17:34 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Wed, 11 Apr 2012 17:34:08 +0000 (10:34 -0700)
* config/i386/i386.c (ix86_option_override_internal): Check
SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
after TARGET_64BIT is updated.

From-SVN: r186339

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

index a34804325fdb3e2752fcfa1ba7da06d2805e499e..802c41d1e3858340fdea71d02817ecc1e3b37c9c 100644 (file)
@@ -1,3 +1,9 @@
+2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config/i386/i386.c (ix86_option_override_internal): Check
+       SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
+       after TARGET_64BIT is updated.
+
 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
 
        * config/sh/sh.h: Remove old secondary reload code.
index 8974ddc9a020bc38835634de3fe1f3ec2cdda1e4..af4af7ce134bf586c3c2233da388333567d1607b 100644 (file)
@@ -3113,14 +3113,6 @@ ix86_option_override_internal (bool main_args_p)
       sw = "attribute";
     }
 
-#ifdef SUBTARGET_OVERRIDE_OPTIONS
-  SUBTARGET_OVERRIDE_OPTIONS;
-#endif
-
-#ifdef SUBSUBTARGET_OVERRIDE_OPTIONS
-  SUBSUBTARGET_OVERRIDE_OPTIONS;
-#endif
-
   /* Turn off both OPTION_MASK_ABI_64 and OPTION_MASK_ABI_X32 if
      TARGET_64BIT_DEFAULT is true and TARGET_64BIT is false.  */
   if (TARGET_64BIT_DEFAULT && !TARGET_64BIT)
@@ -3161,6 +3153,14 @@ ix86_option_override_internal (bool main_args_p)
       ix86_isa_flags &= ~OPTION_MASK_ABI_X32;
     }
 
+#ifdef SUBTARGET_OVERRIDE_OPTIONS
+  SUBTARGET_OVERRIDE_OPTIONS;
+#endif
+
+#ifdef SUBSUBTARGET_OVERRIDE_OPTIONS
+  SUBSUBTARGET_OVERRIDE_OPTIONS;
+#endif
+
   /* -fPIC is the default for x86_64.  */
   if (TARGET_MACHO && TARGET_64BIT)
     flag_pic = 2;