On 4.0.0 RC1 and RC2, when configuring without C++ some libmudflap tests that look like they're C++ are run and fail.
=== libmudflap tests === Running target unix FAIL: libmudflap.c++/fail24-frag.cxx (test for excess errors) WARNING: libmudflap.c++/fail24-frag.cxx compilation failed to produce executable FAIL: libmudflap.c++/pass27-frag.cxx (test for excess errors) WARNING: libmudflap.c++/pass27-frag.cxx compilation failed to produce executable FAIL: libmudflap.c++/pass28-frag.cxx (test for excess errors) WARNING: libmudflap.c++/pass28-frag.cxx compilation failed to produce executable FAIL: libmudflap.c++/pass31-frag.cxx (test for excess errors) WARNING: libmudflap.c++/pass31-frag.cxx compilation failed to produce executable FAIL: libmudflap.c++/pass41-frag.cxx (test for excess errors) WARNING: libmudflap.c++/pass41-frag.cxx compilation failed to produce executable FAIL: libmudflap.c++/pass55-frag.cxx (test for excess errors) WARNING: libmudflap.c++/pass55-frag.cxx compilation failed to produce executable FAIL: libmudflap.c++/fail24-frag.cxx (-static) (test for excess errors) WARNING: libmudflap.c++/fail24-frag.cxx (-static) compilation failed to produce executable FAIL: libmudflap.c++/pass27-frag.cxx (-static) (test for excess errors) WARNING: libmudflap.c++/pass27-frag.cxx (-static) compilation failed to produce executable FAIL: libmudflap.c++/pass28-frag.cxx (-static) (test for excess errors) WARNING: libmudflap.c++/pass28-frag.cxx (-static) compilation failed to produce executable FAIL: libmudflap.c++/pass31-frag.cxx (-static) (test for excess errors) WARNING: libmudflap.c++/pass31-frag.cxx (-static) compilation failed to produce executable FAIL: libmudflap.c++/pass41-frag.cxx (-static) (test for excess errors) WARNING: libmudflap.c++/pass41-frag.cxx (-static) compilation failed to produce executable FAIL: libmudflap.c++/pass55-frag.cxx (-static) (test for excess errors) WARNING: libmudflap.c++/pass55-frag.cxx (-static) compilation failed to produce executable FAIL: libmudflap.c++/fail24-frag.cxx (-O2) (test for excess errors) WARNING: libmudflap.c++/fail24-frag.cxx (-O2) compilation failed to produce executable FAIL: libmudflap.c++/pass27-frag.cxx (-O2) (test for excess errors) WARNING: libmudflap.c++/pass27-frag.cxx (-O2) compilation failed to produce executable FAIL: libmudflap.c++/pass28-frag.cxx (-O2) (test for excess errors) WARNING: libmudflap.c++/pass28-frag.cxx (-O2) compilation failed to produce executable FAIL: libmudflap.c++/pass31-frag.cxx (-O2) (test for excess errors) WARNING: libmudflap.c++/pass31-frag.cxx (-O2) compilation failed to produce executable FAIL: libmudflap.c++/pass41-frag.cxx (-O2) (test for excess errors) WARNING: libmudflap.c++/pass41-frag.cxx (-O2) compilation failed to produce executable FAIL: libmudflap.c++/pass55-frag.cxx (-O2) (test for excess errors) WARNING: libmudflap.c++/pass55-frag.cxx (-O2) compilation failed to produce executable FAIL: libmudflap.c++/fail24-frag.cxx (-O3) (test for excess errors) WARNING: libmudflap.c++/fail24-frag.cxx (-O3) compilation failed to produce executable FAIL: libmudflap.c++/pass27-frag.cxx (-O3) (test for excess errors) WARNING: libmudflap.c++/pass27-frag.cxx (-O3) compilation failed to produce executable FAIL: libmudflap.c++/pass28-frag.cxx (-O3) (test for excess errors) WARNING: libmudflap.c++/pass28-frag.cxx (-O3) compilation failed to produce executable FAIL: libmudflap.c++/pass31-frag.cxx (-O3) (test for excess errors) WARNING: libmudflap.c++/pass31-frag.cxx (-O3) compilation failed to produce executable FAIL: libmudflap.c++/pass41-frag.cxx (-O3) (test for excess errors) WARNING: libmudflap.c++/pass41-frag.cxx (-O3) compilation failed to produce executable FAIL: libmudflap.c++/pass55-frag.cxx (-O3) (test for excess errors) WARNING: libmudflap.c++/pass55-frag.cxx (-O3) compilation failed to produce executable FAIL: ctors-1 compilation FAIL: ctors-2 compilation FAIL: ctors-12 linkage FAIL: ctors-21 linkage WARNING: program timed out. FAIL: ctors-12 execution WARNING: program timed out. FAIL: ctors-21 execution FAIL: ctors-1 compilation -static FAIL: ctors-2 compilation -static FAIL: ctors-12 linkage -static FAIL: ctors-21 linkage -static WARNING: program timed out. FAIL: ctors-12 execution -static WARNING: program timed out. FAIL: ctors-21 execution -static FAIL: ctors-1 compilation -O2 FAIL: ctors-2 compilation -O2 FAIL: ctors-12 linkage -O2 FAIL: ctors-21 linkage -O2 WARNING: program timed out. FAIL: ctors-12 execution -O2 WARNING: program timed out. FAIL: ctors-21 execution -O2 FAIL: ctors-1 compilation -O3 FAIL: ctors-2 compilation -O3 FAIL: ctors-12 linkage -O3 FAIL: ctors-21 linkage -O3 WARNING: program timed out. FAIL: ctors-12 execution -O3 WARNING: program timed out. FAIL: ctors-21 execution -O3 === libmudflap Summary === # of expected passes 1212 # of unexpected failures 48 Compiler version: 4.0.0 20050418 (prerelease) Platform: x86_64-unknown-linux-gnu configure flags: --prefix=/home/guerby/tmp/install7/ --enable-__cxa_atexit --disable-nls --enable-threads=posix --enable-checking --enable-languages=c,ada -- Summary: libmudflap C++ tests run even when C++ not configured Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: testsuite AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: laurent at guerby dot net CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21094