QEMU-Devel Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] seabios-hppa: add -fno-ipa-sra to the compiler flags
@ 2020-08-01 16:58 Michael Tokarev
  0 siblings, 0 replies; only message in thread
From: Michael Tokarev @ 2020-08-01 16:58 UTC (permalink / raw)
  To: Helge Deller, qemu-devel

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.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>

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

diff --git a/Makefile.parisc b/Makefile.parisc
index c0d5d958..1b7757e8 100644
--- a/Makefile.parisc
+++ b/Makefile.parisc
@@ -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,)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-01 16:58 [PATCH] seabios-hppa: add -fno-ipa-sra to the compiler flags Michael Tokarev

QEMU-Devel Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/qemu-devel/0 qemu-devel/git/0.git
	git clone --mirror https://lore.kernel.org/qemu-devel/1 qemu-devel/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 qemu-devel qemu-devel/ https://lore.kernel.org/qemu-devel \
		qemu-devel@nongnu.org
	public-inbox-index qemu-devel

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.nongnu.qemu-devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git