diff options
author | Andrew Stubbs <ams@codesourcery.com> | 2020-11-23 17:18:27 +0000 |
---|---|---|
committer | Andrew Stubbs <ams@codesourcery.com> | 2020-11-24 14:56:38 +0000 |
commit | 97981e13b7f7b1ffd1c9ccf3d96d574b7b3caada (patch) | |
tree | efb0093538f86759e8ca6ba97fe6da97d393f093 /libgomp | |
parent | 4acba4859013ecaa5d109244f5b1cf95a090f3e3 (diff) | |
download | gcc-97981e13b7f7b1ffd1c9ccf3d96d574b7b3caada.tar.gz |
Tweak plugin-gcn.c defines
Ensure the code will continue to compile when elf.h gets these definitions.
libgomp/ChangeLog:
* plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
(reserved): Delete unused define.
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/plugin/plugin-gcn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libgomp/plugin/plugin-gcn.c b/libgomp/plugin/plugin-gcn.c index 0be350bba28..ebb6fbcfdba 100644 --- a/libgomp/plugin/plugin-gcn.c +++ b/libgomp/plugin/plugin-gcn.c @@ -52,6 +52,7 @@ #define HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT 0xA002 /* These probably won't be in elf.h for a while. */ +#ifndef R_AMDGPU_NONE #define R_AMDGPU_NONE 0 #define R_AMDGPU_ABS32_LO 1 /* (S + A) & 0xFFFFFFFF */ #define R_AMDGPU_ABS32_HI 2 /* (S + A) >> 32 */ @@ -64,8 +65,8 @@ #define R_AMDGPU_GOTPCREL32_HI 9 /* (G + GOT + A - P) >> 32 */ #define R_AMDGPU_REL32_LO 10 /* (S + A - P) & 0xFFFFFFFF */ #define R_AMDGPU_REL32_HI 11 /* (S + A - P) >> 32 */ -#define reserved 12 #define R_AMDGPU_RELATIVE64 13 /* B + A */ +#endif /* GCN specific definitions for asynchronous queues. */ |