From 882c54bb4ab5556aa5801bebcfd3666131fac833 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 2 Aug 2016 10:53:45 +0100 Subject: [PATCH] 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: r238980 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/testsuite/lib/libstdc++.exp | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 54a1e0969756..32aa2461269c 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-07-19 Jonathan Wakely Backport from mainline diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp index 8322fac04f9f..c68689b25785 100644 --- a/libstdc++-v3/testsuite/lib/libstdc++.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++.exp @@ -628,8 +628,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" }