Skip to contentSkip to conversation

seabios-hppa: add -fno-ipa-sra to the compiler flags

PATCH New Michael Tokarev 1 participant 1 message Aug 1, 2020 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 seabios-hppa: add -fno-ipa-sra to the compiler flags

Date: Wed, 22 Jul 2020 22:15:46 +0300

This allows seabios-hppa to build with gcc-10. Or else the compiler generates eg memset.isra.0 symbols instead of memset, and the final link step fails due to missing memset.

Previous versions of gcc, for quite some time already, recognizes this option but it does nothing since apparently no-ipa-sra is the default. So there's no harm in adding it unconditionally, it seems.

---
Sending this as a proper patch with proper S-o-b, just in case.

Makefile.parisc +1 -1
index c0d5d958..1b7757e8 100644
@@ -75,3 +75,3 @@ COMMONCFLAGS := -I$(OUT) -Isrc -Ivgasrc -Os -MD -g \
     -fdata-sections -fno-common -fno-merge-constants -mdisable-fpregs \
-    -fno-builtin-printf
+    -fno-builtin-printf -fno-ipa-sra
 COMMONCFLAGS += $(call cc-option,$(CC),-nopie,)