https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94726
Bug ID: 94726 Summary: internal compiler error: in uniform_vector_p, at tree.c:11214 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: anbu1024.me at gmail dot com Target Milestone: --- $ cat reduced.c typedef unsigned int type __attribute__ ( ( vector_size ( 8 ) ) ) ; type a , b; void foo ( void ) { type var = { 2 , 2 } ; b = __builtin_shuffle ( a , var ) ; } void * a [ ] = { } ; -------------------------------------------------------------------------------- $ gcc-10 --version gcc (GCC) 10.0.1 20200419 (experimental) Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -------------------------------------------------------------------------------- $ gcc-10 reduced.c reduced.c:12:8: error: conflicting types for ‘a’ 12 | void * a [ ] = { } ; | ^ reduced.c:4:6: note: previous declaration of ‘a’ was here 4 | type a , b; | ^ reduced.c: In function ‘foo’: reduced.c:8:6: internal compiler error: in uniform_vector_p, at tree.c:11214 8 | b = __builtin_shuffle ( a , var ) ; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0x736228 uniform_vector_p(tree_node const*) ../../gcc-10-20200419/gcc/tree.c:11214 0x1184786 gimple_vec_same_elem_p(tree_node*, tree_node* (*)(tree_node*)) /home/john/Documents/fuzz/gcc/10-20200419/build/gcc/gimple-match.c:1002 0x12ab6ca gimple_simplify_VEC_PERM_EXPR /home/john/Documents/fuzz/gcc/10-20200419/build/gcc/gimple-match.c:122872 0x1188bca gimple_resimplify3 ../../gcc-10-20200419/gcc/gimple-match-head.c:394 0x11d49aa gimple_simplify(gimple*, gimple_match_op*, gimple**, tree_node* (*)(tree_node*), tree_node* (*)(tree_node*)) ../../gcc-10-20200419/gcc/gimple-match-head.c:1059 0xad0b2f fold_stmt_1 ../../gcc-10-20200419/gcc/gimple-fold.c:5087 0xb14771 gimplify_modify_expr ../../gcc-10-20200419/gcc/gimplify.c:5942 0xafd53c gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc-10-20200419/gcc/gimplify.c:13608 0xb00bd6 gimplify_stmt(tree_node**, gimple**) ../../gcc-10-20200419/gcc/gimplify.c:6825 0xb03327 gimplify_and_add(tree_node*, gimple**) ../../gcc-10-20200419/gcc/gimplify.c:486 0xb03327 internal_get_tmp_var ../../gcc-10-20200419/gcc/gimplify.c:642 0xafc8ff get_formal_tmp_var(tree_node*, gimple**) ../../gcc-10-20200419/gcc/gimplify.c:663 0xafc8ff gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc-10-20200419/gcc/gimplify.c:14609 0xb14595 gimplify_modify_expr ../../gcc-10-20200419/gcc/gimplify.c:5792 0xafd53c gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc-10-20200419/gcc/gimplify.c:13608 0xb00bd6 gimplify_stmt(tree_node**, gimple**) ../../gcc-10-20200419/gcc/gimplify.c:6825 0xafe48b gimplify_statement_list ../../gcc-10-20200419/gcc/gimplify.c:1869 0xafe48b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc-10-20200419/gcc/gimplify.c:14052 0xb00bd6 gimplify_stmt(tree_node**, gimple**) ../../gcc-10-20200419/gcc/gimplify.c:6825 0xb0199b gimplify_bind_expr ../../gcc-10-20200419/gcc/gimplify.c:1424 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. -------------------------------------------------------------------------------- $ gcc-9 --version gcc (GCC) 9.2.1 20191102 Copyright (C) 2019 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -------------------------------------------------------------------------------- $ gcc-9 reduced.c reduced.c:12:8: error: conflicting types for ‘a’ 12 | void * a [ ] = { } ; | ^ reduced.c:4:6: note: previous declaration of ‘a’ was here 4 | type a , b; | ^