This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
[glibc(refs/for/master%wip)] nios2: Work around backend bug triggered by csu/libc-tls.c (GCC PR 92499)
- From: Florian Weimer <fw at sourceware dot org>
- To: glibc-cvs at sourceware dot org
- Date: 13 Nov 2019 16:37:43 -0000
- Subject: [glibc(refs/for/master%wip)] nios2: Work around backend bug triggered by csu/libc-tls.c (GCC PR 92499)
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=277b390b1c911e646b9f66caed7312e2e9ba1b08
commit 277b390b1c911e646b9f66caed7312e2e9ba1b08
Author: Florian Weimer <fweimer@redhat.com>
Date: Wed Nov 13 12:00:38 2019 +0100
nios2: Work around backend bug triggered by csu/libc-tls.c (GCC PR 92499)
Diff:
---
sysdeps/unix/sysv/linux/nios2/Makefile | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/sysdeps/unix/sysv/linux/nios2/Makefile b/sysdeps/unix/sysv/linux/nios2/Makefile
index 5688a16..9342e45 100644
--- a/sysdeps/unix/sysv/linux/nios2/Makefile
+++ b/sysdeps/unix/sysv/linux/nios2/Makefile
@@ -7,3 +7,12 @@ ifeq ($(subdir),misc)
sysdep_headers += sys/cachectl.h
sysdep_routines += cacheflush
endif
+
+ifeq ($(subdir),csu)
+# Work around an incorrect assumption that an object of variably
+# modified type, with a small fixed size but a large variable-sized
+# part (the static_slotinfo variable in libc-tls.c) is allocated in
+# the small data section, not the data section where it belongs based
+# on its size. See GCC PR 92499.
+CFLAGS-libc-tls.c += -mgpopt=none
+endif