This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR41180 pt2: fix config.guess on darwin10
- From: Mike Stump <mrs at apple dot com>
- To: Jack Howarth <howarth at bromo dot med dot uc dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 31 Aug 2009 16:11:58 -0700
- Subject: Re: [PATCH] PR41180 pt2: fix config.guess on darwin10
- References: <20090831225542.GA16619@bromo.med.uc.edu>
On Aug 31, 2009, at 3:55 PM, Jack Howarth wrote:
The proper default triplet for darwin10 is misidentified by
config.guess.
This is due to the fact that on darwin10 "uname -p" reports the
architecture
of the running kernel rather than the default architecture of the
binaries created by the system gcc and executed by the OS. In the
case of
EMT64-capable processors, the system gcc will execute and produce
x86_64 code (independent of whether the 32-bit or the 64-bit kernel is
in use). The attached patch uses the architecture of the code
generated by the system gcc to determine if x86_64 is the proper
processor
for the triplet. Bootstrapped on i386-apple-darwin10 without
regressions.
Okay for gcc trunk and gcc 4.4 a week later?
I think gcc policy is to submit upstream (config-patches@gnu.org as I
recall) first. I think this patch is the right direction.
2009-08-31 Jack Howarth <howarth@bromo.med.uc.edu>
PR bootstrap/41180
* config.guess: Use system gcc to determine if processor is x86_64
on darwin.