From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28059 invoked by alias); 30 Apr 2003 16:16: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 28023 invoked by uid 71); 30 Apr 2003 16:16:00 -0000 Resent-Date: 30 Apr 2003 16:16:00 -0000 Resent-Message-ID: <20030430161600.28022.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, davem@redhat.com Received: (qmail 23792 invoked by uid 48); 30 Apr 2003 16:07:27 -0000 Message-Id: <20030430160727.23791.qmail@sources.redhat.com> Date: Wed, 30 Apr 2003 16:16: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/10567: -fno-delayed-branch no honored when -mflat X-SW-Source: 2003-04/txt/msg01454.txt.bz2 List-Id: >Number: 10567 >Category: target >Synopsis: -fno-delayed-branch no honored when -mflat >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Apr 30 16:16:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: davem@redhat.com >Release: gcc-3.2.2 >Organization: >Environment: sparc-unknown-linux >Description: When using -mflat -fno-delayed-branch and a function allocates stack space to save registers, the delay slot of the 'retl' return instruction is filled with the stack deallocation instruction. Because -fno-delayed-branch is specified, the stack deallocation should occur before the 'retl' and it's delay slot should get a 'nop'. >How-To-Repeat: Compile the testcase with -mflat -fno-delayed-branch on any 32-bit sparc target. >Fix: The -mflat epilogue output code needs to honor the delayed branch setting. >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="testcase.c" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="testcase.c" ZXh0ZXJuIGludCBiYXIodm9pZCk7CgppbnQgZm9vKGludCBhKQp7CglyZXR1cm4gYSArIGJhcigp Owp9Cg==