[Bug tree-optimization/83190] missing strlen optimization of the empty string

2021-09-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83190 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug tree-optimization/83190] missing strlen optimization of the empty string

2018-01-22 Thread lesliezhai at llvm dot org.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83190 Leslie Zhai changed: What|Removed |Added CC||lesliezhai at llvm dot org.cn --- Comment

[Bug tree-optimization/83190] missing strlen optimization of the empty string

2017-11-28 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83190 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #5

[Bug tree-optimization/83190] missing strlen optimization of the empty string

2017-11-28 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83190 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/83190] missing strlen optimization of the empty string

2017-11-27 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83190 --- Comment #3 from Martin Sebor --- sizeof "012\0" is 5. There are two NULs at the end, one explicit in the initializer string and one implicitly appended by the compiler. That the size is 5 can also be seen in the dump of g(): g () { char

[Bug tree-optimization/83190] missing strlen optimization of the empty string

2017-11-27 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83190 --- Comment #2 from Andrew Pinski --- Isn't the sizeof a, 4? If so the call to strlen in g is undefined.

[Bug tree-optimization/83190] missing strlen optimization of the empty string

2017-11-27 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83190 Martin Sebor changed: What|Removed |Added Keywords||missed-optimization --- Comment #1 from