https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102238

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |102216

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Martin Sebor from comment #5)
> Confirmed with the simplified test case below.  DOM3 is the last pass to run
> before strlen.  The strlen output shows the sprintf call is being folded to
> strcpy.  I'm not sure what the relationship of this bug is to pr102216 but a
> missing -Wrestrict cannot be a cause of a missed optimization.  I've moved
> pr102216 to See Also.

This issue is blocking the patch which I have created for PR 102216 and that is
how I found this issue so yes it is still blocking PR 102216.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102216
[Bug 102216] [12 Regression] missed optimization causing Warray-bounds

Reply via email to