From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24931 invoked by alias); 14 Aug 2013 09:46:44 -0000 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 Received: (qmail 24907 invoked by uid 48); 14 Aug 2013 09:46:43 -0000 From: "jay.foad at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/58152] New: ARM: unnecessary push before call to noreturn function Date: Wed, 14 Aug 2013 09:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: jay.foad at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-08/txt/msg00730.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58152 Bug ID: 58152 Summary: ARM: unnecessary push before call to noreturn function Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: jay.foad at gmail dot com Created attachment 30652 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30652&action=edit C source for testcase On the attached test case I get: $ gcc -marm -S -O2 ~/mul.c -o - -fomit-frame-pointer -march=armv6 ... mul: @ args = 0, pretend = 0, frame = 0 @ frame_needed = 0, uses_anonymous_args = 0 smull r0, r1, r0, r1 cmp r1, r0, asr #31 bxeq lr stmfd sp!, {r3, lr} bl overflow The stmfd instruction is completely unnecessary. I'm using gcc built from svn r201719 configured with --target=arm-eabi.