This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/49503] Incorrect stack alignment, produced by inline assembler in tests gcc.target/i386/cleanup-1.c and gcc.target/i386/cleanup-2.c
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 23 Jun 2011 20:16:22 +0000
- Subject: [Bug testsuite/49503] Incorrect stack alignment, produced by inline assembler in tests gcc.target/i386/cleanup-1.c and gcc.target/i386/cleanup-2.c
- Auto-submitted: auto-generated
- References: <bug-49503-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49503
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
CC| |jakub at redhat dot com
--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> 2011-06-23 20:15:44 UTC ---
(In reply to comment #0)
> The tests contain asm-listing like this:
> __asm (
> testl %0, %0
> jnz 1f
> .subsection 1
> .type _L_mutex_lock_%=, @function
> _L_mutex_lock_%=:
> 1: leaq %1, %%rdi
> 2: subq $128, %%rsp
> 3: call bar
> 4: addq $128, %%rsp
> 5: jmp 21f
> ...
>
The bug is in testcase. When _L_mutex_lock_ calls bar, it didn't
align stack to 16byte. But I don't think it matters here. Jakub,
do we need to fix it?