amdgcn: Fix elf.h build issue
authorAndrew Stubbs <ams@codesourcery.com>
Fri, 17 Jul 2020 10:45:34 +0000 (11:45 +0100)
committerAndrew Stubbs <ams@codesourcery.com>
Fri, 17 Jul 2020 10:51:26 +0000 (11:51 +0100)
commit42b47dae498aa7b849b9c9a165b22146de1934a1
tree5d356276e9255d265e9dd528d6b9de5b460c8d3e
parentc9c87e6f9c795bb36e4570a07501fc182eaad035
amdgcn: Fix elf.h build issue

Allow building on systems with elf.h that includes AMDGPU definitions,
partially or completely.

gcc/ChangeLog:

* config/gcn/mkoffload.c (EM_AMDGPU): Undefine before defining.
(ELFOSABI_AMDGPU_HSA): Likewise.
(ELFABIVERSION_AMDGPU_HSA): Likewise.
(EF_AMDGPU_MACH_AMDGCN_GFX803): Likewise.
(EF_AMDGPU_MACH_AMDGCN_GFX900): Likewise.
(EF_AMDGPU_MACH_AMDGCN_GFX906): Likewise.
(reserved): Delete.
gcc/config/gcn/mkoffload.c