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]

Re: PATCH: Use CPLUSPLUS_CPP_SPEC on Solaris


On Wed, May 16, 2001 at 12:04:10PM -0700, Mark Mitchell wrote:
> >>>>> "Phil" == Phil Edwards <pedwards@disaster.jaj.com> writes:
> 
>     Phil> Is this a viable idea?
> 
> Maybe.  You have to be careful that you *don't* include it when
> reading preprocessed source.

That would be easy enough to do in the specs.  We already test for
-fpreprocessed, or however it's spelled.


> And, there are other things in
> os_defines.h, in general, like `#define __off_t' and possible
> inclusions of other headers.  So, I think this is dangerous.

True.  It's the same defines that the library would see, though.


>  >> (Actually, in the long term, we need to make V3 tolerant of
>  >> whatever combination of macros the user wants to use, but
>  >> that's another problem.)
> 
>  Phil> Yes and yes.
> 
> This is the only real fix.  I would focus my efforts there, if I were
> a V3 hacker with an interest. :-)

My "interesting projects" list is as long as my arm, and keeps getting pushed
aside for the "oh look another $*@&^!%$ coredump in _dl_* at startup" list.
This one'll have to go to some other V3 hacker with an interest.  :-)


Phil

-- 
pedwards at disaster dot jaj dot com  |  pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools.  Fools are protected by more capable fools.


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