This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/26034] New: [4.0/4.1/4.2 Regression] gcc uses way too much stack space for this code
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jan 2006 14:44:34 -0000
- Subject: [Bug middle-end/26034] New: [4.0/4.1/4.2 Regression] gcc uses way too much stack space for this code
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Take the following code:
typedef struct a
{
int f[1000];
void g();
a operator=(const a&);
} a;
a f(void);
int g(void)
{
a t; t = f();
}
in 4.0, we use 20008 bytes for the stack.
In 4.2 and 4.1, we use 16024 bytes for the stack.
In 3.4 and 3.3, we use 12024 bytes for the stack.
This is semi reduced from PR 25505 (there is another case in there already).
--
Summary: [4.0/4.1/4.2 Regression] gcc uses way too much stack
space for this code
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
OtherBugsDependingO 25505
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26034