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: Today's source cannot build on NetBSD


> It basically does:
> 
> #if __GNUC_PREREQ__(2, 96)
> #define _BSD_VA_LIST_           __builtin_va_list /* GCC built-in type */
> #else
> #define _BSD_VA_LIST_           char *          /* va_list */
> #endif

Which is fine, and probably the correct thing for the master copy in 
/usr/src/sys/arch/xxx/include/ansi.h.

> Anyway, if you do end up hacking fixincludes to fix this, make sure the
> rule can notice when it's been fixed already.

It won't matter.  When/if gcc is integrated into the netbsd sources, you 
won't run fixincludes there because you can fix your header files.  When 
gcc is used as a stand-alone package any files it needs to be fixed will 
be squirrelled away in its own private install tree.  Other compilers will 
never see the changes.  So if fixincludes fails to spot the above 
workaround (and I don't think it does), it won't matter anyway, since it 
will never be see by anything that doesn't require the fix anyway.

R.



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