i386.c (override_options): If we've specified an arch then don't use TARGET_SUBTARGET_ISA_DEFAULTs.
2007-06-13 Eric Christopher <echristo@apple.com> * config/i386/i386.c (override_options): If we've specified an arch then don't use TARGET_SUBTARGET_ISA_DEFAULTs. From-SVN: r125685
This commit is contained in:
parent
59be80716a
commit
b26f6ed7b9
|
@ -1,3 +1,8 @@
|
|||
2007-06-13 Eric Christopher <echristo@apple.com>
|
||||
|
||||
* config/i386/i386.c (override_options): If we've specified
|
||||
an arch then don't use TARGET_SUBTARGET_ISA_DEFAULTs.
|
||||
|
||||
2007-06-13 Bob Wilson <bob.wilson@acm.org>
|
||||
|
||||
* df-scan.c (df_get_entry_block_def_set): Check if STATIC_CHAIN_REGNUM
|
||||
|
|
|
@ -1706,6 +1706,7 @@ override_options (void)
|
|||
{
|
||||
int i;
|
||||
int ix86_tune_defaulted = 0;
|
||||
int ix86_arch_specified = 0;
|
||||
unsigned int ix86_arch_mask, ix86_tune_mask;
|
||||
|
||||
/* Comes from final.c -- no real reason to change it. */
|
||||
|
@ -1953,6 +1954,9 @@ override_options (void)
|
|||
|
||||
if (!ix86_arch_string)
|
||||
ix86_arch_string = TARGET_64BIT ? "x86-64" : "i386";
|
||||
else
|
||||
ix86_arch_specified = 1;
|
||||
|
||||
if (!strcmp (ix86_arch_string, "generic"))
|
||||
error ("generic CPU can be used only for -mtune= switch");
|
||||
if (!strncmp (ix86_arch_string, "generic", 7))
|
||||
|
@ -2230,6 +2234,7 @@ override_options (void)
|
|||
/* Enable by default the SSE and MMX builtins. Do allow the user to
|
||||
explicitly disable any of these. In particular, disabling SSE and
|
||||
MMX for kernel code is extremely useful. */
|
||||
if (!ix86_arch_specified)
|
||||
ix86_isa_flags
|
||||
|= ((OPTION_MASK_ISA_SSE2 | OPTION_MASK_ISA_SSE | OPTION_MASK_ISA_MMX
|
||||
| TARGET_SUBTARGET64_ISA_DEFAULT) & ~ix86_isa_flags_explicit);
|
||||
|
@ -2241,6 +2246,7 @@ override_options (void)
|
|||
{
|
||||
target_flags |= TARGET_SUBTARGET32_DEFAULT & ~target_flags_explicit;
|
||||
|
||||
if (!ix86_arch_specified)
|
||||
ix86_isa_flags
|
||||
|= TARGET_SUBTARGET32_ISA_DEFAULT & ~ix86_isa_flags_explicit;
|
||||
|
||||
|
|
Loading…
Reference in New Issue