This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/83190] missing strlen optimization of the empty string
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 28 Nov 2017 01:09:19 +0000
- Subject: [Bug tree-optimization/83190] missing strlen optimization of the empty string
- Auto-submitted: auto-generated
- References: <bug-83190-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83190
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Isn't the sizeof a, 4?
If so the call to strlen in g is undefined.