OSDN Git Service

* config/i386/i386.c (ix86_option_override_internal): Define and
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Oct 2010 19:40:50 +0000 (19:40 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 18 Oct 2010 19:40:50 +0000 (19:40 +0000)
use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
default.
* config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
(USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.

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

gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/sol2-10.h

index 9254a12..3595e5c 100644 (file)
@@ -1,3 +1,11 @@
+2010-10-18  Joseph Myers  <joseph@codesourcery.com>
+
+       * config/i386/i386.c (ix86_option_override_internal): Define and
+       use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
+       default.
+       * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
+       (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
+
 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
 
        Merge from 'apple/trunk' branch on FSF servers. 
index 60b4dff..eada313 100644 (file)
@@ -3272,6 +3272,10 @@ ix86_option_override_internal (bool main_args_p)
 #define USE_IX86_FRAME_POINTER 0
 #endif
 
+#ifndef USE_X86_64_FRAME_POINTER
+#define USE_X86_64_FRAME_POINTER 0
+#endif
+
   /* 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)
@@ -3279,7 +3283,7 @@ ix86_option_override_internal (bool main_args_p)
       if (optimize > 1 && !global_options_set.x_flag_zee)
         flag_zee = 1;
       if (optimize >= 1 && !global_options_set.x_flag_omit_frame_pointer)
-       flag_omit_frame_pointer = 1;
+       flag_omit_frame_pointer = !USE_X86_64_FRAME_POINTER;
       if (flag_asynchronous_unwind_tables == 2)
        flag_asynchronous_unwind_tables = 1;
       if (flag_pcc_struct_return == 2)
index e972ece..04ae700 100644 (file)
@@ -81,13 +81,8 @@ along with GCC; see the file COPYING3.  If not see
 #undef WINT_TYPE_SIZE
 #define WINT_TYPE_SIZE 32
 
-#define SUBTARGET_OVERRIDE_OPTIONS                             \
-  do                                                           \
-    {                                                          \
-      if (!global_options_set.x_flag_omit_frame_pointer)       \
-       flag_omit_frame_pointer = 0;                            \
-    }                                                          \
-  while (0)
+#define USE_IX86_FRAME_POINTER 1
+#define USE_X86_64_FRAME_POINTER 1
 
 /* Override i386/sol2.h version: return 8-byte vectors in MMX registers if
    possible, matching Sun Studio 12 Update 1+ compilers and other x86