This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Update default arch for x86


On Sun, Feb 28, 2010 at 7:48 AM, Jack Howarth <howarth@bromo.med.uc.edu> wrote:
> On Sun, Feb 28, 2010 at 07:34:40AM -0800, H.J. Lu wrote:
>>
>> You can try this.
>>
>> ---
>> diff --git a/gcc/config/i386/darwin.h b/gcc/config/i386/darwin.h
>> index eb9ee70..49863a6 100644
>> --- a/gcc/config/i386/darwin.h
>> +++ b/gcc/config/i386/darwin.h
>> @@ -162,14 +162,12 @@ extern void darwin_x86_file_end (void);
>> ?#undef TARGET_SUBTARGET32_ISA_DEFAULT
>> ?#define TARGET_SUBTARGET32_ISA_DEFAULT (OPTION_MASK_ISA_MMX ? ? ? ? ?\
>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | OPTION_MASK_ISA_SSE ? ? ? ? ? \
>> - ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | OPTION_MASK_ISA_SSE2)
>> -
>> -#undef TARGET_SUBTARGET64_ISA_DEFAULT
>> -#define TARGET_SUBTARGET64_ISA_DEFAULT (OPTION_MASK_ISA_MMX ? ? ? ? ?\
>> - ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | OPTION_MASK_ISA_SSE ? ? ? ? ? \
>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | OPTION_MASK_ISA_SSE2 ? ? ? ? ?\
>> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? | OPTION_MASK_ISA_SSE3)
>>
>> +#undef TARGET_SUBTARGET64_ISA_DEFAULT
>> +#define TARGET_SUBTARGET64_ISA_DEFAULT TARGET_SUBTARGET32_ISA_DEFAULT
>> +
>> ?/* For now, disable dynamic-no-pic. ?We'll need to go through i386.c
>> ? ? with a fine-tooth comb looking for refs to flag_pic! ?*/
>> ?#define MASK_MACHO_DYNAMIC_NO_PIC 0
>> ----
>>
>>
>> --
>> H.J.
>
> HJ,
> ? Actually, looking at gcc/config.gcc from Apple's gcc-5646.1 sources
> I see...
>
> i[34567]86-*-darwin*)
> ? ? ? ?need_64bit_hwint=yes
> ? ? ? ?# APPLE LOCAL mainline
> ? ? ? ?# Deleted a comment here.
> ? ? ? ?# APPLE LOCAL mainline
> ? ? ? ?with_cpu=${with_cpu:-core2}
> ? ? ? ?# APPLE LOCAL Macintosh alignment 2002-2-19 --ff
> ? ? ? ?extra_options="${extra_options} i386/darwin.opt"
> ? ? ? ?# APPLE LOCAL 4099000 5681645
> ? ? ? ?tmake_file="${tmake_file} t-slibgcc-darwin i386/t-darwin"
> ? ? ? ?;;
> x86_64-*-darwin*)
> ? ? ? ?# APPLE LOCAL mainline
> ? ? ? ?# Deleted with_arch
> ? ? ? ?# APPLE LOCAL mainline
> ? ? ? ?with_cpu=${with_cpu:-core2}
> ? ? ? ?# APPLE LOCAL Macintosh alignment 2002-2-19 --ff
> ? ? ? ?extra_options="${extra_options} i386/darwin.opt"
> ? ? ? ?tmake_file="t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin"
> ? ? ? ?tm_file="${tm_file} ${cpu_type}/darwin64.h"
> ? ? ? ?;;
>
> Shouldn't the core2 arch on FSF gcc enable sse3?

It is "with_cpu=${with_cpu:-core2}". It sets -mtune=, not -march.

-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]