aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorLehua Ding <lehua.ding@rivai.ai>2023-06-13 18:59:09 +0800
committerPan Li <pan2.li@intel.com>2023-06-13 22:57:07 +0800
commit06a0f07220cea449b4683f9bb9cce2e5de1e5a35 (patch)
treeeac5d49c6ae1e22b8ddb854b813f206011ee4d52 /gcc
parenta07dadba85f1b15e270c227dfa70e2fdf331494f (diff)
downloadgcc-06a0f07220cea449b4683f9bb9cce2e5de1e5a35.zip
gcc-06a0f07220cea449b4683f9bb9cce2e5de1e5a35.tar.gz
gcc-06a0f07220cea449b4683f9bb9cce2e5de1e5a35.tar.bz2
RISC-V: Remove duplicate `#include "riscv-vector-switch.def"`
Hi, This patch remove the duplicate `#include "riscv-vector-switch.def"` statement and add #undef for ENTRY and TUPLE_ENTRY macros later. Best, Lehua gcc/ChangeLog: * config/riscv/riscv-v.cc (struct mode_vtype_group): Remove duplicate #include. (ENTRY): Undef. (TUPLE_ENTRY): Undef.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/riscv/riscv-v.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/riscv/riscv-v.cc b/gcc/config/riscv/riscv-v.cc
index d797326..e07d5c2 100644
--- a/gcc/config/riscv/riscv-v.cc
+++ b/gcc/config/riscv/riscv-v.cc
@@ -1254,7 +1254,6 @@ struct mode_vtype_group
ratio_for_min_vlen64[MODE##mode] = RATIO_FOR_MIN_VLEN64; \
vlmul_for_for_vlen128[MODE##mode] = VLMUL_FOR_MIN_VLEN128; \
ratio_for_for_vlen128[MODE##mode] = RATIO_FOR_MIN_VLEN128;
-#include "riscv-vector-switch.def"
#define TUPLE_ENTRY(MODE, REQUIREMENT, SUBPART_MODE, NF, VLMUL_FOR_MIN_VLEN32, \
RATIO_FOR_MIN_VLEN32, VLMUL_FOR_MIN_VLEN64, \
RATIO_FOR_MIN_VLEN64, VLMUL_FOR_MIN_VLEN128, \
@@ -1268,6 +1267,8 @@ struct mode_vtype_group
vlmul_for_for_vlen128[MODE##mode] = VLMUL_FOR_MIN_VLEN128; \
ratio_for_for_vlen128[MODE##mode] = RATIO_FOR_MIN_VLEN128;
#include "riscv-vector-switch.def"
+#undef ENTRY
+#undef TUPLE_ENTRY
}
};