Skip to content

Commit cd49885

Browse files
kolerovartemiy-volkov
authored andcommitted
ld: Initialize no_lto variable in LTO tests
no_lto must be initialized in lto.exp as lto_fat and lto_no_fat. Otherwise, the testsuite will fail in some cases because of using of an undefined variable. ld/ * testsuite/ld-plugin/lto.exp: Initialize no_lto variable. Signed-off-by: Yuriy Kolerov <[email protected]>
1 parent cf45871 commit cd49885

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ld/testsuite/ld-plugin/lto.exp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ proc restore_notify { } {
4545

4646
set lto_fat ""
4747
set lto_no_fat ""
48+
set no_lto ""
4849
if { [check_lto_fat_available] } {
4950
set lto_fat "-ffat-lto-objects"
5051
set lto_no_fat "-fno-fat-lto-objects"

0 commit comments

Comments
 (0)