This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch/RFC] Enable PCH for mingw32
- From: Ranjit Mathew <rmathew at gmail dot com>
- To: dannysmith at clear dot net dot nz
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 01 Jun 2004 18:02:21 +0530
- Subject: Re: [Patch/RFC] Enable PCH for mingw32
- References: <000c01c446b4$d11db860$dd6d65da@DANNY> <jm4qpwv5iw.fsf@desire.geoffk.org> <87vfictqc7.fsf@taltos.codesourcery.com> <000b01c447c9$e8f07d90$996d65da@DANNY>
Danny Smith wrote:
> There is still a bug that I tripped over when testing the libstdc++
> pch file.
>
> On targets that HAVE_TARGET_EXECUTABLE_SUFFIX the command
> gcc foo.h -ofoo
> creates foo.{TARGET_EXEXUTABLE_SUFFIX) not foo. The problem arise in
> the call to convert_filename in gcc.c.
I think this macro and its behaviour is heavily influenced
by Windows - on Windows, renaming "foo.exe" to "foo" makes
Windows reject the program as a non-executable. (In fact,
are there any other platforms that require executables to
have a well-known suffix?)
You might want to think of TARGET_EXECUTABLE_SUFFIX as "thing
to always add to the output executable file name, if not
present already".
Looked at this way, it's not a bug but a feature. 8-)
Ranjit.
--
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.tripod.com/