diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-05-28 13:59:58 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gcc.gnu.org> | 2015-05-28 13:59:58 +0000 |
commit | 52d0089ecaab81fc9cecca26822a3e69193dd715 (patch) | |
tree | 9fa3649227010f01f5186514f58165124663a79e | |
parent | 148f65a3c7f3ea60524df0a13d5239ac78f53516 (diff) | |
download | gcc-52d0089ecaab81fc9cecca26822a3e69193dd715.zip gcc-52d0089ecaab81fc9cecca26822a3e69193dd715.tar.gz gcc-52d0089ecaab81fc9cecca26822a3e69193dd715.tar.bz2 |
nios2-linux: add missing cpp specs
Define CPP_SPEC for nios2 linux targets so that -posix & -pthread work
like on all other linux targets.
Discovered via Gentoo bug https://bugs.gentoo.org/543114
From-SVN: r223823
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/nios2/linux.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8aae429..b66ba2f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2015-05-28 Mike Frysinger <vapier@gentoo.org> + * config/nios2/linux.h (CPP_SPEC): Define. + +2015-05-28 Mike Frysinger <vapier@gentoo.org> + * config/microblaze/linux.h (CPP_SPEC): Define. 2015-05-28 Mike Frysinger <vapier@gentoo.org> diff --git a/gcc/config/nios2/linux.h b/gcc/config/nios2/linux.h index 41cad94..f43f655 100644 --- a/gcc/config/nios2/linux.h +++ b/gcc/config/nios2/linux.h @@ -26,6 +26,9 @@ } \ while (0) +#undef CPP_SPEC +#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" + #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-nios2.so.1" #undef LINK_SPEC |