From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38867) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7W5q-00009J-9n for qemu-devel@nongnu.org; Tue, 13 Mar 2012 14:05:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7W5l-0007df-74 for qemu-devel@nongnu.org; Tue, 13 Mar 2012 14:05:05 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7W5k-0007dX-VT for qemu-devel@nongnu.org; Tue, 13 Mar 2012 14:05:01 -0400 Message-ID: <4F5F8C45.9060306@redhat.com> Date: Tue, 13 Mar 2012 12:04:53 -0600 From: Eric Blake MIME-Version: 1.0 References: <1330893156-26569-1-git-send-email-afaerber@suse.de> <1331398436-20761-1-git-send-email-afaerber@suse.de> <1331398436-20761-3-git-send-email-afaerber@suse.de> <4F5F3E07.9070706@samsung.com> <4F5F8AE3.9080302@suse.de> In-Reply-To: <4F5F8AE3.9080302@suse.de> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigD0D6D7857F6509C9ADB6FF09" Subject: Re: [Qemu-devel] [PATCH RFC v4 02/20] target-arm: Introduce QOM ARMCPUClass List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= Cc: Peter Maydell , i.mitsyanko@samsung.com, qemu-devel@nongnu.org, Dmitry Solodkiy , Anthony Liguori , Paul Brook This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD0D6D7857F6509C9ADB6FF09 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 03/13/2012 11:58 AM, Andreas F=C3=A4rber wrote: >>> +static void cpu_register(const ARMCPUInfo *info) >>> +{ >>> + TypeInfo type =3D { >>> + .name =3D info->name, >> >> Are non-initialized members guaranteed to be zero here? >=20 > I thought so for the C99-style struct initialization... I never ran int= o > crashes while testing. Do we need static to be safe? Yes, C99 guarantees in 6.7.8 p19: The initialization shall occur in initializer list order, each initializer provided for a particular subobject overriding any previously listed initializer for the same subobject; all subobjects that are not initialized explicitly shall be initialized implicitly the same as objects that have static storage duration. --=20 Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --------------enigD0D6D7857F6509C9ADB6FF09 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJPX4xFAAoJEKeha0olJ0Nqw8kH/RuWPyITBg4NmrO/BXPNeTsj AB/RfP6BNO9FBy/len64QGDfjUU/tX4l9C9eT58U1qeTkAOqYq4cgBElItIuTeky 8kC4uikqbhdc61io99IfE28ehExcCUCEOP0oh0gxfF939ZCromihAJVL6aKh+HzH bxWqAKM9VpJA0S70r4zjyocoEoy2vKBpWPKOCsReVgmwk9JPOzPI9tZX4XooiwCL NfkWokzf5ZmlLEuuxIQ4F8zZjR0zvRuCg/77JI5JA3822XpRD+Qr4ktKef1N8PD5 7iAveUiNtpBMkD5tzv11Jy6WRlWWK+cF5kFgQSWjFXBBvRYJAw3nQ0X2yIp8kwY= =N6Pk -----END PGP SIGNATURE----- --------------enigD0D6D7857F6509C9ADB6FF09--