Re: GCC version.c: Affect Version Number Only for MinGW/Cygwin

Ranjit Mathew <[email protected]>
Newsgroups gmane.comp.gnu.mingw.patches
Message-ID <[email protected]>
Ooops! Sorry, but I just realised that this will take
effect only if the compiler compiling GCC is the GCC from
MinGW/Cygwin itself - what we really want is the version
to be changed only if the *target* is mingw32.

Perhaps we can put extra -D__MINGW32_TARGET__ and
-D__CYGWIN_TARGET__ to T_CFLAGS in t-mingw32 and
t-cygwin respectively and use these defines instead?

Sincerely Yours,
Ranjit.

Ranjit Mathew wrote:
> Hi,
> 
>     A minor point: the MinGW patches to GCC currently
> modify the GCC version string straightaway to "mingw-special
> ..." - they should instead patch the GCC version.c file in
> a way like this:
> -------------------------- 8< -----------------------------
> #if defined (__MINGW32__)
> const char *const version_string = "3.2 (MinGW special 20020817-1)";
> #else if defined (__CYGWIN__)
> const char *const version_string = "3.2 (Cygwin special 20020817-1)";
> #else
> const char *const version_string = "3.2";
> #endif
> -------------------------- 8< -----------------------------
> 
> Otherwise, the source becomes "polluted" in the sense that
> a GCC built from this sources, say on Linux, also insists
> that it is "mingw special".
> 
> Sincerely Yours,
> Ranjit.
> 


-- 
Ranjit Mathew          Email: rmathew AT hotmail DOT com

Bangalore, INDIA.      Web: http://ranjitmathew.tripod.com/





-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.