This is the mail archive of the gcc@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]

crosscompile for VxWorks


I'm getting problems while cross-compiling libiberty for
powerpc-wrs-vxworks5.3 .

It seems stdarg.h needs being included before stdio in
vasprintf (and in anything which uses va_lists)

puting the lines
-->
#ifdef __STDC__
#include <stdarg.h>
#else
#include <varargs.h>
#endif
>--
before 
#include <stdio.h>
does not seem harmful on Solaris and it makes libiberty compile
for my cross-target.

I wonder if moving stdarg before stdio is the right solution or if
I should instead try to force the use of the old VxWorks ARCH_va_list
for compiling libiberty.

(Note: using egcs-19980418 snapshot)

FM


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