]> git.ipfire.org Git - thirdparty/gcc.git/commit
[gcn] Fix the output amdhsa.version
authorTobias Burnus <tburnus@baylibre.com>
Fri, 7 Feb 2025 12:22:08 +0000 (13:22 +0100)
committerTobias Burnus <tburnus@baylibre.com>
Fri, 7 Feb 2025 12:22:08 +0000 (13:22 +0100)
commit6aa3329b3430c6362ddf51e403d147e0b10d7401
treefdec8a15b14b679d7a27d937a05553d0a944e3a2
parent8561e4e2903ae0b4aff1ed1dc9e9871c89df6b43
[gcn] Fix the output amdhsa.version

The amdhsa.version depends on the code object version; while V3 had 1.0,
V4 has 1.1 and V5 (and V6) have 1.2. GCC used 1.0 but generated since
a while either V4 or, with -march=gfx...-generic, V6. Now it uses the
proper version again.

gcc/ChangeLog:

* config/gcn/gcn.cc (gcn_hsa_declare_function_name): Update
'amdhsa.version' output to match used code version.
* config/gcn/gen-gcn-device-macros.awk: Add a comment to
crosslink.
gcc/config/gcn/gcn.cc
gcc/config/gcn/gen-gcn-device-macros.awk