re PR middle-end/50604 (verify_gimple failed: type mismatch in binary expression)
PR tree-optimization/50604 * builtins.c (fold_builtin_strcpy, fold_builtin_stpcpy, fold_builtin_strncpy, fold_builtin_stxcpy_chk): Ensure last argument to memcpy has size_type_node type instead of ssizetype. * tree-ssa-strlen.c (handle_builtin_memcpy): Use size_type_node instead of TREE_TYPE (len) as type for newlen. * gcc.dg/pr50604.c: New test. From-SVN: r179508
Showing
gcc/testsuite/gcc.dg/pr50604.c
0 → 100644
Please
register
or
sign in
to comment