This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/86202] New: [8/9 Regression] ICE in get_range_info, at tree-ssanames.c:407
- From: "gscfq at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 18 Jun 2018 18:50:07 +0000
- Subject: [Bug c/86202] New: [8/9 Regression] ICE in get_range_info, at tree-ssanames.c:407
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86202
Bug ID: 86202
Summary: [8/9 Regression] ICE in get_range_info, at
tree-ssanames.c:407
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Changed between 20170820 and 20170910 :
$ cat z1.c
void *memcpy (void *, void *, __SIZE_TYPE__ *);
void *a, *b;
void f (void)
{
long unsigned int c;
memcpy (a, b, c);
}
$ gcc-9-20180617 -c z1.c
z1.c: In function 'f':
z1.c:6:17: warning: passing argument 3 of 'memcpy' makes pointer from integer
without a cast [-Wint-conversion]
memcpy (a, b, c);
^
z1.c:1:7: note: expected 'long unsigned int *' but argument is of type 'long
unsigned int'
void *memcpy (void *, void *, __SIZE_TYPE__ *);
^~~~~~
z1.c:6:3: internal compiler error: in get_range_info, at tree-ssanames.c:407
memcpy (a, b, c);
^~~~~~~~~~~~~~~~
0xc57d65 get_range_info(tree_node const*, generic_wide_int<wide_int_storage>*,
generic_wide_int<wide_int_storage>*)
../../gcc/tree-ssanames.c:407
0x85e44c size_must_be_zero_p
../../gcc/gimple-fold.c:653
0x85e44c gimple_fold_builtin_memory_op
../../gcc/gimple-fold.c:690
0x85ff9f gimple_fold_builtin
../../gcc/gimple-fold.c:3644
0x862b5b gimple_fold_call
../../gcc/gimple-fold.c:4153
0x862b5b fold_stmt_1
../../gcc/gimple-fold.c:4817
0x884fc8 gimplify_call_expr
../../gcc/gimplify.c:3424
0x87c757 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
../../gcc/gimplify.c:11369
0x87e776 gimplify_stmt(tree_node**, gimple**)
../../gcc/gimplify.c:6618
0x87baf3 gimplify_statement_list
../../gcc/gimplify.c:1763
0x87baf3 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
../../gcc/gimplify.c:11826
0x87e776 gimplify_stmt(tree_node**, gimple**)
../../gcc/gimplify.c:6618
0x87f25f gimplify_bind_expr
../../gcc/gimplify.c:1331
0x87bda6 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
../../gcc/gimplify.c:11598
0x87e776 gimplify_stmt(tree_node**, gimple**)
../../gcc/gimplify.c:6618
0x87fac8 gimplify_body(tree_node*, bool)
../../gcc/gimplify.c:12592
0x87fd95 gimplify_function_tree(tree_node*)
../../gcc/gimplify.c:12736
0x73c007 cgraph_node::analyze()
../../gcc/cgraphunit.c:669
0x73eb77 analyze_functions
../../gcc/cgraphunit.c:1123
0x73f172 symbol_table::finalize_compilation_unit()
../../gcc/cgraphunit.c:2673