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

           Summary: GCC option handling change breaks dejagnu
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: hjl.to...@gmail.com
                CC: js...@gcc.gnu.org


GCC 4.6 failed binutils tests:

g++: warning: switch '-fvtable-gc' is no longer supported
g++: warning: switch '-fvtable-gc' is no longer supported

ERROR: /export/gnu/import/git/binutils/ld/testsuite/ld-selective/3.cc:
compilation failed
UNRESOLVED: selective4

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

Before GCC 4.6, we have

[...@gnu-6 tmp]$ g++ -fvtable-gc -S x.i      
cc1plus: warning: switch \u2018-fvtable-gc\u2019 is no longer supported

GCC 4.6 has

[...@gnu-6 tmp]$ /usr/gcc-4.6/bin/g++ -fvtable-gc -S x.i    
g++: warning: switch \u2018-fvtable-gc\u2019 is no longer supported

This change breaks prune_warnings.

Reply via email to