public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug inline-asm/52813] New: %rsp in clobber list is silently ignored
@ 2012-03-31 22:53 jhaberman at gmail dot com
  2012-04-01  9:21 ` [Bug inline-asm/52813] " ubizjak at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: jhaberman at gmail dot com @ 2012-03-31 22:53 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-05-28 23:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-31 22:53 [Bug inline-asm/52813] New: %rsp in clobber list is silently ignored jhaberman at gmail dot com
2012-04-01  9:21 ` [Bug inline-asm/52813] " ubizjak at gmail dot com
2012-04-01 15:54 ` jhaberman at gmail dot com
2012-04-01 18:58 ` ubizjak at gmail dot com
2012-04-01 19:23 ` jhaberman at gmail dot com
2012-05-28 23:10 ` ralph-gccbugzilla at inputplus dot co.uk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).