[Bug gcov-profile/90438] [GCOV] switch statement is not instrumented when "case" body is empty and only "default" body with statements
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90438 --- Comment #2 from Yibiao Yang --- (In reply to Martin Liška from comment #1) > It's again the same story. As I've already explained you multiple times, > compiler optimizes a dead code even without any optimization level. Thus we > > Please do not create such bugs. Very sorry for the same bug report. Will avoid in the future. Thank you very much for the detailed explaination.
[Bug gcov-profile/90438] [GCOV] switch statement is not instrumented when "case" body is empty and only "default" body with statements
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90438 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Martin Liška --- It's again the same story. As I've already explained you multiple times, compiler optimizes a dead code even without any optimization level. Thus we end up with: f (int i) { int res; int D.1916; int _3; : res_2 = i_1(D) * 2; : _3 = res_2; : : return _3; } Please do not create such bugs.