s390_irgen_EX_SS: add initialisations so as to remove (false positive) warnings from...
commitd813fb74af762393a43dd9c70882e655f35ec2ca
authorJulian Seward <jseward@acm.org>
Tue, 7 Nov 2017 14:01:51 +0000 (7 15:01 +0100)
committerJulian Seward <jseward@acm.org>
Tue, 7 Nov 2017 14:01:51 +0000 (7 15:01 +0100)
treedfe9a8b4000a6b61a7cbf5e22d6cf09e8eba330a
parent7dd9a7f8b3118c25014b0a77aff899e517c46bcd
s390_irgen_EX_SS: add initialisations so as to remove (false positive) warnings from gcc-7.x.

When compiling guest_s390_toIR.c for a 32-bit target (a configuration in which
it will never be used, but never mind), gcc-7.x notices that sizeof(ss.dec) is
larger than sizeof(ss.bytes), so the initialisation of ss.bytes leaves ss.dec.b2
and ss.dec.d2 uninitialised.  This patch causes both variants to be initialised.
When built for a 64 bit target, the existing initialisation of ss.bytes covers
ss.dec completely, so there is no error.
VEX/priv/guest_s390_toIR.c