]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Support using -flto with libstdc++ testsuite
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Aug 2016 09:40:50 +0000 (09:40 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 Aug 2016 09:40:50 +0000 (09:40 +0000)
* testsuite/lib/libstdc++.exp (v3-build_support): Add -fno-lto to
additional flags for compiling libtestc++.a objects.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238978 138bc75d-0d04-0410-961f-82ee72b054a4

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

index aeeb7716d7d0465c407cf8519c477ee21dffc84e..6f6554f6864f4e211e37053d58e271d9ab7b6116 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-08-01  Jonathan Wakely  <jwakely@redhat.com>
 
        * include/bits/basic_string.h (data() const): Update comment.
index 7bf91f3efeca5cf5837bb0d33832d2c6ba475a6a..e2afbe541a8fd69b9def1cbfbf6b4845a52ac38a 100644 (file)
@@ -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"
        }