Create GCN-specific gthreads
authorKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 25 Jun 2019 11:41:29 +0000 (11:41 +0000)
committerAndrew Stubbs <ams@gcc.gnu.org>
Tue, 25 Jun 2019 11:41:29 +0000 (11:41 +0000)
commit76d463310787c8c7fd0c55cf88031b240311ab68
treeea65a788c13aa021cc2d12ac76da8ce9baa14334
parent4c3d876014207c013566132a93cb9d29f0c96a7b
Create GCN-specific gthreads

2019-06-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
            Andrew Stubbs  <ams@codesourcery.com>

        gcc/
* config.gcc (thread_file): Set to gcn for AMD GCN.
* config/gcn/gcn.c (gcn_emutls_var_init): New function.
(TARGET_EMUTLS_VAR_INIT): New hook.

config/
* gthr.m4 (GCC_AC_THREAD_HEADER): Add case for gcn.

libgcc/
* configure: Regenerate.
* config/gcn/gthr-gcn.h: New.

Co-Authored-By: Andrew Stubbs <ams@codesourcery.com>
From-SVN: r272647
config/ChangeLog
config/gthr.m4
gcc/ChangeLog
gcc/config.gcc
gcc/config/gcn/gcn.c
libgcc/ChangeLog
libgcc/config/gcn/gthr-gcn.h [new file with mode: 0644]
libgcc/configure