public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/17230] New: unwanted stack allocation
@ 2004-08-29 16:31 pluto at pld-linux dot org
2004-08-29 16:42 ` [Bug c/17230] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: pluto at pld-linux dot org @ 2004-08-29 16:31 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 970 bytes --]
#define PAGE_SIZE 32768
#define PAGE_SHIFT \
((PAGE_SIZE > 65536) ? (-1) \
: ((const unsigned long[]){12,13,14,-1,15,-1,-1,-1,16}[PAGE_SIZE>>13]))
int test() { return PAGE_SHIFT; }
# gcc test.c -c -fomit-frame-pointer -O2 -S
# (gcc version 3.4.2 20040820 (prerelease) (PLD Linux))
test:
subl $60, %esp <-- what for?
movl $15, %eax
addl $60, %esp
ret
--
Summary: unwanted stack allocation
Product: gcc
Version: 3.4.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pluto at pld-linux dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: pentium3-pld-linux
GCC host triplet: pentium3-pld-linux
GCC target triplet: pentium3-pld-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17230
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c/17230] unwanted stack allocation
2004-08-29 16:31 [Bug c/17230] New: unwanted stack allocation pluto at pld-linux dot org
@ 2004-08-29 16:42 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-29 16:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-29 16:42 -------
Fixed for 3.5.0, the problem was that we don't do optimization before expanding so we kept the array
(and the stack space associated with it) there.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17230
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-08-29 16:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-29 16:31 [Bug c/17230] New: unwanted stack allocation pluto at pld-linux dot org
2004-08-29 16:42 ` [Bug c/17230] " 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).