Since PR ld/34088 test requires libm.a, which has feclearexcept, as a
linker script like
GROUP ( /usr/lib64/libm-2.42.a /usr/lib64/libmvec.a )
which is implemented for Linux/x86-64 and Linux/aarch64, limit such test
to Linux/x86-64 and Linux/aarch64.
PR ld/34088
* testsuite/ld-plugin/lto.exp: Limit PR ld/34088 test to
Linux/x86-64 and Linux/aarch64.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
{-Wl,-R,tmpdir} {} \
{pr31644a.c} {pr31644b.exe} {pass.out} {-flto} {c} {} \
{-Wl,--as-needed tmpdir/pr31644b.a tmpdir/pr31644c.so}] \
- [list {PR ld/34088} \
- {-static -flto -fuse-linker-plugin} \
- {} \
- {pr34088.c} \
- {pr34088.exe} \
- {pass.out} \
- {-flto -O0} \
- {c} \
- {} \
- {-lm}] \
]
# LTO run-time tests for ELF
"pr22983" \
] \
]
+
+ if { [istarget "aarch64*-*-linux"]
+ || [istarget "x86_64-*-linux*"] } {
+ run_ld_link_exec_tests [list \
+ [list \
+ {PR ld/34088} \
+ {-static -flto -fuse-linker-plugin} \
+ {} \
+ {pr34088.c} \
+ {pr34088.exe} \
+ {pass.out} \
+ {-flto -O0} \
+ {c} \
+ {} \
+ {-lm}] \
+ ] \
+ ]
+ }
}
if { [is_elf_format] && [check_lto_shared_available] } {