]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
hppa-linux: add missing cpp specs
authorMike Frysinger <vapier@gentoo.org>
Thu, 28 May 2015 14:05:44 +0000 (14:05 +0000)
committerMike Frysinger <vapier@gcc.gnu.org>
Thu, 28 May 2015 14:05:44 +0000 (14:05 +0000)
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

From-SVN: r223824

gcc/ChangeLog
gcc/config/pa/pa-linux.h

index 075d1a71da44de88c22f6e17525266c0203645c0..f11cdd80b7e4d80635a92e9ae37dc6fafddfc865 100644 (file)
@@ -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
index 939f5c22bc75e6e15e0c489736fe2ee93e2e48ff..f9da314e983de70e11eee12ef296eff086ffdad9 100644 (file)
@@ -28,7 +28,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 \