diff options
author | Thomas Schwinge <tschwinge@baylibre.com> | 2024-02-08 23:27:19 +0100 |
---|---|---|
committer | Thomas Schwinge <tschwinge@baylibre.com> | 2024-02-19 17:52:42 +0100 |
commit | 159174f25716c18a74a915cb01b9a28024ea7a3d (patch) | |
tree | f9383f99291b0b778fcee9441459e350c5a49398 | |
parent | 3a6f3354eaaf38b5e6be41e4ebf521d299593a6e (diff) | |
download | gcc-159174f25716c18a74a915cb01b9a28024ea7a3d.zip gcc-159174f25716c18a74a915cb01b9a28024ea7a3d.tar.gz gcc-159174f25716c18a74a915cb01b9a28024ea7a3d.tar.bz2 |
GCN: Restore lost '__gfx90a__' target CPU definition
Also, add some safeguards for the future.
Fix-up for commit 52a2c659ae6c21f84b6acce0afcb9b93b9dc71a0
"GCN: Add pre-initial support for gfx1100".
gcc/
* config/gcn/gcn.h (TARGET_CPU_CPP_BUILTINS): Restore lost
'__gfx90a__' target CPU definition. Add some safeguards for the future.
-rw-r--r-- | gcc/config/gcn/gcn.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/config/gcn/gcn.h b/gcc/config/gcn/gcn.h index a17f16a..c314c7b 100644 --- a/gcc/config/gcn/gcn.h +++ b/gcc/config/gcn/gcn.h @@ -32,6 +32,8 @@ builtin_define ("__RDNA2__"); \ else if (TARGET_RDNA3) \ builtin_define ("__RDNA3__"); \ + else \ + gcc_unreachable (); \ if (TARGET_FIJI) \ { \ builtin_define ("__fiji__"); \ @@ -43,10 +45,14 @@ builtin_define ("__gfx906__"); \ else if (TARGET_GFX908) \ builtin_define ("__gfx908__"); \ + else if (TARGET_GFX90a) \ + builtin_define ("__gfx90a__"); \ else if (TARGET_GFX1030) \ builtin_define ("__gfx1030"); \ else if (TARGET_GFX1100) \ builtin_define ("__gfx1100__"); \ + else \ + gcc_unreachable (); \ } while (0) #define ASSEMBLER_DIALECT (TARGET_RDNA2_PLUS ? 1 : 0) |