https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84847
--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to rguent...@suse.de from comment #6) > > make check-target-libstdc++-v3 RUNTESTFLAGS="prettyprinters.exp" I tried: diff --git a/libstdc++-v3/testsuite/libstdc++-prettyprinters/prettyprinters.exp b/libstdc++-v3/testsuite/libstdc++-prettyprinters/prettyprinters.exp index c51b1ffb21c..fab6ef11947 100644 --- a/libstdc++-v3/testsuite/libstdc++-prettyprinters/prettyprinters.exp +++ b/libstdc++-v3/testsuite/libstdc++-prettyprinters/prettyprinters.exp @@ -47,14 +47,6 @@ global PCH_CXXFLAGS gdb-dg-runtest [lsort [glob $srcdir/$subdir/*.cc]] \ "" "$DEFAULT_CXXFLAGS $PCH_CXXFLAGS" -if { [check_effective_target_lto] } { - append cxxflags " -flto" - # work around sourceware.org 20882 - regsub {^(.*)-Wl,--gc-sections(.*)$} $cxxldflags {\1\2} cxxldflags - gdb-dg-runtest [lsort [glob $srcdir/$subdir/*.cc]] \ - "" "$DEFAULT_CXXFLAGS -flto $PCH_CXXFLAGS" -} - if [info exists guality_gdb_name] { unsetenv GUALITY_GDB_NAME } > with binutils master and the prettyprinters.exp hack removed? === libstdc++ Summary === # of expected passes 140 > Do you know what fixed it on master? https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b7c871edcd83ccdc5fcd8148a7f433efd6b52255