This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: preprocessor and gcc specific forms


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]