diff options
author | Olivier Hainque <hainque@adacore.com> | 2019-12-30 21:42:26 +0000 |
---|---|---|
committer | Olivier Hainque <hainque@gcc.gnu.org> | 2019-12-30 21:42:26 +0000 |
commit | abb6c3eecf6680814624bd1fe454844002dfc892 (patch) | |
tree | a612594b95661ae744ec614c6c14e93bf6723fa0 /gcc | |
parent | c62f986a37898b5ebd36bd8f184d9e8d969d7ab4 (diff) | |
download | gcc-abb6c3eecf6680814624bd1fe454844002dfc892.zip gcc-abb6c3eecf6680814624bd1fe454844002dfc892.tar.gz gcc-abb6c3eecf6680814624bd1fe454844002dfc892.tar.bz2 |
Introduce an internal API for VxWorks version checks
This changes introduces an internal API for VxWorks version checks
within runtime files, a prerequisite to a few fixes coming up for libstdc++
builds on more recent versions of the OS.
2019-12-30 Olivier Hainque <hainque@adacore.com>
gcc/
* config/vxworks/_vxworks-versions.h: New file.
* config.gcc (*-*-vxworks*): Add it to extra_headers.
libgcc/
* config/gthr-vxworks.h: Use _vxworks-versions.h.
* config/gthr-vxworks-tls.c: Likewise.
From-SVN: r279783
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config.gcc | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7fc3463..ee7346a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2019-12-30 Olivier Hainque <hainque@adacore.com> + * config/vxworks/_vxworks-versions.h: New file. + * config.gcc (*-*-vxworks*): Add it to extra_headers. + +2019-12-30 Olivier Hainque <hainque@adacore.com> + * config/t-vxworks: Rework the vxworks.o compilation rules to use $(COMPILE). diff --git a/gcc/config.gcc b/gcc/config.gcc index 1110f7b..f4f58d2 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -961,6 +961,13 @@ case ${target} in target_has_targetcm="yes" use_gcc_stdint=provide tm_file="${tm_file} vxworks-stdint.h" + + # This private header exposes a consistent interface for checks on + # the VxWorks version our runtime header files need to perform, based on + # what the system headers adverstise: + + extra_headers="${extra_headers} ../vxworks/_vxworks-versions.h" + case ${enable_threads} in no) ;; "" | yes | vxworks) thread_file='vxworks' ;; |