From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30686 invoked by alias); 22 Mar 2002 02:06:02 -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 30659 invoked by uid 71); 22 Mar 2002 02:06:02 -0000 Resent-Date: 22 Mar 2002 02:06:02 -0000 Resent-Message-ID: <20020322020602.30658.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, janis187@us.ibm.com Received:(qmail 30593 invoked by uid 61); 22 Mar 2002 02:05:28 -0000 Message-Id:<20020322020528.30592.qmail@sources.redhat.com> Date: Thu, 21 Mar 2002 18:06:00 -0000 From: janis187@us.ibm.com Reply-To: janis187@us.ibm.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: optimization/6028: libcall handling breaks 173.applu with -Os on ia64 X-SW-Source: 2002-03/txt/msg00820.txt.bz2 List-Id: >Number: 6028 >Category: optimization >Synopsis: libcall handling breaks 173.applu with -Os on ia64 >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: wrong-code >Submitter-Id: net >Arrival-Date: Thu Mar 21 18:06:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Janis Johnson >Release: gcc version 3.1 20020321 (prerelease) >Organization: >Environment: Itanium, Red Hat Linux release 7.1.94 (Roswell) >Description: The SPEC CPU2000 test 173.applu gets incorrect results when compiled with -Os on ia64-unknown-linux-gnu with the 3.1 prerelease compiler. This is a regression from GCC 3.0.4 that begins with this change: Sun Dec 23 00:49:37 CET 2001 Jan Hubicka * calls.c (ECF_LIBCALL_BLOCK): New constant. (emit_call_1, initialize_argument_information, precompute_arguments, expand_call, emit_library_call_value_1): Use ECF_LIBCALL_BLOCK instead of ECF_PURE | ECF_CONST. Honnor LCT_CONST/LCT_PURE. I have not yet put together a test case to include with this PR, but I can continue to work on that if necessary. The subroutine that is compiled incorrectly with -Os is jaclf.f, which has three nested DO loops with lots of math, four calls to __divdf3, and no other calls. This test passes with all other optimization options I've tried. I used SPEC's test (small) input. >How-To-Repeat: Build and run 173.applu from SPEC CPU2000 with -Os. >Fix: Unknown. >Release-Note: >Audit-Trail: >Unformatted: