diff options
author | 2015-05-27 15:58:00 +0000 | |
---|---|---|
committer | 2015-05-27 15:58:00 +0000 | |
commit | fbd44ffe3c3430041b1733e9c06c0b2160017723 (patch) | |
tree | de6793350090b423a3ae6e4efeff4d52c7f759f2 /4.6.4 | |
parent | add gcc 5.1.0 piepatset (diff) | |
download | gcc-patches-fbd44ffe3c3430041b1733e9c06c0b2160017723.tar.gz gcc-patches-fbd44ffe3c3430041b1733e9c06c0b2160017723.tar.bz2 gcc-patches-fbd44ffe3c3430041b1733e9c06c0b2160017723.zip |
fix -pthread/_REENTRANT handling for hppa/nios2/microblaze #543114 by Jeroen Roovers
Diffstat (limited to '4.6.4')
-rw-r--r-- | 4.6.4/gentoo/45_all_linux-pthread-reentrant.patch | 64 | ||||
-rw-r--r-- | 4.6.4/gentoo/README.history | 3 |
2 files changed, 66 insertions, 1 deletions
diff --git a/4.6.4/gentoo/45_all_linux-pthread-reentrant.patch b/4.6.4/gentoo/45_all_linux-pthread-reentrant.patch new file mode 100644 index 0000000..2fc4cca --- /dev/null +++ b/4.6.4/gentoo/45_all_linux-pthread-reentrant.patch @@ -0,0 +1,64 @@ +https://bugs.gentoo.org/543114 + +From 446368efafb0139b7aac29c383cdf0ae2e349ca4 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Wed, 27 May 2015 10:21:35 -0400 +Subject: [PATCH] hppa-linux: add missing cpp specs + +Define CPP_SPEC for parisc linux targets so that -posix & -pthread work +like on all other linux targets. + +2015-05-27 Mike Frysinger <vapier@gentoo.org> + + * config/pa/pa-linux.h (CPP_SPEC): Define. +--- + gcc/config/pa/pa-linux.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gcc/config/pa/pa-linux.h b/gcc/config/pa/pa-linux.h +index 396d321..f8da185 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 \ +-- +2.4.1 + +From 7c5e214f79c1ac8ab3f49bf4560d66e654966143 Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Wed, 27 May 2015 10:22:25 -0400 +Subject: [PATCH] microblaze-linux: add missing cpp specs + +Define CPP_SPEC for microblaze linux targets so that -posix & -pthread +work like on all other linux targets. + +2015-05-27 Mike Frysinger <vapier@gentoo.org> + + * config/microblaze/linux.h (CPP_SPEC): Define. +--- + gcc/config/microblaze/linux.h | 3 +++ + 1 file changed, 3 insertions(+) + +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 @@ + <http://www.gnu.org/licenses/>. */ + + ++#undef CPP_SPEC ++#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" ++ + #define DYNAMIC_LINKER "/lib/ld.so.1" + #undef SUBTARGET_EXTRA_SPECS + #define SUBTARGET_EXTRA_SPECS \ +-- +2.4.1 diff --git a/4.6.4/gentoo/README.history b/4.6.4/gentoo/README.history index 572600d..39ed8b2 100644 --- a/4.6.4/gentoo/README.history +++ b/4.6.4/gentoo/README.history @@ -1,4 +1,5 @@ -1.3 [pending] +1.3 27 May 2015 + + 45_all_linux-pthread-reentrant.patch - 74_all_gcc46_cloog-dl.patch 1.2 29 Mar 2014 |