nios2: Work around backend bug triggered by csu/libc-tls.c (GCC PR 92499)

Change-Id: If5df5b05d15f0418af821a9ac8cc0fad53437b10
This commit is contained in:
Florian Weimer 2019-11-13 12:00:38 +01:00
parent 70c6e15654
commit c9bf28d625
1 changed files with 9 additions and 0 deletions

View File

@ -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