[Bug tree-optimization/82946] member pointer defeats strlen optimization involving a string literal

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Nov 11 01:05:00 GMT 2017


Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
           Keywords|                            |missed-optimization
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=80944

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
I should add that a similar argument could be made in pr80944.  The difference
is that the other report deals with memset(s->a, 0, ...) which, although
strictly also prevented from creating valid pointers (including null pointers),
is commonly used by programs to create null pointers.

More information about the Gcc-bugs mailing list