This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/20567] New: dg-options in gcc.c-torture
- From: "jsm28 at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Mar 2005 13:26:28 -0000
- Subject: [Bug testsuite/20567] New: dg-options in gcc.c-torture
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Some tests in gcc.c-torture use dg-options inappropriately.
gcc.c-torture/execute ignores dg-options settings, but pr7284-1.c and
wchar_t-1.c use them. I think the proper fix would be to make that directory
honour dg-options. If it is made to use the dg harness it might also be
possible to get rid of most of the .x files in c-torture by moving them into
test annotations within the testcase files.
In gcc.c-torture/compile, tests 20031125-1.c, 20031125-2.c, 20031203-1.c and
acc1.c specify -O2. As the point of the torture tests is to iterate over
different optimization options, tests should not specify any options like -O2
which are included in that iteration; only other special options (such as
-ffast-math for acc1.c).
compile/981006-1.c looks like a diagnostic test and as such (a) should not use
-w, (b) should better be in gcc.dg/torture/.
--
Summary: dg-options in gcc.c-torture
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: testsuite
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jsm28 at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,janis187 at us dot ibm
dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20567