Commit c1d9a8f5 by Clément Chigot Committed by Ian Lance Taylor

go-torture.exp: Only add lto to TORTURE_OPTIONS if it is supported.

	* lib/go-torture.exp: Only add lto to TORTURE_OPTIONS if it is
	supported.

From-SVN: r270133
parent 0bf12a52
2019-04-03 Clément Chigot <clement.chigot@atos.net>
* lib/go-torture.exp: Only add lto to TORTURE_OPTIONS if it is
supported.
2019-04-13 Christophe Lyon <christophe.lyon@linaro.org> 2019-04-13 Christophe Lyon <christophe.lyon@linaro.org>
PR c/71598 PR c/71598
......
...@@ -34,10 +34,13 @@ if ![info exists TORTURE_OPTIONS] { ...@@ -34,10 +34,13 @@ if ![info exists TORTURE_OPTIONS] {
{ -O2 -fomit-frame-pointer -finline-functions -funroll-loops } \ { -O2 -fomit-frame-pointer -finline-functions -funroll-loops } \
{ -O2 -fbounds-check } \ { -O2 -fbounds-check } \
{ -O3 -g } \ { -O3 -g } \
{ -Os } \ { -Os }]
{ -flto }]
}
if [check_effective_target_lto] {
set TORTURE_OPTIONS \
[concat $TORTURE_OPTIONS [list {-flto}]]
}
}
# #
# go-torture-compile -- compile a go.go-torture testcase. # go-torture-compile -- compile a go.go-torture testcase.
......
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