public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "atgraham at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug regression/29248] New: Stack pointer is modified in functions that don't use the stack Date: Wed, 27 Sep 2006 03:19:00 -0000 [thread overview] Message-ID: <bug-29248-12114@http.gcc.gnu.org/bugzilla/> (raw) 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
next reply other threads:[~2006-09-27 3:19 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-09-27 3:19 atgraham at gmail dot com [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-29248-12114@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).