[Bug testsuite/20567] dg-options in gcc.c-torture

janis at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jan 12 00:14:00 GMT 2006



------- Comment #3 from janis at gcc dot gnu dot org  2006-01-11 22:21 -------
It's easy to replace gcc.c-torture/execute/execute.exp with
compile/compile.exp, use "run" for the default instead of
"assemble", and then add test directives to the .c files to
replace the functionaity in the .x files.  There are a couple
of things that lib/c-torture.exp does that are not supported
with this:

  if the test isn't executed on native hardware, skip
  execution of a test whose binary is identical to the
  binary built with the previous set of options

  skip execution of tests that use "long long" when it
  isn't supported on the target

There are a few odd things in gcc/c-torture/execute/*.c:

  920710-1.x skips a "long long" test based on a specific
  target, but there are lots of tests that use "long long"
  and aren't skipped

  941014-1.x tries to xfail the compile step, but in a way
  where the xfail info is evaluated after the compile has
  already happened; also, it checks for either -mthumb or
  -O0; does it really want the combination?

  981130-1.x xfails the test for -O0, -O1, -O2, or -Os when
  the comment implies that it should be xfailed for -O2 or
  -O3

  990413-2.x says the test is x86 specific; should it be
  limited to ilp32?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20567



More information about the Gcc-bugs mailing list