diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2016-08-02 10:40:50 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2016-08-02 10:40:50 +0100 |
commit | c1b6948e1ba3d24871e6e11c47e3c33a8b61388b (patch) | |
tree | bfbc65bc491266c82ccd452e7a6e0479c8c71ac9 | |
parent | 1efafef383b156074d4bd5ed35f656a509c7bf7a (diff) | |
download | gcc-c1b6948e1ba3d24871e6e11c47e3c33a8b61388b.zip gcc-c1b6948e1ba3d24871e6e11c47e3c33a8b61388b.tar.gz gcc-c1b6948e1ba3d24871e6e11c47e3c33a8b61388b.tar.bz2 |
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
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/lib/libstdc++.exp | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index aeeb771..6f6554f 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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. diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp index 7bf91f3..e2afbe5 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" } |