This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/11807] GCC should error out when clobbering the stack pointer and frame pointer
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Aug 2005 11:25:41 -0000
- Subject: [Bug inline-asm/11807] GCC should error out when clobbering the stack pointer and frame pointer
- References: <20030805124527.11807.aw11@os.inf.tu-dresden.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2005-08-10 11:25 -------
Small testcase from PR 23313, showing ICE on invalid:
-----------------------------------------
int main(){
int i;
asm (
"xorl %%ebp, %%ebp\n\t"
"movl %0, %%ebp\n\t"
:: "m" (i)
: "%ebp"
);
return 0;
}
-----------------------------------------
This makes this PR a bug, not simply an enhancement.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|enhancement |normal
Keywords| |ice-on-invalid-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11807