[PATCH][Revised2]PR41180 pt2: fix config.guess on darwin10

H.J. Lu hjl.tools@gmail.com
Wed Sep 2 03:58:00 GMT 2009


On Tue, Sep 1, 2009 at 4:23 PM, Jack Howarth<howarth@bromo.med.uc.edu> 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 presence of the __LP64__ preprocessor
> symbol generated in the system gcc to determine if x86_64 is the proper
> processor for the triplet whenever "uname -p" reports i386. Confirmed to work on
> i386-apple-darwin10.
>

As far as I know, all Intel processors used by Apple support Intel64/EM64T.

-- 
H.J.



More information about the Gcc-patches mailing list