summaryrefslogtreecommitdiff
path: root/config/libc
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2020-09-03 09:25:09 (GMT)
committerChris Packham <judge.packham@gmail.com>2020-09-03 10:47:02 (GMT)
commit645ee12492274dcdfcbfbd53fcec00b9c722bc33 (patch)
tree7786f5db58454d38a4952386419451d573bb22c4 /config/libc
parent4e5bc43627582b11f11ebc1cedcfd1016f39c60e (diff)
glibc: Don't build with -Werror for powerpc64+glibc-2.32
When building powerpc64+glibc-2.32 we see the following error: [ALL ] In file included from ../sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c:26, [ALL ] from ../sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c:18: [ALL ] ../string/wordcopy.c: In function '_wordcopy_fwd_aligned': [ERROR] ../string/wordcopy.c:98:26: error: 'a1' may be used uninitialized in this function [-Werror=maybe-uninitialized] [ALL ] 98 | ((op_t *) dstp)[0] = a1; [ALL ] | ~~~~~~~~~~~~~~~~~~~^~~~ [ALL ] In file included from ../sysdeps/powerpc/powerpc64/power4/../../powerpc32/power4/memcopy.h:38, [ALL ] from ../sysdeps/powerpc/powerpc64/power4/memcopy.h:1, [ALL ] from ../string/wordcopy.c:23, [ALL ] from ../sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c:26, [ALL ] from ../sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c:18: [ALL ] ../string/wordcopy.c: In function '_wordcopy_fwd_dest_aligned': [ERROR] ../sysdeps/generic/memcopy.h:72:61: error: 'a3' may be used uninitialized in this function [-Werror=maybe-uninitialized] [ALL ] 72 | #define MERGE(w0, sh_1, w1, sh_2) (((w0) << (sh_1)) | ((w1) >> (sh_2))) [ALL ] | ^~ This seems to only trigger for powerpc64. Other architectures build cleanly. For now avoid specifying -Werror for powerpc64+glibc-2.32. Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'config/libc')
-rw-r--r--config/libc/glibc.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/libc/glibc.in b/config/libc/glibc.in
index f891392..fe18eee 100644
--- a/config/libc/glibc.in
+++ b/config/libc/glibc.in
@@ -400,6 +400,7 @@ config GLIBC_SSP
# GCC8-related fixes were only available in glibc 2.27.
config GLIBC_ENABLE_WERROR
bool "Enable -Werror during the build"
+ depends on !(ARCH_POWERPC && ARCH_64 && GLIBC_V_2_32)
default y if GCC_7_or_older
default y if GCC_8_or_later && GLIBC_2_27_or_later
help