This is the mail archive of the
mailing list for the GCC project.
Re: g++.old-deja/g++.mike/p7325.C - suspected bogus test case
- From: Mike Stump <mrs at apple dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: Zack Weinberg <zack at codesourcery dot com>, gcc at gcc dot gnu dot org
- Date: Sat, 10 Jul 2004 14:31:45 -0700
- Subject: Re: g++.old-deja/g++.mike/p7325.C - suspected bogus test case
On Wednesday, June 30, 2004, at 10:03 AM, Mark Mitchell wrote:
Yes. And without optimization enabled, I don't see any reason that
the compiler should be expected to reuse the stack space; that's an
optimization. The compiler might, for example, be able to generate
code more quickly by using a new stack slot for every variable. Or,
using different stack slots, might result in faster code on some
machines, which is nice even at -O0.
If people find no other way to make it work other than -Os, that's fine.