This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: preprocessor and gcc specific forms
- To: Kathleen Fisher <kfisher at research dot att dot com>
- Subject: Re: preprocessor and gcc specific forms
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 12 Feb 2001 17:08:52 -0200
- Cc: gcc-bugs at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <Pine.LNX.4.21.0102120920380.28804-100000@delenn.research.att.com>
On Feb 12, 2001, Kathleen Fisher <kfisher@research.att.com> wrote:
> invoke the preprocessor with the -U__GNUC__ option to tell gcc not
> to output gcc specific forms. Using this option with gcc version
> 2.96 produces files that still have gcc-isms
The occurrence of __THROW would be a problem in the C library, not in
GCC, since it's the C library's headers that are failing to work
correctly in the absence of __GNUC__. WRT to __builtin_va_list,
there's just no way around it: the implementation of stdarg and vararg
is strictly compiler-dependent. The only solution I can see is for
you to have your own implementations of these headers, that conform to
the expectations of the experimental compiler you're developing.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me