aboutsummaryrefslogtreecommitdiff
path: root/libgomp/config/rtems/proc.c
diff options
context:
space:
mode:
authorAndrew Stubbs <ams@codesourcery.com>2021-10-13 11:53:42 +0100
committerAndrew Stubbs <ams@codesourcery.com>2021-10-15 13:28:12 +0100
commitf3d64372d777d7d6068df8167b6751c289963e85 (patch)
tree151782c85342f479d5c176e8c0745857ce4f8cf8 /libgomp/config/rtems/proc.c
parentcbcba1eb28db3c2540957ccb3779f750daea6099 (diff)
downloadgcc-f3d64372d777d7d6068df8167b6751c289963e85.zip
gcc-f3d64372d777d7d6068df8167b6751c289963e85.tar.gz
gcc-f3d64372d777d7d6068df8167b6751c289963e85.tar.bz2
amdgcn: fix up offload debug linking with LLVM 13
Between LLVM 9 and LLVM 13 the attribute works differently in several ways, and this needs to be allowed for in GCC and mkoffload independently. This patch fixes up mkoffload when debug info is enabled, which is made more complicated because the configure tests checks whether the attribute option is accepted silently, but does not check if the assembler actually sets the ELF flags for that attribute, and mkoffload needs to mimick that behaviour exactly. The patch therefore removes some of the conditionals. gcc/ChangeLog: * config/gcn/gcn-hsa.h (S_FIJI): Set unconditionally. (S_900): Likewise. (S_906): Likewise. * config/gcn/gcn.c: Hard code SRAM ECC settings for old architectures. * config/gcn/mkoffload.c (ELFABIVERSION_AMDGPU_HSA): Rename to ... (ELFABIVERSION_AMDGPU_HSA_V3): ... this. (ELFABIVERSION_AMDGPU_HSA_V4): New. (SET_SRAM_ECC_UNSUPPORTED): New. (copy_early_debug_info): Create elf flags to match the other objects. (main): Just let the attribute flags pass through.
Diffstat (limited to 'libgomp/config/rtems/proc.c')
0 files changed, 0 insertions, 0 deletions