]> git.ipfire.org Git - thirdparty/gcc.git/commit
Setup TARGET_C_PREINCLUDE for VxWorks
authorJoel Brobecker <brobecker@adacore.com>
Mon, 30 Dec 2019 21:36:34 +0000 (21:36 +0000)
committerOlivier Hainque <hainque@gcc.gnu.org>
Mon, 30 Dec 2019 21:36:34 +0000 (21:36 +0000)
commitb3405ddc5d83bd1856dfb00d415514a996be951d
tree775b49997b08cb010d810fb2cee12fad10efd9b7
parent1361ae0e7647cbf4b77f917835c4d4aecba3e533
Setup TARGET_C_PREINCLUDE for VxWorks

This patch modifies the C & C++ VxWorks compiler to predefine
the __STDC_ macros verified by gcc.dg/c99-predef-1.c in the testsuite.

2019-12-13  Joel Brobecker  <brobecker@adacore.com>

* config.gcc <*-*-vxworks*>: Add vxworks-c.o to c_target_objs
and cxx_target_objs. Set target_has_targetcm to "yes". Add
vxworks-predef.h to extra_headers.
* config/t-vxworks (vxworks-c.o): New target.
* config/vxworks-c.c: New file.
* config/vxworks/vxworks-predef.h: New file.

From-SVN: r279781
gcc/ChangeLog
gcc/config.gcc
gcc/config/t-vxworks