===================================================================
@@ -81,13 +81,8 @@ along with GCC; see the file COPYING3.
#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
===================================================================
@@ -3272,6 +3272,10 @@ ix86_option_override_internal (bool main
#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
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)