public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/26775]  New: a stack pointer is not recovered correctly when using alloca.
@ 2006-03-21  7:45 inaoka dot kazuhiro at renesas dot com
  2006-03-21  7:51 ` [Bug c/26775] " inaoka dot kazuhiro at renesas dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: inaoka dot kazuhiro at renesas dot com @ 2006-03-21  7:45 UTC (permalink / raw)
  To: gcc-bugs

When an alloca() is used with large auto variable area, a stack pointer is not
recovered correctly.


-- 
           Summary: a stack pointer is not recovered correctly when using
                    alloca.
           Product: gcc
           Version: 3.4.6
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: inaoka dot kazuhiro at renesas dot com
GCC target triplet: m32r


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


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

* [Bug c/26775] a stack pointer is not recovered correctly when using alloca.
  2006-03-21  7:45 [Bug c/26775] New: a stack pointer is not recovered correctly when using alloca inaoka dot kazuhiro at renesas dot com
@ 2006-03-21  7:51 ` inaoka dot kazuhiro at renesas dot com
  2006-03-21  7:52 ` inaoka dot kazuhiro at renesas dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: inaoka dot kazuhiro at renesas dot com @ 2006-03-21  7:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from inaoka dot kazuhiro at renesas dot com  2006-03-21 07:51 -------
Created an attachment (id=11078)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11078&action=view)
testcase

m32r-linux-gnu-gcc -S alloca.c

Asm output has the following code.

        ; EPILOGUE
        ld24 r4,#32768
        add sp,r4       <== NG (a stack pointer must be recovered with fp.)
        pop fp
        jmp lr


-- 


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


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

* [Bug c/26775] a stack pointer is not recovered correctly when using alloca.
  2006-03-21  7:45 [Bug c/26775] New: a stack pointer is not recovered correctly when using alloca inaoka dot kazuhiro at renesas dot com
  2006-03-21  7:51 ` [Bug c/26775] " inaoka dot kazuhiro at renesas dot com
@ 2006-03-21  7:52 ` inaoka dot kazuhiro at renesas dot com
  2006-03-21  9:28 ` [Bug target/26775] " rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: inaoka dot kazuhiro at renesas dot com @ 2006-03-21  7:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from inaoka dot kazuhiro at renesas dot com  2006-03-21 07:52 -------
Created an attachment (id=11079)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11079&action=view)
ng output

NG case.


-- 


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


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

* [Bug target/26775] a stack pointer is not recovered correctly when using alloca.
  2006-03-21  7:45 [Bug c/26775] New: a stack pointer is not recovered correctly when using alloca inaoka dot kazuhiro at renesas dot com
  2006-03-21  7:51 ` [Bug c/26775] " inaoka dot kazuhiro at renesas dot com
  2006-03-21  7:52 ` inaoka dot kazuhiro at renesas dot com
@ 2006-03-21  9:28 ` rguenth at gcc dot gnu dot org
  2006-03-22  9:49 ` inaoka dot kazuhiro at renesas dot com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-03-21  9:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from rguenth at gcc dot gnu dot org  2006-03-21 09:28 -------
The 3.4 branch is closed, can you check 4.0.3 or 4.1.0 please?


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


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

* [Bug target/26775] a stack pointer is not recovered correctly when using alloca.
  2006-03-21  7:45 [Bug c/26775] New: a stack pointer is not recovered correctly when using alloca inaoka dot kazuhiro at renesas dot com
                   ` (2 preceding siblings ...)
  2006-03-21  9:28 ` [Bug target/26775] " rguenth at gcc dot gnu dot org
