From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8701 invoked by alias); 17 Mar 2003 05: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 8676 invoked by uid 71); 17 Mar 2003 05:16:01 -0000 Date: Mon, 17 Mar 2003 05:16:00 -0000 Message-ID: <20030317051601.8656.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/msg01101.txt.bz2 List-Id: The following reply was made to PR optimization/8300; it has been noted by GNATS. From: Robert Schiele To: rth@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, tneumann@pi3.informatik.uni-mannheim.de, gcc-gnats@gcc.gnu.org Cc: 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 06:08:21 +0100 --/04w6evG8XlLl3ft Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 16, 2003 at 11:26:37PM -0000, rth@gcc.gnu.org wrote: > Synopsis: [3.2/3.3/3.4 regression] [sparc] ICE in gen_reg_rtx, at emit-rt= l.c:662 >=20 > State-Changed-From-To: analyzed->open > State-Changed-By: rth > State-Changed-When: Sun Mar 16 23:26:37 2003 > State-Changed-Why: > The code is illegal because *(&c+1) is not an object. Well, I can show that this is not the problem: Rewriting the code as void a() { double b; int c; c =3D *((int*)&b) && (*(&c + 1) =3D 0); } shows the same problem and as c is explicitly defined here _before_, *(&c + 1) is also well defined. And then we have two bugs here: 1. My rewritten example is legal code with no doubt and produces an ICE whit optimization. 2. The original sample is accepted is accepted without optimization, although you say, it is illegal. Robert --=20 Robert Schiele Tel.: +49-621-181-2517 Dipl.-Wirtsch.informatiker mailto:rschiele@uni-mannheim.de --/04w6evG8XlLl3ft Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iQEVAwUBPnVYRcQAnns5HcHpAQE18AgAiDhqYRS/sUWexdcCwHXNE5QZKiVm7KjS u5LcL0t87k0kBf6X+EUpIre4T/rWPopJXOpiquH3jkl/9ikeI18aWQ9gwRWkcAx6 CVtCYfzCgmmBUwvkfUL7ckFu0UTL3wzixc7Fsu34qAgcyKfOGrruuyE/JHdfcsD4 5YU2S6mQKJvTt3aeXD5rn5Zpn3/QIGvCdZAiJm4GI51h4bX7Mgw9iXGnUYXzgGzp bZbFjMpcVSlZWSn24ToMheNMpMRmgkYCGEQ1nH7XXms1Fwd+O6gk1isFI61JuyZq YPJ43pZfyuUth2YUhOcVnmhlimoCgWmyz5RJ2klpPAB2MgUDJJP/SA== =lc5E -----END PGP SIGNATURE----- --/04w6evG8XlLl3ft--