cryptospore / 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

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