This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[pushed] nios2: Work around backend bug triggered by csu/libc-tls.c (GCC PR 92...
- From: "Sourceware to Gerrit sync (Code Review)" <gerrit at gnutoolchain-gerrit dot osci dot io>
- To: Florian Weimer <fweimer at redhat dot com>, libc-alpha at sourceware dot org
- Cc: Chung-Lin Tang <chunglin dot tang at gmail dot com>
- Date: Thu, 14 Nov 2019 06:50:16 -0500
- Subject: [pushed] nios2: Work around backend bug triggered by csu/libc-tls.c (GCC PR 92...
- Auto-submitted: auto-generated
- References: <gerrit.1573663739000.If5df5b05d15f0418af821a9ac8cc0fad53437b10@gnutoolchain-gerrit.osci.io>
- Reply-to: noreply at gnutoolchain-gerrit dot osci dot io, fweimer at redhat dot com, chunglin dot tang at gmail dot com, libc-alpha at sourceware dot org
Sourceware to Gerrit sync has submitted this change.
Change URL: https://gnutoolchain-gerrit.osci.io/r/c/glibc/+/624
......................................................................
nios2: Work around backend bug triggered by csu/libc-tls.c (GCC PR 92499)
Change-Id: If5df5b05d15f0418af821a9ac8cc0fad53437b10
---
M sysdeps/unix/sysv/linux/nios2/Makefile
1 file changed, 9 insertions(+), 0 deletions(-)
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 @@
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
--
Gerrit-Project: glibc
Gerrit-Branch: master
Gerrit-Change-Id: If5df5b05d15f0418af821a9ac8cc0fad53437b10
Gerrit-Change-Number: 624
Gerrit-PatchSet: 2
Gerrit-Owner: Florian Weimer <fweimer@redhat.com>
Gerrit-Reviewer: Florian Weimer <fweimer@redhat.com>
Gerrit-CC: Chung-Lin Tang <chunglin.tang@gmail.com>
Gerrit-MessageType: merged