From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16739 invoked by alias); 17 Mar 2003 17:16:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 16698 invoked by uid 71); 17 Mar 2003 17:16:01 -0000 Date: Mon, 17 Mar 2003 17:16:00 -0000 Message-ID: <20030317171601.16697.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Robert Schiele Subject: Re: optimization/8300: [3.2/3.3/3.4 regression] [sparc] ICE in gen_reg_rtx, at emit-rtl.c:662 Reply-To: Robert Schiele X-SW-Source: 2003-03/txt/msg01150.txt.bz2 List-Id: The following reply was made to PR optimization/8300; it has been noted by GNATS. From: Robert Schiele To: Falk Hueffner Cc: Richard Henderson , gcc-bugs@gcc.gnu.org, tneumann@pi3.informatik.uni-mannheim.de, gcc-gnats@gcc.gnu.org Subject: Re: optimization/8300: [3.2/3.3/3.4 regression] [sparc] ICE in gen_reg_rtx, at emit-rtl.c:662 Date: Mon, 17 Mar 2003 18:09:29 +0100 --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 17, 2003 at 05:59:25PM +0100, Falk Hueffner wrote: > Robert Schiele writes: >=20 > > On Mon, Mar 17, 2003 at 04:24:34PM +0100, Falk Hueffner wrote: > > > Robert Schiele writes: > > >=20 > > > > void a() { > > > > double b; > > > > int c[2]; > > > > *((int*)&b) && (c[1] =3D 0); > > > > } > > > >=20 > > > > Exactly same problem. And this time there is no pointer outside we= ll > > > > defined data area. You agree that this sample is legal code? > > >=20 > > > No, you're violating the rule in 6.5.7 by accessing an object of type > > > double with an lvalue of type int. > >=20 > > 6.5.7? This one is about bitwise shift operators >=20 > Sorry, I meant 6.5, paragraph 7. Thanks again. Got it now. I am convinced that this is illegal code. Robert --=20 Robert Schiele Tel.: +49-621-181-2517 Dipl.-Wirtsch.informatiker mailto:rschiele@uni-mannheim.de --2oS5YaxWCcQjTEyO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iQEVAwUBPnYBSMQAnns5HcHpAQH2xgf/eQ1jP0Gd+FTLKrueFBqvDvdVCInCy3sr qox+kHuMy75637MQ/eTeYiUK7rvzZ3Cn2Oj5JJu3Rln+4ioe8zi/XgmONMQy9Ab5 Udgre7OYEVTS2YPK8S9KbgiCOkxJmvNAA2lwED3bzTbEncHxhYX7cOgJLxGhFqgp 9kjuHhf9CVXj8FmLoOOinbUcx623oV1cgMBJ9XiL7PpiqYgXG1gSpOZFz2FJJ2Em nSuBLNeuA9uPDetJOTz0E/uscWXPsavoPMzZj9pj9ycLYNvMDK0DSGAsuRiMcgii fBFRF8Ow5xafER28j/5KwoOxVYnTlt0Zv8D08Jo1EznCRx/0PkAYig== =W5D3 -----END PGP SIGNATURE----- --2oS5YaxWCcQjTEyO--