[Bug tree-optimization/94015] [10 Regression] Another assignment incorrectly omitted by -foptimize-strlen
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 3 18:02:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94015
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|msebor at gcc dot gnu.org |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 47959
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47959&action=edit
gcc10-pr94015.patch
Untested fix. There are various other issues, e.g. allnonnul result isn't used
anywhere (storing_all_nonzero_p being a write only var), even the description
is weird:
/* STORING_NONZERO_P is true iff not all stored characters are zero.
STORING_ALL_NONZERO_P is true if all stored characters are zero.
STORING_ALL_ZEROS_P is true iff all stored characters are zero.
Both are false when it's impossible to determine which is true. */
More information about the Gcc-bugs
mailing list