aboutsummaryrefslogtreecommitdiff
path: root/3.4.6
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-01-08 15:26:19 +0000
committerMike Frysinger <vapier@gentoo.org>2013-01-08 15:26:19 +0000
commit59fc8ac0bebfc698513467e6c031a35ab03bd3f2 (patch)
tree1683372206732def33b19487bc29cf29f0a6ea78 /3.4.6
parentrename patch to reflect proper version (diff)
downloadgcc-patches-59fc8ac0bebfc698513467e6c031a35ab03bd3f2.tar.gz
gcc-patches-59fc8ac0bebfc698513467e6c031a35ab03bd3f2.tar.bz2
gcc-patches-59fc8ac0bebfc698513467e6c031a35ab03bd3f2.zip
fix from upstream for building with newer glibc #424970
Diffstat (limited to '3.4.6')
-rw-r--r--3.4.6/gentoo/05_all_gcc-3.4.x-siginfo.patch87
1 files changed, 87 insertions, 0 deletions
diff --git a/3.4.6/gentoo/05_all_gcc-3.4.x-siginfo.patch b/3.4.6/gentoo/05_all_gcc-3.4.x-siginfo.patch
new file mode 100644
index 0000000..0af79d5
--- /dev/null
+++ b/3.4.6/gentoo/05_all_gcc-3.4.x-siginfo.patch
@@ -0,0 +1,87 @@
+https://bugs.gentoo.org/424970
+https://bugs.gentoo.org/427220
+
+fix for building with newer glibc versions -- same idea as the fixes that
+went into upstream gcc versions
+
+--- a/gcc/config/alpha/linux.h
++++ b/gcc/config/alpha/linux.h
+@@ -89,7 +89,7 @@ Boston, MA 02111-1307, USA. */
+ else if (pc_[1] == 0x201f015f) /* lda $0,NR_rt_sigreturn */ \
+ { \
+ struct rt_sigframe { \
+- struct siginfo info; \
++ siginfo_t info; \
+ struct ucontext uc; \
+ } *rt_ = (CONTEXT)->cfa; \
+ sc_ = &rt_->uc.uc_mcontext; \
+--- a/gcc/config/i386/linux.h
++++ b/gcc/config/i386/linux.h
+@@ -258,9 +258,9 @@ Boston, MA 02111-1307, USA. */
+ { \
+ struct rt_sigframe { \
+ int sig; \
+- struct siginfo *pinfo; \
++ siginfo_t *pinfo; \
+ void *puc; \
+- struct siginfo info; \
++ siginfo_t info; \
+ struct ucontext uc; \
+ } *rt_ = (CONTEXT)->cfa; \
+ sc_ = (struct sigcontext *) &rt_->uc.uc_mcontext; \
+--- a/gcc/config/i386/linux64.h
++++ b/gcc/config/i386/linux64.h
+@@ -179,9 +179,9 @@ Boston, MA 02111-1307, USA. */
+ { \
+ struct rt_sigframe { \
+ int sig; \
+- struct siginfo *pinfo; \
++ siginfo_t *pinfo; \
+ void *puc; \
+- struct siginfo info; \
++ siginfo_t info; \
+ struct ucontext uc; \
+ } *rt_ = (CONTEXT)->cfa; \
+ sc_ = (struct sigcontext *) &rt_->uc.uc_mcontext; \
+--- a/gcc/config/ia64/linux.h
++++ b/gcc/config/ia64/linux.h
+@@ -72,7 +72,7 @@ do { \
+ struct sigframe { \
+ char scratch[16]; \
+ unsigned long sig_number; \
+- struct siginfo *info; \
++ siginfo_t *info; \
+ struct sigcontext *sc; \
+ } *frame_ = (struct sigframe *)(CONTEXT)->psp; \
+ struct sigcontext *sc_ = frame_->sc; \
+@@ -130,7 +130,7 @@ do { \
+ struct sigframe { \
+ char scratch[16]; \
+ unsigned long sig_number; \
+- struct siginfo *info; \
++ siginfo_t *info; \
+ struct sigcontext *sc; \
+ } *frame_ = (struct sigframe *)(CONTEXT)->psp; \
+ struct sigcontext *sc_ = frame_->sc; \
+--- a/gcc/config/mips/linux.h
++++ b/gcc/config/mips/linux.h
+@@ -75,7 +76,7 @@
+ { \
+ struct rt_sigframe { \
+ u_int32_t trampoline[2]; \
+- struct siginfo info; \
++ siginfo_t info; \
+ _sig_ucontext_t uc; \
+ } *rt_ = (CONTEXT)->ra; \
+ sc_ = &rt_->uc.uc_mcontext; \
+--- a/gcc/config/sh/linux.h
++++ b/gcc/config/sh/linux.h
+@@ -179,7 +180,7 @@
+ && (*(unsigned short *) (pc_+14) == 0x00ad)))) \
+ { \
+ struct rt_sigframe { \
+- struct siginfo info; \
++ siginfo_t info; \
+ struct ucontext uc; \
+ } *rt_ = (CONTEXT)->cfa; \
+ sc_ = (struct sigcontext *) &rt_->uc.uc_mcontext; \