This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]