public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/37843]  New: [4.4 Regression] unaligned stack in main due to tail call optimization
@ 2008-10-16  0:49 hjl dot tools at gmail dot com
  2008-10-16  1:08 ` [Bug target/37843] " hjl dot tools at gmail dot com
                   ` (27 more replies)
  0 siblings, 28 replies; 29+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-10-16  0:49 UTC (permalink / raw)
  To: gcc-bugs

[hjl@gnu-6 880]$ cat x.c
extern int foo ();

int main()
{
    return foo();
}
[hjl@gnu-6 880]$ rm x.s
[hjl@gnu-6 880]$ cat x.c
extern int foo ();

int main()
{
    return foo();
}
[hjl@gnu-6 880]$ make
/export/gnu/import/svn/gcc-test/bld/gcc/xgcc
-B/export/gnu/import/svn/gcc-test/bld/gcc/ -O2 -m32 -S -o x.s x.c
[hjl@gnu-6 880]$ cat x.s
        .file   "x.c"
        .text
        .p2align 4,,15
.globl main
        .type   main, @function
main:
        pushl   %ebp
        movl    %esp, %ebp
        subl    $8, %esp
        leave
        jmp     foo

The stack isn't aligned to 16byte.
        .size   main, .-main


-- 
           Summary: [4.4 Regression] unaligned stack in main due to tail
                    call optimization
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl dot tools at gmail dot com
GCC target triplet: i686-*


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37843


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

end of thread, other threads:[~2009-01-15 16:29 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-16  0:49 [Bug target/37843] New: [4.4 Regression] unaligned stack in main due to tail call optimization hjl dot tools at gmail dot com
2008-10-16  1:08 ` [Bug target/37843] " hjl dot tools at gmail dot com
2008-10-16 22:16 ` hjl dot tools at gmail dot com
2008-10-30 22:56 ` hjl dot tools at gmail dot com
2008-11-01  0:27 ` [Bug middle-end/37843] " hjl dot tools at gmail dot com
2008-11-01 11:37 ` rguenth at gcc dot gnu dot org
2008-11-05 14:33 ` hjl dot tools at gmail dot com
2008-11-11  6:50 ` hjl dot tools at gmail dot com
2008-11-18 21:35 ` steven at gcc dot gnu dot org
2008-11-25 15:36 ` hjl at gcc dot gnu dot org
2008-11-26  4:26 ` howarth at nitro dot med dot uc dot edu
2008-11-26  4:28 ` howarth at nitro dot med dot uc dot edu
2008-11-26  4:29 ` howarth at nitro dot med dot uc dot edu
2008-11-26  5:40 ` hjl dot tools at gmail dot com
2008-11-26 12:24 ` howarth at nitro dot med dot uc dot edu
2008-11-26 14:55 ` hjl at gcc dot gnu dot org
2008-11-28 16:33 ` hjl at gcc dot gnu dot org
2008-11-29 16:35 ` hjl at gcc dot gnu dot org
2008-11-29 21:05 ` jakub at gcc dot gnu dot org
2008-11-29 21:12 ` hjl dot tools at gmail dot com
2008-11-30 11:21 ` rguenther at suse dot de
2008-12-09 19:36 ` mmitchel at gcc dot gnu dot org
2008-12-09 22:36 ` hjl dot tools at gmail dot com
2008-12-09 22:37 ` hjl dot tools at gmail dot com
2009-01-15 15:08 ` jakub at gcc dot gnu dot org
2009-01-15 15:18 ` hjl dot tools at gmail dot com
2009-01-15 15:23 ` dnovillo at gcc dot gnu dot org
2009-01-15 15:45 ` hjl at gcc dot gnu dot org
2009-01-15 16:29 ` jakub at gcc dot gnu dot org

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).