public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/36409]  New: Additional instructions in prologue and epilogue.
@ 2008-06-01 10:47 ramana at icerasemi dot com
  2009-02-04 23:39 ` [Bug target/36409] " ramana dot r at gmail dot com
  2009-04-21 14:42 ` ramana at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: ramana at icerasemi dot com @ 2008-06-01 10:47 UTC (permalink / raw)
  To: gcc-bugs

Stack space creation instructions in prologue and epilogue don't get deleted. 

foo:
        sub     sp, sp, #8 --> Unnecessary 
        mov     r3, #0
        add     sp, sp, #8 --> Unnecessary
        str     r3, [r0]


struct Foo {
  int *p;
  int *q;
};

void __attribute__((noinline))
     foo(struct Foo f)
{
  *f.p = 0;
}


This appears to be due to get_frame_size returning the size of the incoming
parameters being 8 bytes in the backend .


-- 
           Summary: Additional instructions in prologue and epilogue.
           Product: gcc
           Version: 4.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ramana at icerasemi dot com
  GCC host triplet: i686-linux
GCC target triplet: arm-none-eabi


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


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

end of thread, other threads:[~2021-12-20 11:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-36409-4@http.gcc.gnu.org/bugzilla/>
2021-12-20 11:18 ` [Bug target/36409] Additional instructions in prologue and epilogue rearnsha at gcc dot gnu.org
2008-06-01 10:47 [Bug rtl-optimization/36409] New: " ramana at icerasemi dot com
2009-02-04 23:39 ` [Bug target/36409] " ramana dot r at gmail dot com
2009-04-21 14:42 ` ramana 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).