https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79634
Bug ID: 79634 Summary: ICE in expand_builtin_with_bounds, at builtins.c:7490 Product: gcc Version: 7.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gerhard.steinmetz.fort...@t-online.de Target Milestone: --- Version 5/6/7 (on x86_64 GNU/Linux) and files ./gcc.dg/tree-ssa/ssa-pre-13.c at -O2|3 ./gcc.dg/torture/pr55890-1.c at -Os|1|2|3 $ cat pr55890-1.c extern void *memmove(void *, void *, __SIZE_TYPE__); typedef int (*_TEST_fun_) (); static _TEST_fun_ i = (_TEST_fun_) memmove; int main() { i(); } $ gcc-7-20170219 -O2 -mmpx -fcheck-pointer-bounds -c pr55890-1.c pr55890-1.c: In function 'main.chkp': pr55890-1.c:4:14: internal compiler error: in expand_builtin_with_bounds, at builtins.c:7490 int main() { i(); } ^~~ 0x78d6d8 expand_builtin_with_bounds(tree_node*, rtx_def*, rtx_def*, machine_mode, int) ../../gcc/builtins.c:7489 0x8c349b expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.c:10780 0x7b7e4a expand_expr ../../gcc/expr.h:276 0x7b7e4a expand_call_stmt ../../gcc/cfgexpand.c:2658 0x7b7e4a expand_gimple_stmt_1 ../../gcc/cfgexpand.c:3571 0x7b7e4a expand_gimple_stmt ../../gcc/cfgexpand.c:3737 0x7b94ee expand_gimple_basic_block ../../gcc/cfgexpand.c:5744 0x7bf5b6 execute ../../gcc/cfgexpand.c:6357