OSDN Git Service

Tevert part of the x86 subtarget logic changes: when -march=x86-64
authorDan Gohman <gohman@apple.com>
Tue, 3 Feb 2009 18:53:21 +0000 (18:53 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 3 Feb 2009 18:53:21 +0000 (18:53 +0000)
commit605679f0cdbfae59374dbb28de4ab3eee27804f2
treea143ebec0eb285c9a4cdce82ba027a0c63633010
parentb51d40cf40eac676dda3ae9dfeb55822fa403394
Tevert part of the x86 subtarget logic changes: when -march=x86-64
is given, override the subtarget settings and enable 64-bit support.
This restores the earlier behavior, and fixes regressions on
Non-64-bit-capable x86-32 hosts.

This isn't necessarily the best approach, but the most obvious
alternative is to require -mcpu=x86-64 or -mattr=+64bit to be used
with -march=x86-64 when the host doesn't have 64-bit support. This
makes things little more consistent, but it's less convenient, and
it has the practical drawback of requiring lots of test changes, so
I opted for the above approach for now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63642 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86Subtarget.cpp