From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13016 invoked by alias); 23 Feb 2004 18:31:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 12956 invoked by uid 48); 23 Feb 2004 18:31:54 -0000 Date: Mon, 23 Feb 2004 18:31:00 -0000 From: "sje at cup dot hp dot com" To: gcc-bugs@gcc.gnu.org Message-ID: <20040223183151.14261.sje@cup.hp.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/14261] New: Compilation failure due to if-conversion X-Bugzilla-Reason: CC X-SW-Source: 2004-02/txt/msg02227.txt.bz2 List-Id: The attached program will not compile with -O2 on IA64 linux. If you turn off if-conversion it will compile. See http://gcc.gnu.org/ml/gcc/2004-02/msg01115.html for some analysis from Jim Wilson. This was tested with the ToT sources dated 20040212 and also exists on older GCC compilers for IA64 Linux. typedef union YYSTYPE { double dval; int intval; } YYSTYPE; YYSTYPE *x; int knparse (void) { YYSTYPE yyvsa[200]; register YYSTYPE *yyvsp; YYSTYPE yyval, *x; yyvsp = &yyvsa[100]; if (yyvsp[3].intval > yyvsp[0].intval) yyval.intval = yyvsp[3].intval; else yyval.intval = yyvsp[0].intval; *x = yyval; } -- Summary: Compilation failure due to if-conversion Product: gcc Version: 3.5.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sje at cup dot hp dot com CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14261