https://gcc.gnu.org/g:b4d6292373b2d50e9f15b2e82ad61abf64105f7b
commit r16-1701-gb4d6292373b2d50e9f15b2e82ad61abf64105f7b Author: Martin Jambor <mjam...@suse.cz> Date: Tue Jun 24 11:22:19 2025 +0200 Silence a clang warning in tree-vect-slp.cc about an unused variable Since r15-4695-gd17e672ce82e69 (Richard Biener: Assert finished vectorizer pattern COND_EXPR transition), the static const array cond_expr_maps is unused and when GCC is compiled with clang, it warns about that. This patch simply removes the variable. gcc/ChangeLog: 2025-06-24 Martin Jambor <mjam...@suse.cz> * tree-vect-slp.cc (cond_expr_maps): Remove. Diff: --- gcc/tree-vect-slp.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gcc/tree-vect-slp.cc b/gcc/tree-vect-slp.cc index 603dfc0d4b2d..1a703a9bae4a 100644 --- a/gcc/tree-vect-slp.cc +++ b/gcc/tree-vect-slp.cc @@ -507,11 +507,6 @@ vect_def_types_match (enum vect_def_type dta, enum vect_def_type dtb) && (dtb == vect_external_def || dtb == vect_constant_def))); } -static const int cond_expr_maps[3][5] = { - { 4, -1, -2, 1, 2 }, - { 4, -2, -1, 1, 2 }, - { 4, -1, -2, 2, 1 } -}; static const int no_arg_map[] = { 0 }; static const int arg0_map[] = { 1, 0 }; static const int arg1_map[] = { 1, 1 };