[Bug tree-optimization/86532] [9 Regression] Wrong code due to a wrong strlen folding starting with r262522
bernd.edlinger at hotmail dot de
gcc-bugzilla@gcc.gnu.org
Tue Jul 17 18:02:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86532
--- Comment #17 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
Martin,
in expr.c at string_constant() there is an impossible check:
if (TREE_CODE (init) == CONSTRUCTOR)
{
if (TREE_CODE (arg) != ARRAY_REF
&& TREE_CODE (arg) == COMPONENT_REF
&& TREE_CODE (arg) == MEM_REF)
return NULL_TREE;
it can't be COMPONENT_REF and MEM_REF at the same time.
More information about the Gcc-bugs
mailing list