From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10221 invoked by alias); 20 Feb 2003 06:56: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 10195 invoked by uid 71); 20 Feb 2003 06:56:01 -0000 Resent-Date: 20 Feb 2003 06:56:01 -0000 Resent-Message-ID: <20030220065601.10193.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, tausq@debian.org Received: (qmail 4405 invoked from network); 20 Feb 2003 06:51:31 -0000 Received: from unknown (HELO pippin.tausq.org) (64.81.244.94) by 172.16.49.205 with SMTP; 20 Feb 2003 06:51:31 -0000 Received: by pippin.tausq.org (Postfix, from userid 1000) id A108FCD294; Wed, 19 Feb 2003 22:42:11 -0800 (PST) Message-Id: <20030220064211.GD11363@tausq.org> Date: Thu, 20 Feb 2003 06:56:00 -0000 From: tausq@debian.org Reply-To: tausq@debian.org To: gcc-gnats@gcc.gnu.org, debian-gcc@lists.debian.org Cc: parisc-linux@lists.parisc-linux.org X-Send-Pr-Version: 3.113 Subject: optimization/9768: [hppa-linux, gcc-3.2 regression] ICE when optimizing inline code X-SW-Source: 2003-02/txt/msg00969.txt.bz2 List-Id: >Number: 9768 >Category: optimization >Synopsis: [hppa-linux, gcc-3.2 regression] ICE when optimizing inline code >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Thu Feb 20 06:56:01 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Randolph Chung >Release: 3.2.3 20030210 (Debian prerelease) (Debian testing/unstable) >Organization: Debian >Environment: System: Linux legolas 2.4.20-pa25 #115 Sun Feb 9 20:54:18 PST 2003 parisc unknown unknown GNU/Linux Architecture: parisc host: hppa-unknown-linux-gnu build: hppa-unknown-linux-gnu target: hppa-unknown-linux-gnu configured with: ../src/configure -v --enable-languages=c,c++,f77,proto,pascal,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-objc-gc hppa-linux >Description: see below code works with gcc-3.0 and gcc-3.3 snapshot also works with gcc-3.2 with -O1 >How-To-Repeat: -------8< cut here 8<--------- inline int fixfloor (long x) { if (x >= 0) return (x >> 16); else return ~((~x) >> 16); } inline int fixtoi (long x) { return fixfloor(x) + ((x & 0x8000) >> 15); } int foo(long x, long y) { return fixtoi(x*y); } -------8< cut here 8<--------- legolas% gcc-3.2 -O2 -c bug.i bug.i: In function `foo': bug.i:3: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. >Fix: unknown >Release-Note: >Audit-Trail: >Unformatted: