Description: 
  * This patches disables go tests with -flto on AIX. 

Tests: 
  * AIX 7.2:  Configure/Build: SUCCESS

Changelog:
  * lib/go-torture.exp: add check for lto option


  
Clément Chigot 
ATOS Bull SAS 
1 rue de Provence - 38432 Échirolles - France     
Index: go-torture.exp
===================================================================
--- go-torture.exp	(revision 269987)
+++ go-torture.exp	(working copy)
@@ -34,10 +34,13 @@ if ![info exists TORTURE_OPTIONS] {
 	{ -O2 -fomit-frame-pointer -finline-functions -funroll-loops } \
 	{ -O2 -fbounds-check } \
 	{ -O3 -g } \
-	{ -Os } \
-	{ -flto }]
+	{ -Os }]
 }
 
+if [check_effective_target_lto] {
+	set TORTURE_OPTIONS \
+	[concat $TORTURE_OPTIONS [list {-flto}]]
+}
 
 #
 # go-torture-compile -- compile a go.go-torture testcase.

Reply via email to