From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26295 invoked by alias); 25 Jun 2013 12:28:23 -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 26005 invoked by uid 48); 25 Jun 2013 12:28:15 -0000 From: "mikulas at artax dot karlin.mff.cuni.cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/57708] New: function clobbers callee saved register on ARM Date: Tue, 25 Jun 2013 12:28: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.8.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: mikulas at artax dot karlin.mff.cuni.cz 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 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-06/txt/msg01464.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57708 Bug ID: 57708 Summary: function clobbers callee saved register on ARM Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: major Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mikulas at artax dot karlin.mff.cuni.cz Compile the attached code with -O3 -mcpu=cortex-a15 -marm on ARM EABI (the bug happens with hardfp or without). The functions html_h3, html_h4, html_h5, html_h6 clobber the register r5 and do not save it. They save only r4. The bug is present in gcc-4.8 and gcc-4.8.1