diff options
author | Olivier Hainque <hainque@adacore.com> | 2020-02-18 09:59:56 +0000 |
---|---|---|
committer | Olivier Hainque <hainque@adacore.com> | 2020-10-14 17:38:38 +0000 |
commit | d00f8b405679e2744e7a9789a7a6eaa6e2f21d78 (patch) | |
tree | 41bedb10224ce7584c75960c0a7ead914abbcba0 /gcc/config/vxworks.h | |
parent | 69d6b3f650e73f272766a0c370b246a86c6a8d39 (diff) | |
download | gcc-d00f8b405679e2744e7a9789a7a6eaa6e2f21d78.zip gcc-d00f8b405679e2744e7a9789a7a6eaa6e2f21d78.tar.gz gcc-d00f8b405679e2744e7a9789a7a6eaa6e2f21d78.tar.bz2 |
Fallback to default CPP spec for C++ on VxWorks
Arrange to inhibit the effects of CPLUSPLUS_CPP_SPEC in gnu-user.h,
which #defines _GNU_SOURCE, which is invalid for VxWorks (possibly
not providing ::mkstemp, for example).
2020-10-14 Olivier Hainque <hainque@adacore.com>
gcc/
* config/vxworks.h: #undef CPLUSPLUS_CPP_SPEC.
Diffstat (limited to 'gcc/config/vxworks.h')
-rw-r--r-- | gcc/config/vxworks.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config/vxworks.h b/gcc/config/vxworks.h index e50260b0..d3c417e 100644 --- a/gcc/config/vxworks.h +++ b/gcc/config/vxworks.h @@ -70,6 +70,12 @@ along with GCC; see the file COPYING3. If not see #endif +/* Our ports rely on gnu-user.h, which #defines _POSIX_SOURCE for + C++ by default. VxWorks doesn't provide 100% of what this implies + (e.g. ::mkstemp), so, arrange to prevent that by falling back to + the default CPP spec for C++ as well. */ +#undef CPLUSPLUS_CPP_SPEC + /* For VxWorks static rtps, the system provides libc_internal.a, a superset of libgcc.a that we need to use e.g. to satisfy references to __init and __fini. We still want our libgcc to prevail for symbols it would provide |