This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Framework support for darwin
- From: Devang Patel <dpatel at apple dot com>
- To: Mike Stump <mrs at apple dot com>
- Cc: Neil Booth <neil at daikokuya dot co dot uk>, Geoff Keating <geoffk at geoffk dot org>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 27 Aug 2003 14:12:52 -0700
- Subject: Re: Framework support for darwin
- References: <0B53327A-D83E-11D7-885D-003065A77310@apple.com>
On Tuesday, August 26, 2003, at 8:25 PM, Mike Stump wrote:
Here is the latest version of the framework patch. I'm of the
considered opinion, the target hooks are not appropriate for cpplib.
The below patch still contains the hook code, but, notice the
conditional that we were trying to avoid in register_include_chains
can't be gotten rid of. One cannot initialize targetm, as then you
need the full back end for fix-header, and the full backend can't
work, as fix-header isn't a frontend...
So, should I de-hookize cpplib things for fix-header, or leave it the
way it is. It will work, but I don't find it, uhm, nicer.
Also, one cannot hookize the TARGET_C_INIT stuff, as that is the magic
to allow the target hooks to work in the first place. Again, the
disease seemed preferable to me.
<frameworkg.diffs.txt>
! #define CPP_SPEC
"%{static:%{!dynamic:-D__STATIC__}}%{!static:-D__DYNAMIC__}
-D__APPLE_CC__=666"
Darwin GCC has code in driver to extract value from version_string and
set APPLE_CC. You may want to use it.
-isysroot changes system root for system headers. How about system
framework headers?
--
Devang