This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: DEVELOPERS NEEDED IMMEDIATELY FOR MINGW32 ALTERNATE C RUNTIME LIBRARY PROJECT
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- To: John Platts <john_platts at hotmail dot com>
- Cc: mingw-users at lists dot sourceforge dot net, mingw-patches at list dot sourceforge dot net,gcc-patches at gcc dot gnu dot org, binutils at sources dot redhat dot com,Zack Weinberg <zack at codesourcery dot com>
- Date: Fri, 7 Jun 2002 22:14:43 +0100
- Subject: Re: DEVELOPERS NEEDED IMMEDIATELY FOR MINGW32 ALTERNATE C RUNTIME LIBRARY PROJECT
- References: <F47Ab4dthwo4lZeyDIG0001608b@hotmail.com>
John Platts wrote:-
> - Patches to GCC to support SEH and Microsoft Platform SDK header files (if
> necessary, write a patching utility to patch Microsoft Platform SDK header
> files, especially in the case of the inline assembler)
I'm not sure I would find the changes to the preprocessor palatable to
make this possible. For example, MS's ?$%@&^ header files require the
ability to macro-paste two '/'s and comment out the rest of the line.
e.g.
#define STUPID /##/
STUPID some gunk
comments out "some gunk". This is not easily implemented in the
current preprocessor, owing to the extreme brokenness of the construct,
mixing up the phases of translation (comment removal is done before
macro expansion in any sane standards-conforming implementation).
I don't particularly want GCC's sources to be kludged to handle
such cases.
There are other broken things in MS's preprocessor that have been
reported to this list in the past, too.
> - Patches to GCC to support #import directive
GCC already has a #import directive which means something quite
different, based on my reading of MS's documentation. The existing
meaning of #import already has many users, particularly in the
Objective C community.
Therefore, personally speaking, I would prefer that the necessary
CPP changes were distributed as a patch to GCC's mainline tree,
rather than obfuscating GCC just to handle Microsoft's broken
header files.
Neil.