diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-05-27 15:58:00 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-05-27 15:58:00 +0000 |
commit | fbd44ffe3c3430041b1733e9c06c0b2160017723 (patch) | |
tree | de6793350090b423a3ae6e4efeff4d52c7f759f2 /4.8.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.8.4')
-rw-r--r-- | 4.8.4/gentoo/45_all_linux-pthread-reentrant.patch | 64 | ||||
-rw-r--r-- | 4.8.4/gentoo/README.history | 3 |
2 files changed, 67 insertions, 0 deletions
diff --git a/4.8.4/gentoo/45_all_linux-pthread-reentrant.patch b/4.8.4/gentoo/45_all_linux-pthread-reentrant.patch new file mode 100644 index 0000000..6b15570 --- /dev/null +++ b/4.8.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 @@ + #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 + +-- +2.4.1 diff --git a/4.8.4/gentoo/README.history b/4.8.4/gentoo/README.history index 75fa92b..e7d815f 100644 --- a/4.8.4/gentoo/README.history +++ b/4.8.4/gentoo/README.history @@ -1,3 +1,6 @@ +1.6 27 May 2015 + + 45_all_linux-pthread-reentrant.patch + 1.5 23 Apr 2015 U 74_all_gcc49_cloog-dl.patch |