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] PR41180 pt2: fix config.guess on darwin10


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.


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