This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Darwin problem (Re: PATCH: Select the default x86 arch/cpu based on target)
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 25 Feb 2010 18:56:10 -0800
- Subject: Darwin problem (Re: PATCH: Select the default x86 arch/cpu based on target)
On Thu, Feb 25, 2010 at 6:34 PM, Jason Merrill <jason@redhat.com> wrote:
> OK.
>
I checked in. But I am afraid it may break Darwin due to
1. in i386/darwin.h, there are
/* For darwin we want to target specific processor features as a minimum,
but these unfortunately don't correspond to a specific processor. */
#undef TARGET_SUBTARGET32_ISA_DEFAULT
#define TARGET_SUBTARGET32_ISA_DEFAULT (OPTION_MASK_ISA_MMX \
| OPTION_MASK_ISA_SSE \
| OPTION_MASK_ISA_SSE2)
2. In i386.c,
target_flags |= TARGET_SUBTARGET32_DEFAULT & ~target_flags_explicit;
if (!ix86_arch_specified)
ix86_isa_flags
|= TARGET_SUBTARGET32_ISA_DEFAULT & ~ix86_isa_flags_explicit;
Since we nor provide default arch, TARGET_SUBTARGET32_DEFAULT may not
be used at all.
--
H.J.