http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46802
--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2010-12-04 18:44:51 UTC --- On Sat, 4 Dec 2010, hjl.tools at gmail dot com wrote: > g++: warning: switch '-fvtable-gc' is no longer supported > g++: warning: switch '-fvtable-gc' is no longer supported This is unrelated to the DejaGnu code you quote. > prune_warnings in dejagnu has > > regsub -all "(^|\n)(cc1: warning: -g is only supported when using GAS on > this processor\[^\n\]*\ncc1: warning:\[^\n\]*\n?)+" $text "\\1" text > regsub -all "(^|\n)(cc1plus: warning: -g is only supported when using GAS > on this processor\[^\n\]*\ncc1plus: warning:\[^\n\]*\n?)+" $text "\\1" text None of this DejaGnu code appears to do anything with -fvtable-gc diagnostics, unless there was a previous warning about -g that you didn't quote. The ld testsuite tries to skip these tests case on the compiler version number - is that broken? In any case, it's clearly better for warnings to start "g++:" instead of "cc1plus:". The cc1plus binary is an internal implementation detail; diagnostics should refer to the user-visible binary, which is g++ here.