[Bug tree-optimization/83552] [7 Regression] ICE in error: invalid argument to gimple call in during GIMPLE pass: strlen
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 17 11:44:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83552
--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Wed Jan 17 11:43:56 2018
New Revision: 256786
URL: https://gcc.gnu.org/viewcvs?rev=256786&root=gcc&view=rev
Log:
Subject: Backport r256009
2018-01-17 Martin Liska <mliska@suse.cz>
Backport from mainline
2017-12-27 Martin Liska <mliska@suse.cz>
PR tree-optimization/83552
* tree-ssa-strlen.c (fold_strstr_to_strncmp): Assign result
of get_string_lenth to a SSA_NAME if not a GIMPLE value.
2018-01-17 Martin Liska <mliska@suse.cz>
Backport from mainline
2017-12-27 Martin Liska <mliska@suse.cz>
PR tree-optimization/83552
* gcc.dg/pr83552.c: New test.
Added:
branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr83552.c
Modified:
branches/gcc-7-branch/gcc/ChangeLog
branches/gcc-7-branch/gcc/testsuite/ChangeLog
branches/gcc-7-branch/gcc/tree-ssa-strlen.c
More information about the Gcc-bugs
mailing list