From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6572 invoked by alias); 26 Apr 2002 02:36: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 6504 invoked by uid 71); 26 Apr 2002 02:36:00 -0000 Resent-Date: 26 Apr 2002 02:36:00 -0000 Resent-Message-ID: <20020426023600.6503.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, davem@redhat.com Received:(qmail 6457 invoked by uid 61); 26 Apr 2002 02:35:54 -0000 Message-Id:<20020426023554.6456.qmail@sources.redhat.com> Date: Thu, 25 Apr 2002 19:36:00 -0000 From: davem@redhat.com Reply-To: davem@redhat.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: target/6466: Sparc backend uses bad types for frame size calculation. X-SW-Source: 2002-04/txt/msg01393.txt.bz2 List-Id: >Number: 6466 >Category: target >Synopsis: Sparc backend uses bad types for frame size calculation. >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu Apr 25 19:36:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: davem@redhat.com >Release: GCC 3.1 CVS >Organization: >Environment: sparc-linux-gnu >Description: Lots of code in the sparc backend dealing with computing the frame size uses 'int' where HOST_WIDE_INT is more appropriate. The attached testcase, when compiled for any sparc target will show the errors that result, such as "save" instructions with an immediate operand being a very large negative number. >How-To-Repeat: Compile above program on Sparc, look at assembler output or try to run the testcase :-) >Fix: Make Sparc backend use HOST_WIDE_INT as appropriate. >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="bug.c" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="bug.c" dm9pZCBmb28gKGNoYXIgKnApCnsKICByZXR1cm47Cn0KCmludCBtYWluKHZvaWQpCnsKICBjaGFy IHhbMHg3ZmZmZmZmMF07CiAgZm9vICh4KTsKCiAgZXhpdCAoMCk7Cn0K