Commit c1b6948e by Jonathan Wakely Committed by Jonathan Wakely

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
parent 1efafef3
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> 2016-08-01 Jonathan Wakely <jwakely@redhat.com>
* include/bits/basic_string.h (data() const): Update comment. * include/bits/basic_string.h (data() const): Update comment.
......
...@@ -636,8 +636,9 @@ proc v3-build_support { } { ...@@ -636,8 +636,9 @@ proc v3-build_support { } {
set object_file [file tail $obj] set object_file [file tail $obj]
# Compile with "-w" so that warnings issued by the compiler # Compile with "-w" so that warnings issued by the compiler
# do not prevent compilation. # 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" \ 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" error "could not compile $f"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment