https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90978
--- Comment #10 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to David Binderman from comment #9) > (In reply to Martin Liška from comment #8) > > I'm running that once a week: > > https://users.suse.com/~mliska/lcov/ > > Great ! > > I'll have a go at duplicating your results, then have a go at extending > the test case coverage. > > A pretty obvious first question would be: How much better test coverage > would you get if you ran the test cases with -O3, something like this: > > [dcb30@localhost trunk]$ cd gcc/testsuite/ > [dcb30@localhost testsuite]$ for i in `find . -name \*.c -print | sort` > > do > > echo $i > > $TEST_COMPILER -c -O3 -Wall $i > > done Good question! > > I am assuming that there is no easy flag on the testsuite to compile > everything with -O3 instead of whatever flags each test case wants. For a torture test-cases it can help. Some other tests have hardcoded dg-compile options intentionally to scan a pattern.