]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Support using -flto with libstdc++ testsuite
authorJonathan Wakely <jwakely@redhat.com>
Tue, 2 Aug 2016 09:53:45 +0000 (10:53 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 2 Aug 2016 09:53:45 +0000 (10:53 +0100)
* testsuite/lib/libstdc++.exp (v3-build_support): Add -fno-lto
to additional flags for compiling libtestc++.a objects.

From-SVN: r238980

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/lib/libstdc++.exp

index 54a1e096975643955fb8e8aafb181b3bdb7f3fc8..32aa2461269c1347d21aaea4fe1c8943356044da 100644 (file)
@@ -1,3 +1,8 @@
+2016-08-02  Jonathan Wakely  <jwakely@redhat.com>
+
+       * testsuite/lib/libstdc++.exp (v3-build_support): Add
+       -fno-lto to additional flags for compiling libtestc++.a objects.
+
 2016-07-19  Jonathan Wakely  <jwakely@redhat.com>
 
        Backport from mainline
index 8322fac04f9f489894289d79e3ce883274545c9c..c68689b257857c72e9a8a62922db6a853c409778 100644 (file)
@@ -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"
        }