This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: g++.old-deja/g++.mike/p7325.C - suspected bogus test case
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Mike Stump <mrs at apple dot com>
- Cc: Zack Weinberg <zack at codesourcery dot com>, gcc at gcc dot gnu dot org
- Date: Wed, 30 Jun 2004 10:03:25 -0700
- Subject: Re: g++.old-deja/g++.mike/p7325.C - suspected bogus test case
- Organization: CodeSourcery, LLC
- References: <EA444DFC-C9D8-11D8-8AAD-003065BDF310@apple.com>
Mike Stump wrote:
On Saturday, June 26, 2004, at 12:37 PM, Mark Mitchell wrote:
I can certainly think of situations where the compiler could fail this
test with optimization enabled
This test cases doesn't use optimization, and test case that did, would
be a totally different test case. We aren't talking about a different
test case, we are talking about the exact one mentioned.
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.
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com