public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/94726] New: internal compiler error: in uniform_vector_p, at tree.c:11214
@ 2020-04-23  2:56 anbu1024.me at gmail dot com
  2020-04-23  5:24 ` [Bug middle-end/94726] [10 Regression] internal compiler error: in uniform_vector_p, at tree.c:11214 since r10-2089-g21caa1a2649d586f marxin at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: anbu1024.me at gmail dot com @ 2020-04-23  2:56 UTC (permalink / raw)
  To: gcc-bugs

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;
      |      ^

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

end of thread, other threads:[~2021-09-27 10:41 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-23  2:56 [Bug c/94726] New: internal compiler error: in uniform_vector_p, at tree.c:11214 anbu1024.me at gmail dot com
2020-04-23  5:24 ` [Bug middle-end/94726] [10 Regression] internal compiler error: in uniform_vector_p, at tree.c:11214 since r10-2089-g21caa1a2649d586f marxin at gcc dot gnu.org
2020-04-24  8:59 ` [Bug c/94726] [10 Regression] ICE " rguenth at gcc dot gnu.org
2020-04-24  9:20 ` marxin at gcc dot gnu.org
2020-04-24 10:59 ` jakub at gcc dot gnu.org
2020-05-07 11:56 ` [Bug c/94726] [10/11 " jakub at gcc dot gnu.org
2020-07-23  6:51 ` rguenth at gcc dot gnu.org
2021-04-08 12:02 ` rguenth at gcc dot gnu.org
2021-09-23  2:12 ` [Bug c/94726] [10/11/12 " pinskia at gcc dot gnu.org
2021-09-23  2:42 ` pinskia at gcc dot gnu.org
2021-09-26 10:00 ` pinskia at gcc dot gnu.org
2021-09-27 10:37 ` cvs-commit at gcc dot gnu.org
2021-09-27 10:41 ` pinskia at gcc dot gnu.org

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).