From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5533 invoked by alias); 4 Feb 2009 23:39:08 -0000 Received: (qmail 5484 invoked by uid 48); 4 Feb 2009 23:38:49 -0000 Date: Wed, 04 Feb 2009 23:39:00 -0000 Message-ID: <20090204233849.5483.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/36409] Additional instructions in prologue and epilogue. In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ramana dot r at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-02/txt/msg00392.txt.bz2 ------- Comment #1 from ramana dot r at gmail dot com 2009-02-04 23:38 ------- 4.4.0 with revision id 143499 generates the following code with -O3 , -O2 and -Os . The same code is generated for 4.3.3 as well sub sp, sp, #8 mov r3, sp mov r2, #0 stmia r3, {r0, r1} str r2, [r0, #0] add sp, sp, #8 bx lr Clearly things have gotten worse with an extra stmia being generated in this case where the argument registers are being saved on the stack with the stmia instruction. -- ramana dot r at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rearnsha at arm dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36409