aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-05-28 14:06:47 +0000
committerMike Frysinger <vapier@gentoo.org>2015-05-28 14:06:47 +0000
commitedf7e4d02eae35b5dacff9e83b3a7128cb9f3ecb (patch)
tree5d9def9f989e2d3546e9e90856a1b508cce958bb
parent59ec82121d05e5020811185673a53fecc5f2b66b (diff)
hppa-linux: add missing cpp specs
Define CPP_SPEC for parisc linux targets so that -posix & -pthread work like on all other linux targets. Discovered via Gentoo bug https://bugs.gentoo.org/543114 git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@223826 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/pa/pa-linux.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index de0d68bdb86..c575a16b7ae 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2015-05-27 John David Anglin <danglin@gcc.gnu.org>
PR target/66148
diff --git a/gcc/config/pa/pa-linux.h b/gcc/config/pa/pa-linux.h
index 399308ab43f..b4c26977464 100644
--- a/gcc/config/pa/pa-linux.h
+++ b/gcc/config/pa/pa-linux.h
@@ -31,7 +31,7 @@ along with GCC; see the file COPYING3. If not see
while (0)
#undef CPP_SPEC
-#define CPP_SPEC "%{posix:-D_POSIX_SOURCE}"
+#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}"
#undef ASM_SPEC
#define ASM_SPEC \