diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-05-28 13:59:32 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gcc.gnu.org> | 2015-05-28 13:59:32 +0000 |
commit | 148f65a3c7f3ea60524df0a13d5239ac78f53516 (patch) | |
tree | c3d9aa370b042c30a3ace14942b2771653252342 | |
parent | bb3caa357705844d03a633e2d1108e349a929068 (diff) | |
download | gcc-148f65a3c7f3ea60524df0a13d5239ac78f53516.zip gcc-148f65a3c7f3ea60524df0a13d5239ac78f53516.tar.gz gcc-148f65a3c7f3ea60524df0a13d5239ac78f53516.tar.bz2 |
microblaze-linux: add missing cpp specs
Define CPP_SPEC for microblaze linux targets so that -posix & -pthread
work like on all other linux targets.
Discovered via Gentoo bug https://bugs.gentoo.org/543114
From-SVN: r223822
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/microblaze/linux.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b1a4fc5..8aae429 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2015-05-28 Mike Frysinger <vapier@gentoo.org> + * config/microblaze/linux.h (CPP_SPEC): Define. + +2015-05-28 Mike Frysinger <vapier@gentoo.org> + * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when -pthread is specified. diff --git a/gcc/config/microblaze/linux.h b/gcc/config/microblaze/linux.h index a7faa7d..655a70f 100644 --- a/gcc/config/microblaze/linux.h +++ b/gcc/config/microblaze/linux.h @@ -22,6 +22,9 @@ #undef TARGET_SUPPORTS_PIC #define TARGET_SUPPORTS_PIC 1 +#undef CPP_SPEC +#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" + #undef TLS_NEEDS_GOT #define TLS_NEEDS_GOT 1 |