public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V: Remove duplicate `#include "riscv-vector-switch.def"`
@ 2023-06-19 11:41 Jeff Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Law @ 2023-06-19 11:41 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:17f9b68a95fb084daa02590ddc0890fd2e1cd948

commit 17f9b68a95fb084daa02590ddc0890fd2e1cd948
Author: Lehua Ding <lehua.ding@rivai.ai>
Date:   Tue Jun 13 18:59:09 2023 +0800

    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.

Diff:
---
 gcc/config/riscv/riscv-v.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/config/riscv/riscv-v.cc b/gcc/config/riscv/riscv-v.cc
index d797326d736..e07d5c2901a 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
   }
 };

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V: Remove duplicate `#include "riscv-vector-switch.def"`
@ 2023-07-14  2:46 Jeff Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Law @ 2023-07-14  2:46 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:a1acd446db7442525351f7e4c730393e03bc9f46

commit a1acd446db7442525351f7e4c730393e03bc9f46
Author: Lehua Ding <lehua.ding@rivai.ai>
Date:   Tue Jun 13 18:59:09 2023 +0800

    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.

Diff:
---
 gcc/config/riscv/riscv-v.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/config/riscv/riscv-v.cc b/gcc/config/riscv/riscv-v.cc
index d797326d736..e07d5c2901a 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
   }
 };

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-14  2:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-19 11:41 [gcc(refs/vendors/riscv/heads/gcc-13-with-riscv-opts)] RISC-V: Remove duplicate `#include "riscv-vector-switch.def"` Jeff Law
2023-07-14  2:46 Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).