diff options
author | Jason Merrill <jason@redhat.com> | 2014-01-23 13:54:08 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2014-01-23 13:54:08 -0500 |
commit | 20f18c3ce14154eb477226aa48a12ebd32f9ead4 (patch) | |
tree | b80e9c1dd9cea4b9e0fd4dafbb7b382397e04a7d /gcc/c | |
parent | 928d850fcd999ed82cf5f2cfb4e24779f973e2d4 (diff) | |
download | gcc-20f18c3ce14154eb477226aa48a12ebd32f9ead4.zip gcc-20f18c3ce14154eb477226aa48a12ebd32f9ead4.tar.gz gcc-20f18c3ce14154eb477226aa48a12ebd32f9ead4.tar.bz2 |
re PR c++/55189 (enable -Wreturn-type by default)
PR c++/55189
* cp-tree.h (struct language_function): Add infinite_loop and
infinite_loops.
(current_function_infinite_loop): New.
* semantics.c (begin_maybe_infinite_loop, end_maybe_infinite_loop)
(break_maybe_infinite_loop): New.
(finish_while_stmt_cond, finish_while_stmt, begin_do_stmt)
(finish_do_stmt, finish_for_cond, finish_for_stmt)
(begin_range_for_stmt): Use them.
* decl.c (finish_function): Don't warn about missing return
if current_function_infinite_loop.
* pt.c (instantiate_decl): Copy current_function_infinite_loop.
* parser.c (cp_parser_jump_statement): Call break_maybe_infinite_loop.
From-SVN: r207001
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions