* config/i386/i386.c (optimization_options): Use
SUBTARGET_OPTIMIZATION_OPTIONS.
* config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define.
(TARGET_SUBTARGET_DEFAULT): Don't include
MASK_OMIT_LEAF_FRAME_POINTER.
From-SVN: r91163
+2004-11-24 Joseph Myers <joseph@codesourcery.com>
+
+ * config/i386/i386.c (optimization_options): Use
+ SUBTARGET_OPTIMIZATION_OPTIONS.
+ * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define.
+ (TARGET_SUBTARGET_DEFAULT): Don't include
+ MASK_OMIT_LEAF_FRAME_POINTER.
+
2004-11-24 Mark Mitchell <mark@codesourcery.com>
* config/i386/sol2.h (X86_FILE_START_VERSION_DIRECTIVE):
flag_omit_frame_pointer = 2;
flag_pcc_struct_return = 2;
flag_asynchronous_unwind_tables = 2;
+#ifdef SUBTARGET_OPTIMIZATION_OPTIONS
+ SUBTARGET_OPTIMIZATION_OPTIONS;
+#endif
}
\f
/* Table of valid machine attributes. */
#undef TARGET_SUBTARGET_DEFAULT
#define TARGET_SUBTARGET_DEFAULT (MASK_80387 | MASK_IEEE_FP \
- | MASK_FLOAT_RETURNS \
- | MASK_OMIT_LEAF_FRAME_POINTER)
+ | MASK_FLOAT_RETURNS)
+
+#define SUBTARGET_OPTIMIZATION_OPTIONS \
+ do \
+ { \
+ if (optimize >= 1) \
+ target_flags |= MASK_OMIT_LEAF_FRAME_POINTER; \
+ } \
+ while (0)
#define MULTILIB_DEFAULTS { "m32" }