This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Libstdc++ testsuite -O0 and -O2 (was: Re: [PATCH] Re: 3 new fails...)
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- To: Paolo Carlini <pcarlini at unitus dot it>
- Cc: Benjamin Kosnik <bkoz at redhat dot com>, libstdc++ at gcc dot gnu dot org, gdr at codesourcery dot com
- Date: 01 Apr 2002 01:21:11 +0200
- Subject: Re: Libstdc++ testsuite -O0 and -O2 (was: Re: [PATCH] Re: 3 new fails...)
- Organization: CodeSourcery, LLC
- References: <Pine.SOL.3.91.1020330082830.26274D-100000@taarna.cygnus.com> <3CA5EF92.4020305@unitus.it>
Paolo Carlini <pcarlini@unitus.it> writes:
| Benjamin Kosnik wrote:
|
| >Running both -O0 and -O2 seems the best solution. How can that be done in
| >dejagnu? I think the java testsuite does this.
| >
| This happens for many set of test of c,c++,f77 and java. For sure is
| technically doable.
|
| We have to study a bit the directory gcc/gcc/testsuite/lib and take
| inspiration in order to modify dg.exp. g77-dg.exp, in particular, is
| relatively simple and shows how to iterate over various optmization levels:
Actually, we should -factorize- the way that happens instead of
duplicating functionality. I intended to do that a while ago, but I
won't mind if someone beats me at it. The iterating support routines
should be centralized somewhere under gcc/testsuite/lib, and front-end
should just "load" them.
If you have a preliminary patch, I may have a look at it before I
leave on Thursday.
-- Gaby