[Bug tree-optimization/86061] dead memset followed by strncpy and assignment not eliminated

law at redhat dot com gcc-bugzilla@gcc.gnu.org
Tue Jul 23 20:08:00 GMT 2019


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

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |law at redhat dot com
         Resolution|---                         |FIXED

--- Comment #4 from Jeffrey A. Law <law at redhat dot com> ---
This was fixed by my recent code to handle strncpy in DSE.  Note the test I
added to the testsuite has a smaller array size.  DSE does not attempt to do
byte tracking on objects larger than 256 bytes.  My recollection was that in
practice the ability to optimize in those cases was rare enough to not be worth
the trouble.


More information about the Gcc-bugs mailing list