This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11807] GCC should error out when clobering the stack pointer or frame pointer
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Aug 2003 03:40:07 -0000
- Subject: [Bug c++/11807] GCC should error out when clobering the stack pointer or frame pointer
- References: <20030805124527.11807.aw11@os.inf.tu-dresden.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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).