[Bug c++/59922] -finstrument-functions emit false warning "control reaches end of non-void function"
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59922 Eric Gallager changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #5 from Eric Gallager --- (In reply to Eric Gallager from comment #4) > Kinda more important now that -Wreturn-type is on by default ...thus, cc-ing Martin Liska
[Bug c++/59922] -finstrument-functions emit false warning "control reaches end of non-void function"
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59922 --- Comment #4 from Eric Gallager --- Kinda more important now that -Wreturn-type is on by default
[Bug c++/59922] -finstrument-functions emit false warning "control reaches end of non-void function"
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59922 Eric Gallager changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRMED |NEW Last reconfirmed||2017-08-23 CC||egallager at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #3 from Eric Gallager --- Confirmed. Happens with optimization levels -O0 and -Os, but not -O1, -O2, -O3, -Og, or -Ofast.
[Bug c++/59922] -finstrument-functions emit false warning control reaches end of non-void function
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59922 --- Comment #1 from Andrew Pinski pinskia at gcc dot gnu.org --- There is another bug about a similar thing but with constructors/deconstructors. -finstrument-functions inserts try/finally blocks in the code and the dead code is not removed before hand so the warning mechanism gets confused.
[Bug c++/59922] -finstrument-functions emit false warning control reaches end of non-void function
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59922 --- Comment #2 from Andrew Pinski pinskia at gcc dot gnu.org --- Related to bug 20681.