This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/36254] wrong "control reaches end of non-void function" warning



------- Comment #9 from manu at gcc dot gnu dot org  2008-10-27 12:42 -------
What is an IF_STMT?

Is block_may_fallthru a middle-end function, then why it is seeing front-end
tree codes? Is it not, then why each front-end does not have its own version
(perhaps sharing some common part)?

Dumping this code with -fdump-tree-original is also broken.
I wish there was a way to make compilation of GCC fail every time a front-end
tree code is added and it is not handled in all relevant places.

Jakub, are you going to work on a fix?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36254


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]