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] |
Hello, Building a gcc 4.5 based powerpc-wrs-vxworks cross fails while compiling vxlib-tls.c for RTPs, with complaints about errno, EAGAIN and the like not being visible. The file is compiled with -mrtp and the definitions are expected to be provided thanks to #ifndef __RTP__ #include <taskHookLib.h> #else ==> # include <errno.h> #endif The problem is that __RTP__ is not defined despite -mrtp, because rs6000/vxworks.h:TARGET_OS_CPP_BUILTINS does not invoke VXWORKS_OS_CPP_BUILTINS as I think it should. A few common definitions are provided there, including the one we need, and the other vxworks ports do it already. This is still visible on mainline, and the attached patch fixes that. Tested by checking that the build proceeds past the failure point after the change. Thanks in advance, Olivier 2010-10-19 Olivier Hainque <hainque@adacore.com> * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Call VXWORKS_OS_CPP_BUILTINS.
Attachment:
vxcpp.dif
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |