https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83190
Andrew Pinski changed:
What|Removed |Added
Severity|normal |enhancement
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83190
Leslie Zhai changed:
What|Removed |Added
CC||lesliezhai at llvm dot org.cn
--- Comment
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83190
Richard Biener changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
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
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.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83190
Martin Sebor changed:
What|Removed |Added
Keywords||missed-optimization
--- Comment #1 from M