public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug regression/29248]  New: Stack pointer is modified in functions that don't use the stack
@ 2006-09-27  3:19 atgraham at gmail dot com
  2006-09-27  3:26 ` [Bug middle-end/29248] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: atgraham at gmail dot com @ 2006-09-27  3:19 UTC (permalink / raw)
  To: gcc-bugs

Consider the following two functions:

int foo() { return 1; }
void bar() {}

Disassembly when compiled with gcc 2.95.2: (-Os)
  00000000 <foo(void)>:
     0:   38 60 00 01     li      r3,1
     4:   4e 80 00 20     blr
  00000008 <bar(void)>:
     8:   4e 80 00 20     blr

Disassembly when compiled with gcc 4.1.1: (-Os)
  00000000 <foo()>:
     0:   94 21 ff f0     stwu    r1,-16(r1)
     4:   38 60 00 01     li      r3,1
     8:   38 21 00 10     addi    r1,r1,16
     c:   4e 80 00 20     blr
  00000010 <bar()>:
    10:   94 21 ff f0     stwu    r1,-16(r1)
    14:   38 21 00 10     addi    r1,r1,16
    18:   4e 80 00 20     blr


-- 
           Summary: Stack pointer is modified in functions that don't use
                    the stack
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: regression
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: atgraham at gmail dot com
  GCC host triplet: i686
GCC target triplet: powerpc-linux


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


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

end of thread, other threads:[~2007-10-31 19:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-27  3:19 [Bug regression/29248] New: Stack pointer is modified in functions that don't use the stack atgraham at gmail dot com
2006-09-27  3:26 ` [Bug middle-end/29248] " pinskia at gcc dot gnu dot org
2006-09-27  3:59 ` pinskia at gcc dot gnu dot org
2006-09-27  4:28 ` [Bug regression/29248] " atgraham at gmail dot com
2006-09-27  4:42 ` pinskia at gcc dot gnu dot org
2006-09-27  5:14 ` [Bug target/29248] " pinskia at gcc dot gnu dot org
2006-12-18 18:37 ` nathan at gcc dot gnu dot org
2007-10-31 19:49 ` pthaugen 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).