[EMAIL PROTECTED] testsuite]$ grep dg-options gcc.c-torture/compile/*.c | grep O gcc.c-torture/compile/20031125-1.c:/* { dg-options "-O2" } */ gcc.c-torture/compile/20031125-2.c:/* { dg-options "-O2" } */ gcc.c-torture/compile/20031203-1.c:/* { dg-options "-O2" } */ gcc.c-torture/compile/acc1.c:/* { dg-options "-O2 -ffast-math" } */ gcc.c-torture/compile/builtin_constant_p.c:/* { dg-options "-O2" } */ gcc.c-torture/compile/pr21562.c:/* { dg-options "-O3 -fno-inline" } */ gcc.c-torture/compile/pr25483.c:/* { dg-options "-O -fmove-loop-invariants" } */ gcc.c-torture/compile/pr32349.c:/* { dg-options "-O2 -fmodulo-sched" } */ gcc.c-torture/compile/pr32355.c:/* { dg-options "-O3" } */ gcc.c-torture/compile/pr34448.c:/* { dg-options "-O" } */ gcc.c-torture/compile/pr34648.c:/* { dg-options "-O2 -fexceptions" } */
Since dg-options overrides different optimization levels set by c-torture, those different optimization levels aren't tested on those files. -- Summary: Ineffective dg-options in gcc.c-torture/compile Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: hjl dot tools at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35127