preprocessor and gcc specific forms

Alexandre Oliva aoliva@redhat.com
Mon Feb 12 11:08:00 GMT 2001


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



More information about the Gcc-bugs mailing list