x86: Add run-time tests for -mtls-dialect=gnu2
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 28 Apr 2017 19:42:05 +0000 (12:42 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 28 Apr 2017 19:42:18 +0000 (12:42 -0700)
commit1670f9c1546818c4ffe02e8f460df1c1c4b1601d
tree7d60c13655d170ddd4aa72e83c37b6dc3e360f3e
parentd6f48aed23d1004a4ed8ab3b2742b0bf7c838c1c
x86: Add run-time tests for -mtls-dialect=gnu2

* testsuite/config/default.exp (GNU2_CFLAGS): New.  Set
to -mtls-dialect=gnu2 if target compiler supports it.
* testsuite/ld-i386/tls.exp: Run -mtls-dialect=gnu2 tests.
* testsuite/ld-x86-64/tls.exp: Likewise.
* testsuite/ld-i386/tlsdesc1a.c: New file.
* testsuite/ld-i386/tlsdesc1b.c: Likewise.
* testsuite/ld-x86-64/tlsdesc1a.c: Likewise.
* testsuite/ld-x86-64/tlsdesc1b.c: Likewise.
ld/ChangeLog
ld/testsuite/config/default.exp
ld/testsuite/ld-i386/tls.exp
ld/testsuite/ld-i386/tlsdesc1a.c [new file with mode: 0644]
ld/testsuite/ld-i386/tlsdesc1b.c [new file with mode: 0644]
ld/testsuite/ld-x86-64/tls.exp
ld/testsuite/ld-x86-64/tlsdesc1a.c [new file with mode: 0644]
ld/testsuite/ld-x86-64/tlsdesc1b.c [new file with mode: 0644]