summaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2019-12-30 21:36:34 +0000
committerOlivier Hainque <hainque@gcc.gnu.org>2019-12-30 21:36:34 +0000
commitb3405ddc5d83bd1856dfb00d415514a996be951d (patch)
tree775b49997b08cb010d810fb2cee12fad10efd9b7 /gcc/config.gcc
parent1361ae0e7647cbf4b77f917835c4d4aecba3e533 (diff)
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
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 9802f436e06..1110f7bda74 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -955,6 +955,10 @@ case ${target} in
xm_defines=POSIX
extra_options="${extra_options} vxworks.opt"
extra_objs="$extra_objs vxworks.o"
+ c_target_objs="${c_target_objs} vxworks-c.o"
+ cxx_target_objs="${cxx_target_objs} vxworks-c.o"
+ extra_headers="${extra_headers} ../vxworks/vxworks-predef.h"
+ target_has_targetcm="yes"
use_gcc_stdint=provide
tm_file="${tm_file} vxworks-stdint.h"
case ${enable_threads} in