public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/36409] Additional instructions in prologue and epilogue.
       [not found] <bug-36409-4@http.gcc.gnu.org/bugzilla/>
@ 2021-12-20 11:18 ` rearnsha at gcc dot gnu.org
  0 siblings, 0 replies; 3+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2021-12-20 11:18 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2009-04-21 14:42:20         |2021-12-20

--- Comment #3 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
Still a problem even today.
The 'optimized' gimple code is:

__attribute__((noinline))
void foo (struct Foo f)
{
  int * _1;

  <bb 2> [local count: 1073741824]:
  _1 = f.p;
  *_1 = 0;
  return;

}

which then gets expanded to copy the incoming argument to the stack

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

* [Bug target/36409] Additional instructions in prologue and epilogue.
  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
  1 sibling, 0 replies; 3+ messages in thread
From: ramana at gcc dot gnu dot org @ 2009-04-21 14:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from ramana at gcc dot gnu dot org  2009-04-21 14:42 -------
confirmed.


-- 

ramana at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-04-21 14:42:20
               date|                            |


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


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

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



------- Comment #1 from ramana dot r at gmail dot com  2009-02-04 23:38 -------
4.4.0 with revision id 143499 generates the following code with -O3 , -O2 and
-Os . The same code is generated for 4.3.3 as well 

        sub     sp, sp, #8
        mov     r3, sp
        mov     r2, #0
        stmia   r3, {r0, r1}
        str     r2, [r0, #0]
        add     sp, sp, #8
        bx      lr




Clearly things have gotten worse with an extra stmia being generated in this
case where the argument registers are being saved on the stack with the stmia
instruction. 


-- 

ramana dot r at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rearnsha at arm dot com


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