This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/52813] New: %rsp in clobber list is silently ignored
- From: "jhaberman at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 31 Mar 2012 22:42:02 +0000
- Subject: [Bug inline-asm/52813] New: %rsp in clobber list is silently ignored
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52813
Bug #: 52813
Summary: %rsp in clobber list is silently ignored
Classification: Unclassified
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: inline-asm
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: jhaberman@gmail.com
The following test program crashes even though I correctly listed %rsp as
clobbered:
--
int main() {
asm volatile ("movq $0, %%rsp" : : : "%rsp");
return 0;
}
--
I would prefer gcc to error out in this case instead of silently ignoring my
instruction.