SHA256
1
0
forked from pool/qemu
qemu/ipxe-build-Avoid-strict-aliasing-warning.patch
Bruce Rogers dcff12a351 Accepting request 199056 from home:bfrogers:branches:Virtualization
Address issues found during preparations for factory submission:
remove unneeded %dir
add Conflicts to firmware packages for older qemu
add patch details to qemu.changes
Change qemu-seabios summary to begin with cap char
Add patch for failed i586 qemu-ipxe build with older gcc

OBS-URL: https://build.opensuse.org/request/show/199056
OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=163
2013-09-14 17:28:46 +00:00

30 lines
1.0 KiB
Diff

From 11ad0bafbf137a874f88ac810520acb90fa9a990 Mon Sep 17 00:00:00 2001
From: Bo Yang <boyang@suse.com>
Date: Wed, 20 Mar 2013 16:34:17 +0800
Subject: [PATCH] [build] Avoid strict-aliasing warning for gcc 4.3
Signed-off-by: Bo Yang <boyang@suse.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
---
src/arch/i386/include/bits/byteswap.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/roms/ipxe/src/arch/i386/include/bits/byteswap.h b/roms/ipxe/src/arch/i386/include/bits/byteswap.h
index f3d30a2..0d9cb96 100644
--- a/roms/ipxe/src/arch/i386/include/bits/byteswap.h
+++ b/roms/ipxe/src/arch/i386/include/bits/byteswap.h
@@ -53,8 +53,8 @@ __bswap_variable_64 ( uint64_t x ) {
static inline __attribute__ (( always_inline )) void
__bswap_64s ( uint64_t *x ) {
struct {
- uint32_t low;
- uint32_t high;
+ uint32_t __attribute__ (( may_alias )) low;
+ uint32_t __attribute__ (( may_alias )) high;
} __attribute__ (( may_alias )) *dwords = ( ( void * ) x );
uint32_t discard;
--
1.7.7