diff options
author | Tobias Burnus <tburnus@baylibre.com> | 2024-01-26 10:14:09 +0100 |
---|---|---|
committer | Tobias Burnus <tburnus@baylibre.com> | 2024-01-26 10:14:09 +0100 |
commit | 4b5650acb3107239867830dc1214b31bdbe3cacd (patch) | |
tree | b4ca1397d144f080905fa1afb7999f9f3ed44740 /gcc/cp/module.cc | |
parent | bf23a62ee08fdc114a517dc4af148f15fa5d6545 (diff) | |
download | gcc-4b5650acb3107239867830dc1214b31bdbe3cacd.zip gcc-4b5650acb3107239867830dc1214b31bdbe3cacd.tar.gz gcc-4b5650acb3107239867830dc1214b31bdbe3cacd.tar.bz2 |
gcn/gcn-hsa.h: Always pass --amdhsa-code-object-version= in ASM_SPEC
Since LLVM commit 082f87c9d418 (Pull Req. #79038; will become LLVM 18)
"[AMDGPU] Change default AMDHSA Code Object version to 5"
the default - when no --amdhsa-code-object-version= is used - was bumped.
Using --amdhsa-code-object-version=5 is supported (with unknown limitations)
since LLVM 14. GCC required for proper support at least LLVM 13.0.1 such
that explicitly using COV5 is not possible.
Unfortunately, the COV number matters for debugging ("-g") as mkoffload.cc
extracts debugging data from the host's object file and writes into an
an AMD GPU object file it creates. And all object files linked together
must have the same ABI version.
gcc/ChangeLog:
* config/gcn/gcn-hsa.h (ABI_VERSION_SPEC): New; creates the
"--amdhsa-code-object-version=" argument.
(ASM_SPEC): Use it; replace previous version of it.
Signed-off-by: Tobias Burnus <tburnus@baylibre.com>
Diffstat (limited to 'gcc/cp/module.cc')
0 files changed, 0 insertions, 0 deletions