From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7935 invoked by alias); 1 Oct 2002 16:26: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 7917 invoked by uid 71); 1 Oct 2002 16:26:00 -0000 Resent-Date: 1 Oct 2002 16:26:00 -0000 Resent-Message-ID: <20021001162600.7916.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, dyatchkov@mcst.ru Received: (qmail 3627 invoked by uid 61); 1 Oct 2002 16:18:06 -0000 Message-Id: <20021001161806.3626.qmail@sources.redhat.com> Date: Tue, 01 Oct 2002 09:26:00 -0000 From: dyatchkov@mcst.ru Reply-To: dyatchkov@mcst.ru To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: optimization/8110: GCC 3.2: wrong code optimization with -O2 X-SW-Source: 2002-10/txt/msg00009.txt.bz2 List-Id: >Number: 8110 >Category: optimization >Synopsis: GCC 3.2: wrong code optimization with -O2 >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: wrong-code >Submitter-Id: net >Arrival-Date: Tue Oct 01 09:26:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Ilia Dyatchkov >Release: 3.2 >Organization: >Environment: System: SunOS 5.8 (Solaris 8) Architecture: sparc host: sparc-sun-solaris2.8 build: sparc-sun-solaris2.8 target: sparc-sun-solaris2.8 configured with: /home/username/src/gcc-3.2/configure --prefix=/home/username/usr --disable-multilib --enable-languages=c,c++,f77 --norecursion >Description: cc1 in spec's CINT2000 176.gcc aborts when it made by gcc 3.2 with -O2 (or higher) option. The test works correctly when we use gcc with lower optimization. The test also works after compiling by gcc 2.95.2 with -Os. It aborts at the end of expand_expr function (in expr.c) because temp=0 (in what way?). >How-To-Repeat: Configure SPEC CPU2000 with following settings ext = compsys tune = base iterations = 1 size = test OPTIMIZE = -O2 // or higher and run runspec. Or you can make $(SPEC)/benchspec/CINT2000/176.gcc/src/ and then run (spec)cc1 for compiling $(SPEC)/benchspec/CINT2000/176.gcc/data/train/input/cp-decl.i. >Fix: >Release-Note: >Audit-Trail: >Unformatted: