This is the mail archive of the
mailing list for the GCC project.
Re: PATCH: Update default arch for x86
On Sun, Feb 28, 2010 at 7:12 AM, Jack Howarth <firstname.lastname@example.org> wrote:
> On Sat, Feb 27, 2010 at 10:34:15PM -0800, H.J. Lu wrote:
>> I can make them the same by defaulting i686-apple-darwin to pentium4.
> ? I was hoping to make x86_64-apple-darwin10 higher instead so that it
> supports -msse3 by default as was i686-apple-darwin10 in your previous
> patch. Note that in Snow Leopard, Apple's system gcc-4.2.1 compiler shows...
You can try this.
diff --git a/gcc/config/i386/darwin.h b/gcc/config/i386/darwin.h
index eb9ee70..49863a6 100644
@@ -162,14 +162,12 @@ extern void darwin_x86_file_end (void);
#define TARGET_SUBTARGET32_ISA_DEFAULT (OPTION_MASK_ISA_MMX \
| OPTION_MASK_ISA_SSE \
- | OPTION_MASK_ISA_SSE2)
-#define TARGET_SUBTARGET64_ISA_DEFAULT (OPTION_MASK_ISA_MMX \
- | OPTION_MASK_ISA_SSE \
| OPTION_MASK_ISA_SSE2 \
+#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