This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/38925] gcc ignores use of %rbp via assembly, generates bad code
- From: "hpreg at vmware dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jan 2009 10:19:59 -0000
- Subject: [Bug inline-asm/38925] gcc ignores use of %rbp via assembly, generates bad code
- References: <bug-38925-1331@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from hpreg at vmware dot com 2009-01-21 10:19 -------
Andrew,
With respect to your comment #2: initializing all the variables to 0 does not
solve the problem, which is that gcc does not understand that %rbp is
clobbered.
With respect to your comment #3: as explained in the bug description, it is
_not_ possible to mark r8 through r15 as clobbered in an inline-asm statement.
Hence the "mess".
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38925