[Bug tree-optimization/86708] strlen of an empty aggregate element or member string not folded
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86708 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED Target Milestone|--- |10.0 --- Comment #3 from Andrew Pinski --- Fixed by r10-2769. Specifically this part of the patch: * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST for missing initializers.
[Bug tree-optimization/86708] strlen of an empty aggregate element or member string not folded
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86708 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2019-03-13 Ever confirmed|0 |1 --- Comment #2 from Martin Sebor --- Confirmed on the basis of bug 89688.
[Bug tree-optimization/86708] strlen of an empty aggregate element or member string not folded
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86708 Martin Sebor changed: What|Removed |Added Keywords||missed-optimization Blocks||83819 --- Comment #1 from Martin Sebor --- The declaration of a in the test case should have been: const char a[2][4] = { "123", /* a[1] = "" */ }; Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83819 [Bug 83819] [meta-bug] missing strlen optimizations