diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-01-22 06:22:41 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-01-22 06:22:41 -0800 |
commit | 6a462ad49ec13bec4659f2a8fb2301cac9742da9 (patch) | |
tree | 29a667c1f102668e994174ee17108250196dc20b /ld/testsuite/ld-x86-64 | |
parent | a804e4760a9f05aeb61071f8caad3579e6a197a2 (diff) | |
download | gdb-6a462ad49ec13bec4659f2a8fb2301cac9742da9.zip gdb-6a462ad49ec13bec4659f2a8fb2301cac9742da9.tar.gz gdb-6a462ad49ec13bec4659f2a8fb2301cac9742da9.tar.bz2 |
x86-64: Skip GNU2 TLS tests only without compiler support
After fixing:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93319
https://sourceware.org/bugzilla/show_bug.cgi?id=25416
-mtls-dialect=gnu2 is working for x32 with GCC 10. Skip GNU2 TLS tests
only if compiler doesn't support it.
PR ld/25416
* testsuite/ld-x86-64/tls.exp: Skip GNU2 TLS tests only without
compiler support.
Diffstat (limited to 'ld/testsuite/ld-x86-64')
-rw-r--r-- | ld/testsuite/ld-x86-64/tls.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/testsuite/ld-x86-64/tls.exp b/ld/testsuite/ld-x86-64/tls.exp index 223c81e..2ac455a 100644 --- a/ld/testsuite/ld-x86-64/tls.exp +++ b/ld/testsuite/ld-x86-64/tls.exp @@ -177,8 +177,8 @@ run_ld_link_exec_tests [list \ ] \ ] -# -mtls-dialect=gnu2 isn't supported on x32. -if [istarget "x86_64-*-linux*-gnux32"] { +# Skip if -mtls-dialect=gnu2 doesn't work. +if { ![run_host_cmd_yesno $CC "-c -O2 -fPIC $GNU2_CFLAGS $srcdir/$subdir/tlsdesc1b.c -o tmpdir/tlsdesc1b.o"] } { return } |