This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Libstdc++ testsuite -O0 and -O2 (was: Re: [PATCH] Re: 3 new fails...)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]