yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-pc-bios-s390-ccw-Makefile-Compile-with-std-gnu99-fwr.patch

a19a21
From eda3b6620e779ff89df46a0fb9022016bffd7f44 Mon Sep 17 00:00:00 2001
a19a21
From: Thomas Huth <thuth@redhat.com>
a19a21
Date: Fri, 9 Oct 2020 10:08:41 -0400
a19a21
Subject: [PATCH 05/14] pc-bios/s390-ccw/Makefile: Compile with -std=gnu99,
a19a21
 -fwrapv and -fno-common
a19a21
a19a21
RH-Author: Thomas Huth <thuth@redhat.com>
a19a21
Message-id: <20201009100849.264994-2-thuth@redhat.com>
a19a21
Patchwork-id: 98595
a19a21
O-Subject: [RHEL-8.4.0 qemu-kvm PATCH 1/9] pc-bios/s390-ccw/Makefile: Compile with -std=gnu99, -fwrapv and -fno-common
a19a21
Bugzilla: 1846975
a19a21
RH-Acked-by: Jens Freimann <jfreimann@redhat.com>
a19a21
RH-Acked-by: David Hildenbrand <david@redhat.com>
a19a21
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
a19a21
a19a21
The main QEMU code is compiled with -std=gnu99, -fwrapv and -fno-common.
a19a21
We should use the same flags for the s390-ccw bios, too, to avoid that
a19a21
we get different behavior with different compiler versions that changed
a19a21
their default settings in the course of time (it happened at least with
a19a21
-std=... and -fno-common in the past already).
a19a21
a19a21
While we're at it, also group the other flags here in a little bit nicer
a19a21
fashion: Move the two "-m" flags out of the "-f" area and specify them on
a19a21
a separate line.
a19a21
a19a21
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
a19a21
Acked-by: Cornelia Huck <cohuck@redhat.com>
a19a21
Acked-by: Janosch Frank <frankja@linux.ibm.com>
a19a21
Message-Id: <20200806105349.632-2-thuth@redhat.com>
a19a21
Signed-off-by: Thomas Huth <thuth@redhat.com>
a19a21
(cherry picked from commit 4f6a1eb886961f1f9da2d553c4b0e5ef69cd3801)
a19a21
Conflicts: Simple contextual conflict due to meson reworks in upstream
a19a21
Signed-off-by: Thomas Huth <thuth@redhat.com>
a19a21
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
a19a21
---
a19a21
 pc-bios/s390-ccw/Makefile | 7 ++++---
a19a21
 1 file changed, 4 insertions(+), 3 deletions(-)
a19a21
a19a21
diff --git a/pc-bios/s390-ccw/Makefile b/pc-bios/s390-ccw/Makefile
a19a21
index a048b6b077..e776a2a5ec 100644
a19a21
--- a/pc-bios/s390-ccw/Makefile
a19a21
+++ b/pc-bios/s390-ccw/Makefile
a19a21
@@ -13,10 +13,11 @@ OBJECTS = start.o main.o bootmap.o jump2ipl.o sclp.o menu.o \
a19a21
 	  virtio.o virtio-scsi.o virtio-blkdev.o libc.o cio.o dasd-ipl.o
a19a21
 
a19a21
 QEMU_CFLAGS := $(filter -W%, $(QEMU_CFLAGS))
a19a21
-QEMU_CFLAGS += -ffreestanding -fno-delete-null-pointer-checks -msoft-float
a19a21
-QEMU_CFLAGS += -march=z900 -fPIE -fno-strict-aliasing
a19a21
-QEMU_CFLAGS += -fno-asynchronous-unwind-tables
a19a21
+QEMU_CFLAGS += -ffreestanding -fno-delete-null-pointer-checks -fno-common -fPIE
a19a21
+QEMU_CFLAGS += -fwrapv -fno-strict-aliasing -fno-asynchronous-unwind-tables
a19a21
 QEMU_CFLAGS += $(call cc-option, $(QEMU_CFLAGS), -fno-stack-protector)
a19a21
+QEMU_CFLAGS += -msoft-float -march=z900
a19a21
+QEMU_CFLAGS += -std=gnu99
a19a21
 LDFLAGS += -Wl,-pie -nostdlib
a19a21
 
a19a21
 build-all: s390-ccw.img s390-netboot.img
a19a21
-- 
a19a21
2.27.0
a19a21