Re: [Xen-devel] [PATCH 1/2] xen-detect: fix strict-aliasing compilation warning.

2014-12-03 Thread Andrew Cooper
On 03/12/14 15:39, John Haxby wrote: > On 01/12/14 17:15, Andrew Cooper wrote: >> On 01/12/14 14:37, John Haxby wrote: >>> With gcc 4.8.3, compiling xen-detect gives a compilation warning if >>> you're optimising: >>> >>> $ cc -Wall -Os xen-detect.c >>> xen-detect.c: In function ‘check_for_xen’: >>

Re: [Xen-devel] [PATCH 1/2] xen-detect: fix strict-aliasing compilation warning.

2014-12-03 Thread Andrew Cooper
On 01/12/14 18:45, John Haxby wrote: > >> On 1 Dec 2014, at 17:15, Andrew Cooper > > wrote: >> >> On 01/12/14 14:37, John Haxby wrote: >>> With gcc 4.8.3, compiling xen-detect gives a compilation warning if >>> you're optimising: >>> >>> $ cc -Wall -Os xen-detect.c

Re: [Xen-devel] [PATCH 1/2] xen-detect: fix strict-aliasing compilation warning.

2014-12-03 Thread John Haxby
On 01/12/14 17:15, Andrew Cooper wrote: > On 01/12/14 14:37, John Haxby wrote: >> With gcc 4.8.3, compiling xen-detect gives a compilation warning if >> you're optimising: >> >> $ cc -Wall -Os xen-detect.c >> xen-detect.c: In function ‘check_for_xen’: >> xen-detect.c:65:9: warning: dereferencing ty

Re: [Xen-devel] [PATCH 1/2] xen-detect: fix strict-aliasing compilation warning.

2014-12-01 Thread John Haxby
> On 1 Dec 2014, at 17:15, Andrew Cooper wrote: > > On 01/12/14 14:37, John Haxby wrote: >> With gcc 4.8.3, compiling xen-detect gives a compilation warning if >> you're optimising: >> >> $ cc -Wall -Os xen-detect.c >> xen-detect.c: In function ‘check_for_xen’: >> xen-detect.c:65:9: warning: de

Re: [Xen-devel] [PATCH 1/2] xen-detect: fix strict-aliasing compilation warning.

2014-12-01 Thread Andrew Cooper
On 01/12/14 14:37, John Haxby wrote: > With gcc 4.8.3, compiling xen-detect gives a compilation warning if > you're optimising: > > $ cc -Wall -Os xen-detect.c > xen-detect.c: In function ‘check_for_xen’: > xen-detect.c:65:9: warning: dereferencing type-punned pointer will break > strict-aliasing r

[Xen-devel] [PATCH 1/2] xen-detect: fix strict-aliasing compilation warning.

2014-12-01 Thread John Haxby
With gcc 4.8.3, compiling xen-detect gives a compilation warning if you're optimising: $ cc -Wall -Os xen-detect.c xen-detect.c: In function ‘check_for_xen’: xen-detect.c:65:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] *(uint32_t *)(si