diff options
Diffstat (limited to 'patches/glibc/ports-2.13')
-rw-r--r-- | patches/glibc/ports-2.13/090-Fix-ARM-build-with-GCC-trunk.patch (renamed from patches/glibc/ports-2.13/100-Fix-ARM-build-with-GCC-trunk.patch) | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/patches/glibc/ports-2.13/100-Fix-ARM-build-with-GCC-trunk.patch b/patches/glibc/ports-2.13/090-Fix-ARM-build-with-GCC-trunk.patch index f754e96..1a632fe 100644 --- a/patches/glibc/ports-2.13/100-Fix-ARM-build-with-GCC-trunk.patch +++ b/patches/glibc/ports-2.13/090-Fix-ARM-build-with-GCC-trunk.patch @@ -1,3 +1,25 @@ +From 175cef4163dd60f95106cfd5f593b8a4e09d02c9 Mon Sep 17 00:00:00 2001 +From: Joseph Myers <joseph@codesourcery.com> +Date: Tue, 20 May 2014 21:27:13 +0000 +Subject: [PATCH] Fix ARM build with GCC trunk. + +sysdeps/unix/sysv/linux/arm/unwind-resume.c and +sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c have static +variables that are written in C code but only read from toplevel asms. +Current GCC trunk now optimizes away such apparently write-only static +variables, so causing a build failure. This patch marks those +variables with __attribute_used__ to avoid that optimization. + +Tested that this fixes the build for ARM. + + * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c + (libgcc_s_resume): Use __attribute_used__. + * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume): + Likewise. +--- + sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c | 3 ++- + sysdeps/unix/sysv/linux/arm/unwind-resume.c | 3 ++- + 3 files changed, 11 insertions(+), 2 deletions(-) --- a/ports/sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c +++ b/ports/sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c @@ -23,7 +23,8 @@ |