This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/17230] New: unwanted stack allocation
- From: "pluto at pld-linux dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Aug 2004 16:31:53 -0000
- Subject: [Bug c/17230] New: unwanted stack allocation
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
#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