summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Yang <boyang@suse.com>2013-03-20 16:34:17 +0800
committerJunfeng Dong <junfeng.dong@intel.com>2013-11-19 18:57:39 +0800
commit870e8de3f97fd7bd1a356131561a0630c05cbaa0 (patch)
treea7a2514e4cc2bd214cdfc0d9146161dd280cd414
parentf5ec14808631699b99660728a00b5454ab4a545e (diff)
downloadqemu-870e8de3f97fd7bd1a356131561a0630c05cbaa0.tar.gz
qemu-870e8de3f97fd7bd1a356131561a0630c05cbaa0.tar.bz2
qemu-870e8de3f97fd7bd1a356131561a0630c05cbaa0.zip
Avoid strict-aliasing warning for gcc 4.3
Signed-off-by: Bo Yang <boyang@suse.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r--roms/ipxe/src/arch/i386/include/bits/byteswap.h4
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 f3d30a254..0d9cb967c 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;