From 23d5b88f16145d3a563523d3dcf05a74e3a49f45 Mon Sep 17 00:00:00 2001 From: echristo Date: Wed, 13 Jun 2007 22:06:15 +0000 Subject: [PATCH] 2007-06-13 Eric Christopher * config/i386/i386.c (override_options): If we've specified an arch then don't use TARGET_SUBTARGET_ISA_DEFAULTs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125685 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 25 +++++++++++++++---------- gcc/config/i386/i386.c | 6 ++++++ 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8a8e2f0..59247af 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,8 +1,13 @@ +2007-06-13 Eric Christopher + + * 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 - + * df-scan.c (df_get_entry_block_def_set): Check if STATIC_CHAIN_REGNUM is defined. - + 2007-06-13 Bernd Schmidt * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Use gen_frame_mem. @@ -141,7 +146,7 @@ object file. (make_gcov_file_name): Do not generate long names if input_name is NULL. - (output_lines): If merging results do not display graph, data and + (output_lines): If merging results do not display graph, data and runs informations. Checking source file modification is done in find_source. @@ -178,11 +183,11 @@ Request walking the subtrees only, leaving the current is_lhs/val_only untouched. (convert_non_local_reference): Likewise. - + 2007-06-12 Nathan Sidwell * config/m68k/m68k-devices.def (52221, 52223, 5253): New. - + 2007-06-12 Richard Guenther PR tree-optimization/15353 @@ -226,7 +231,7 @@ df_process_deferred_rescans, df_notes_rescan): Fixed spelling of word "deferred". * df-core.c: Ditto. - + 2007-06-11 Daniel Berlin * Merge dataflow-branch into mainline (see ChangeLog.dataflow) @@ -414,7 +419,7 @@ (__divsi3, __umodsi3, __modsi3): Likewise. (__ashldi3, __ashrdi3, __lshrdi3): New. * config/xtensa/t-xtensa (LIB1ASMFUNCS): Add DImode shift functions. - + 2007-06-08 Harsha Jagasia Tony Linthicum @@ -456,7 +461,7 @@ (vectorizable_load): Call vect_model_load_cost during analysis phase. (vectorizable_store): Call vect_model_store_cost during analysis phase. (vectorizable_call, vectorizable_assignment, vectorizable_operation, - vectorizable_promotion, vectorizable_demotion): Call + vectorizable_promotion, vectorizable_demotion): Call vect_model_simple_cost during analysis phase. 2007-06-08 Simon Baldwin @@ -502,7 +507,7 @@ PR target/29953 * config/sh/sh.md (doloop_end): New pattern and splitter. * loop-iv.c (simple_rhs_p): Check for hardware registers. - + 2007-06-08 Zdenek Dvorak PR middle-end/32209 @@ -626,7 +631,7 @@ * rtl.h (push_to_sequence2): New. * emit-rtl.c (push_to_sequence2): New. * function.c (assign_parm_data_all): Add new fields. - (assign_parm_setup_block): Call push_to_sequence2 instead of + (assign_parm_setup_block): Call push_to_sequence2 instead of push_to_sequence. (assign_parm_setup_reg): Ditto. (assign_parm_setup_stack): Ditto. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index ab7c8c4..83e1262 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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; -- 2.7.4