@ 2006-03-22  9:49 ` inaoka dot kazuhiro at renesas dot com
  2006-03-22 23:04 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: inaoka dot kazuhiro at renesas dot com @ 2006-03-22  9:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from inaoka dot kazuhiro at renesas dot com  2006-03-22 09:49 -------
4.0.3 and 4.1.0 have a same problem.


-- 


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


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

* [Bug target/26775] a stack pointer is not recovered correctly when using alloca.
  2006-03-21  7:45 [Bug c/26775] New: a stack pointer is not recovered correctly when using alloca inaoka dot kazuhiro at renesas dot com
                   ` (3 preceding siblings ...)
  2006-03-22  9:49 ` inaoka dot kazuhiro at renesas dot com
@ 2006-03-22 23:04 ` pinskia at gcc dot gnu dot org
  2006-04-04  9:18 ` nickc at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-22 23:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-03-22 23:04 -------
Changing back to new then.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-03-22 23:04:41
               date|                            |


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


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

* [Bug target/26775] a stack pointer is not recovered correctly when using alloca.
  2006-03-21  7:45 [Bug c/26775] New: a stack pointer is not recovered correctly when using alloca inaoka dot kazuhiro at renesas dot com
                   ` (4 preceding siblings ...)
  2006-03-22 23:04 ` pinskia at gcc dot gnu dot org
@ 2006-04-04  9:18 ` nickc at gcc dot gnu dot org
  2006-04-04  9:20 ` nickc at gcc dot gnu dot org
  2006-04-30  4:12 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: nickc at gcc dot gnu dot org @ 2006-04-04  9:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from nickc at gcc dot gnu dot org  2006-04-04 09:18 -------
Subject: Bug 26775

Author: nickc
Date: Tue Apr  4 09:18:38 2006
New Revision: 112659

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112659
Log:
PR target/26775
PR target/26776
* config/m32r/m32r.c (m32r_output_function_epilogue): Case for a large 
  stack frame at epilogue. Use fp to recover a stack pointer for alloca 
  function at epilogue.                  

Modified:
    branches/gcc-4_0-branch/gcc/ChangeLog
    branches/gcc-4_0-branch/gcc/config/m32r/initfini.c
    branches/gcc-4_0-branch/gcc/config/m32r/m32r.c


-- 


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


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

* [Bug target/26775] a stack pointer is not recovered correctly when using alloca.
  2006-03-21  7:45 [Bug c/26775] New: a stack pointer is not recovered correctly when using alloca inaoka dot kazuhiro at renesas dot com
                   ` (5 preceding siblings ...)
  2006-04-04  9:18 ` nickc at gcc dot gnu dot org
@ 2006-04-04  9:20 ` nickc at gcc dot gnu dot org
  2006-04-30  4:12 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: nickc at gcc dot gnu dot org @ 2006-04-04  9:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from nickc at gcc dot gnu dot org  2006-04-04 09:20 -------
Subject: Bug 26775

Author: nickc
Date: Tue Apr  4 09:20:35 2006
New Revision: 112660

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112660
Log:
PR target/26775
PR target/26776
* config/m32r/m32r.c (m32r_output_function_epilogue): Case for a large stack 
  frame at epilogue. Use fp to recover a stack pointer for alloca function 
  at epilogue.                  

Modified:
    branches/gcc-3_4-branch/gcc/ChangeLog
    branches/gcc-3_4-branch/gcc/config/m32r/m32r.c


-- 


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


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

* [Bug target/26775] a stack pointer is not recovered correctly when using alloca.
  2006-03-21  7:45 [Bug c/26775] New: a stack pointer is not recovered correctly when using alloca inaoka dot kazuhiro at renesas dot com
                   ` (6 preceding siblings ...)
  2006-04-04  9:20 ` nickc at gcc dot gnu dot org
@ 2006-04-30  4:12 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-30  4:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pinskia at gcc dot gnu dot org  2006-04-30 04:12 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2006-04-30  4:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-21  7:45 [Bug c/26775] New: a stack pointer is not recovered correctly when using alloca inaoka dot kazuhiro at renesas dot com
2006-03-21  7:51 ` [Bug c/26775] " inaoka dot kazuhiro at renesas dot com
2006-03-21  7:52 ` inaoka dot kazuhiro at renesas dot com
2006-03-21  9:28 ` [Bug target/26775] " rguenth at gcc dot gnu dot org
2006-03-22  9:49 ` inaoka dot kazuhiro at renesas dot com
2006-03-22 23:04 ` pinskia at gcc dot gnu dot org
2006-04-04  9:18 ` nickc at gcc dot gnu dot org
2006-04-04  9:20 ` nickc at gcc dot gnu dot org
2006-04-30  4:12 ` pinskia 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).