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