This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: HPPA STMP_FIXPROTO patch


In message <200208291833.LAA24004@hpsje.cup.hp.com>, Steve Ellcey writes:
 >> Really the way to go is to get HP to fix the hpux header files so that neit
 >her
 >> fixincludes nor fixproto are necessary.  Then it becomes a hell of a lot ea
 >sier
 >> to use tools built under one rev of the OS with newer revs of the OS.
 >
 >I guess I can see that, are there any platforms where this can be done
 >today?
Linux.  Solaris comes very close as well.

 > I am curious how they handle some of the generic fixincludes
 >changes like mapping va_list and __va_list to __gnuc_va_list.
Linux just adds the appropriate mapping under the assumption that it's
going to be compiled with GCC.  The mapping is controlled by a suitable
#ifdef -- the alternate path just includes stdarg.h, which may not be
strictly ANSI/ISO conformant.

I believe stdio.h is one of the very few files that are munged on Solaris
and I believe it's strictly because of the va_list issue.

jeff







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