From: Jonathan Wakely Date: Tue, 2 Aug 2016 09:40:50 +0000 (+0100) Subject: Support using -flto with libstdc++ testsuite X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c1b6948e1ba3d24871e6e11c47e3c33a8b61388b;p=gcc.git Support using -flto with libstdc++ testsuite * testsuite/lib/libstdc++.exp (v3-build_support): Add -fno-lto to additional flags for compiling libtestc++.a objects. From-SVN: r238978 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index aeeb7716d7d..6f6554f6864 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2016-08-02 Jonathan Wakely + + * testsuite/lib/libstdc++.exp (v3-build_support): Add -fno-lto to + additional flags for compiling libtestc++.a objects. + 2016-08-01 Jonathan Wakely * include/bits/basic_string.h (data() const): Update comment. diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp index 7bf91f3efec..e2afbe541a8 100644 --- a/libstdc++-v3/testsuite/lib/libstdc++.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++.exp @@ -636,8 +636,9 @@ proc v3-build_support { } { set object_file [file tail $obj] # Compile with "-w" so that warnings issued by the compiler # do not prevent compilation. + # Disable LTO so that ar/ranlib don't need the LTO plugin. if { [v3_target_compile $srcdir/util/$f $object_file "object" \ - [list "incdir=$srcdir" "additional_flags=-w"]] + [list "incdir=$srcdir" "additional_flags=-w -fno-lto"]] != "" } { error "could not compile $f" }