From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14707 invoked by alias); 6 Aug 2003 03:40:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 14685 invoked by uid 48); 6 Aug 2003 03:40:07 -0000 Date: Wed, 06 Aug 2003 03:40:00 -0000 Message-ID: <20030806034007.14683.qmail@sources.redhat.com> From: "pinskia at physics dot uc dot edu" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20030805124527.11807.aw11@os.inf.tu-dresden.de> References: <20030805124527.11807.aw11@os.inf.tu-dresden.de> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/11807] GCC should error out when clobering the stack pointer or frame pointer X-Bugzilla-Reason: CC X-SW-Source: 2003-08/txt/msg00826.txt.bz2 List-Id: PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11807 pinskia at physics dot uc dot edu changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|critical |normal Status|UNCONFIRMED |NEW Ever Confirmed| |1 GCC target triplet|arm-linux | Keywords| |accepts-invalid Last reconfirmed|0000-00-00 00:00:00 |2003-08-06 03:40:07 date| | Summary|Wrong usage of registers on |GCC should error out when |ARM |clobering the stack pointer | |or frame pointer ------- Additional Comments From pinskia at physics dot uc dot edu 2003-08-06 03:40 ------- gcc does error when the PIC register is clobered so it should error out when the frame pointer or stack pointer is clobered. An example for PPC: int f() { asm("addi r30, r30, 1":::"r30"); asm("addi r1, r1, 1":::"r1"); } I can confirm this on the mainline (20030805).