i386-common.c (ix86_option_optimization_table): Move OPT_free processing from ...
authorUros Bizjak <uros@gcc.gnu.org>
Thu, 22 Dec 2011 14:39:35 +0000 (15:39 +0100)
committerUros Bizjak <uros@gcc.gnu.org>
Thu, 22 Dec 2011 14:39:35 +0000 (15:39 +0100)
* common/config/i386/i386-common.c (ix86_option_optimization_table):
Move OPT_free processing from ...
* config/i386/i386.c (ix86_option_override_internal):  ... here.

From-SVN: r182623

gcc/ChangeLog
gcc/common/config/i386/i386-common.c
gcc/config/i386/i386.c

index d1c9a2f625369ae138f8c4ceb5f5975b7cd1f35b..6c2709696aac44f9672c2bc40b1f55d805691e1d 100644 (file)
@@ -1,3 +1,9 @@
+2011-12-22  Uros Bizjak  <ubizjak@gmail.com>
+
+       * common/config/i386/i386-common.c (ix86_option_optimization_table):
+       Move OPT_free processing from ...
+       * config/i386/i386.c (ix86_option_override_internal):  ... here.
+
 2011-12-21  Richard Earnshaw  <rearnsha@arm.com>
 
        PR target/51643
@@ -7,7 +13,7 @@
 2011-12-21  Jonathan Wakely  <jwakely.gcc@gmail.com>
            Jim Avera  <james_avera@yahoo.com>
 
-       * doc/extend.texi (__builtin_expect): Improve example.  
+       * doc/extend.texi (__builtin_expect): Improve example.
 
 2011-12-21  Uros Bizjak  <ubizjak@gmail.com>
 
index 99643d65f9b6e070e36e05cc1cc5aa28b4544ec7..ac4232fffffa326bf305b7ef53b596a5f11352bd 100644 (file)
@@ -599,6 +599,8 @@ ix86_handle_option (struct gcc_options *opts,
 
 static const struct default_options ix86_option_optimization_table[] =
   {
+    /* Enable redundant extension instructions removal at -O2 and higher.  */
+    { OPT_LEVELS_2_PLUS, OPT_free, NULL, 1 },
     /* Turn off -fschedule-insns by default.  It tends to make the
        problem with not enough registers even worse.  */
     { OPT_LEVELS_ALL, OPT_fschedule_insns, NULL, 0 },
index af075242e3766ce36d86966042787bd8a45fec76..af58f7cf6817a77e5df4c159b6c60b180a098e7e 100644 (file)
@@ -3445,10 +3445,6 @@ ix86_option_override_internal (bool main_args_p)
 #define USE_X86_64_FRAME_POINTER 0
 #endif
 
-  /* Enable redundant extension instructions removal at -O2 and higher.  */
-  if (optimize >= 2 && !global_options_set.x_flag_ree)
-    flag_ree = 1;
-
   /* Set the default values for switches whose default depends on TARGET_64BIT
      in case they weren't overwritten by command line options.  */
   if (TARGET_64BIT)