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
+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.
#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)
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)
#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