amdgcn: Fix attributes for LLVM-12 [PR 100208]
authorAndrew Stubbs <ams@codesourcery.com>
Tue, 27 Jul 2021 14:40:21 +0000 (15:40 +0100)
committerAndrew Stubbs <ams@codesourcery.com>
Wed, 28 Jul 2021 12:53:05 +0000 (13:53 +0100)
commit1af16666943ef075673501765a13e425e47015cd
tree125841bf2e8d59d6fa25396abc5e6d9a274c9116
parent04600a47224b1ff85c6fb870218b51969cceff21
amdgcn: Fix attributes for LLVM-12 [PR 100208]

This should work for a wider range of LLVM 12 variants now.
More work required for LLVM 13 though.

gcc/ChangeLog:

PR target/100208
* config.in: Regenerate.
* config/gcn/gcn-hsa.h (A_FIJI): New define.
(A_900): New define.
(A_906): New define.
(A_908): New define.
(ASM_SPEC): Use A_FIJI, A_900, A_906 and A_908.
* config/gcn/gcn.c (output_file_start): Adjust attributes according
to the assembler capabilities.
* config/gcn/mkoffload.c (main): Likewise.
* configure: Regenerate.
* configure.ac: Add tests for LLVM assembler attribute features.
gcc/config.in
gcc/config/gcn/gcn-hsa.h
gcc/config/gcn/gcn.c
gcc/config/gcn/mkoffload.c
gcc/configure
gcc/configure.ac