From: Mike Frysinger Date: Thu, 28 May 2015 14:05:44 +0000 (+0000) Subject: hppa-linux: add missing cpp specs X-Git-Tag: releases/gcc-4.8.5~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d813920caec71f9ecf0d78e52cd0a02d12e4612;p=thirdparty%2Fgcc.git 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 From-SVN: r223824 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 075d1a71da44..f11cdd80b7e4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-05-28 Mike Frysinger + + * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when + -pthread is specified. + 2015-05-27 John David Anglin PR target/66148 diff --git a/gcc/config/pa/pa-linux.h b/gcc/config/pa/pa-linux.h index 939f5c22bc75..f9da314e983d 100644 --- a/gcc/config/pa/pa-linux.h +++ b/gcc/config/pa/pa-linux.h @@ -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 \