]> git.ipfire.org Git - thirdparty/gcc.git/commit
amdgcn: Support LLVM 13 assembler syntax
authorAndrew Stubbs <ams@codesourcery.com>
Fri, 24 Sep 2021 10:37:37 +0000 (11:37 +0100)
committerAndrew Stubbs <ams@codesourcery.com>
Thu, 7 Oct 2021 10:26:44 +0000 (11:26 +0100)
commit6ca03ca35a58ebf9792aa8a08adf00b6fd3e0015
treeb22b3e23c2343a1b3e165b4faee5b38d9c3f5a0b
parent6496ae5c9651206c9de43f63018a549a2ef2244e
amdgcn: Support LLVM 13 assembler syntax

The LLVM devs have changed the assembler architecture attribute names on both
CLI and in the ".amdgcn_target" directive, and changed the attribute syntax
inside the directive, without keeping any backwards compatibility. :-(

This patch improves our configure tests to detect what dialect to use, what
attributes are valid, and adjusts the specs to match.

gcc/ChangeLog:

* config.in: Regenerate.
* config/gcn/gcn-hsa.h (X_FIJI): New macro.
(X_900): New macro.
(X_906): New macro.
(X_908): New macro.
(A_FIJI): Rename to ...
(S_FIJI): ... this.
(A_900): Rename to ...
(S_900): ... this.
(A_906): Rename to ...
(S_906): ... this.
(A_908): Rename to ...
(S_908): ... this.
(SRAMOPT): New macro.
(ASM_SPEC): Adjust xnack option usage.
* config/gcn/gcn.c (output_file_start): Adjust amdgcn_target usage.
* configure: Regenerate.
* configure.ac: Detect LLVM assembler dialect.
gcc/config.in
gcc/config/gcn/gcn-hsa.h
gcc/config/gcn/gcn.c
gcc/configure
gcc/configure.ac