One more test-suite rearrangement

Jeffrey A Law law@cygnus.com
Thu Jun 29 14:10:00 GMT 2000


  In message < 20000629132424.Y279@wolery.cumb.org >you write:
  > On Thu, Jun 29, 2000 at 04:13:33PM -0400, Kaveh R. Ghazi wrote:
  > >  > From: Zack Weinberg <zack@wolery.cumb.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.
  > >  > zw
  > > 
  > > 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.
  > 
  > But even the possibility of that happening is itself a bug in the
  > compiler.  IMHO, rest_of_compilation should not bother trying to
  > optimize or emit assembly language if we've seen a hard error.
  > 
  > If there were tests in noncompile that provoked only warnings and no
  > errors, I would agree with you, but there aren't any.
Consider stuff like fold-const.c though which optimize based on tree
nodes or other stuff that works at the tree level.

I would prefer to see noncompile stay as-is.

jeff




More information about the Gcc-patches mailing list