This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/25505] [4.0/4.1/4.2 Regression] gcc uses way too much stack space for this code
- From: "sabre at nondot dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Dec 2005 21:47:54 -0000
- Subject: [Bug rtl-optimization/25505] [4.0/4.1/4.2 Regression] gcc uses way too much stack space for this code
- References: <bug-25505-6809@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from sabre at nondot dot org 2005-12-20 21:47 -------
Re: comment #5:
That is a similar testcase, but not an identical one. A better one would be
something like:
void foo() {
if (...) {
std::pair<int, int> = ..
...
}
if (...) {
std::pair<int, int> = ..
...
}
if (...) {
std::pair<int, int> = ..
...
}
}
Further, a huge amount of the wastage appears to be coming from C++
temporaries, not explicit variable definitions.
-Chris
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25505