[Bug tree-optimization/86364] strnlen before strlen of same argument not folded
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jun 29 16:14:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86364
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Priority|P3 |P4
Blocks| |83819
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
It's probably unlikely that both strlen and strnlen will be called on the same
argument so this optimization is of minor importance (I noticed it while
analyzing a link failure in one of the strnlen tests on a Solaris 10 system
with no strnlen implementation).
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83819
[Bug 83819] [meta-bug] missing strlen optimizations
More information about the Gcc-bugs
mailing list