+2019-12-30 Olivier Hainque <hainque@adacore.com>
+
+ * config/vxworks/_yvals.h: New file.
+ * config/vxworks/_yvals-wrapper.h: New file.
+ * gcc/config/vxworks/math.h: Use it to wrap the VxWorks
+ math.h header.
+ * gcc/config/vxworks/complex.h: Likewise.
+ * gcc/config/vxworks/setjmp.h: Likewise.
+ * gcc/config/vxworks/inttypes.h: Likewise.
+ * config.gcc (*-*-vxworks*): Add system header wrappers
+ to extra_headers.
+ (powerpc-*-vxworks*): Reuse the common extra_headers.
+
2019-12-30 Olivier Hainque <hainque@adacore.com>
* config/vxworks/_vxworks-versions.h: New file.
*-*-vxworks*)
tmake_file=t-vxworks
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"
extra_headers="${extra_headers} ../vxworks/_vxworks-versions.h"
+ # Starting from VxWorks 7, the system comes with a Dinkumware
+ # environment which requires the inclusion of "yvals.h" before other
+ # system headers. We provide wrapped versions of a few headers to
+ # accomodate such constraints:
+
+ extra_headers="${extra_headers} ../vxworks/_yvals.h"
+ extra_headers="${extra_headers} ../vxworks/_yvals-wrapper.h"
+
+ extra_headers="${extra_headers} ../vxworks/math.h ../vxworks/complex.h"
+ extra_headers="${extra_headers} ../vxworks/inttypes.h ../vxworks/setjmp.h"
+
case ${enable_threads} in
no) ;;
"" | yes | vxworks) thread_file='vxworks' ;;
tm_file="${tm_file} elfos.h gnu-user.h freebsd-spec.h rs6000/sysv4.h"
tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-ppccomm rs6000/t-vxworks"
extra_options="${extra_options} rs6000/sysv4.opt"
- extra_headers=ppc-asm.h
+ extra_headers="${extra_headers} ppc-asm.h"
case ${target} in
*-vxworksmils*)
tm_file="${tm_file} vx-common.h vxworksae.h rs6000/vxworks.h rs6000/vxworksmils.h"