This is the mail archive of the
mailing list for the GCC project.
Re: One more test-suite rearrangement
- To: gcc-patches at gcc dot gnu dot org, zack at wolery dot cumb dot org
- Subject: Re: One more test-suite rearrangement
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Thu, 29 Jun 2000 16:13:33 -0400 (EDT)
> From: Zack Weinberg <firstname.lastname@example.org>
> This patch moves gcc.c-torture/noncompile over to the dg directory.
> Tests for error reporting are a much better match to the dg framework;
> we can eliminate the fragile list regexps in noncompile.exp entirely.
> Also, since dg doesn't iterate over optimization options (which is
> useless when you're testing error reports) it runs through this set of
> tests about five times faster.
Moving preprocessor tests is fine, but IIRC some of the noncompile
tests caused cc1 crashes on Irix6 but only on certain optimization
and/or debug levels. So moving tests to dg loses this sanity check.
I've seen many tests which were introduced because a bug triggered at
a particular opt level, but months or years later trigger again at
some other level due to some unrelated breakage. Less opt cycle
checking reduces the quality of the compiler.
Except for cpp testing, IMHO, the fact that dg does not cycle opt
levels is a very bad thing and we should not put more cc1 tests there
until this is fixed. Even if the checks just look for error messages,
the underlying code always has the potential to crash cc1 with some
Kaveh R. Ghazi Engagement Manager / Project Services
email@example.com Qwest Internet Solutions