diff options
author | Jason Merrill <jason@redhat.com> | 2014-11-17 14:08:07 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2014-11-17 14:08:07 -0500 |
commit | 56632b2773bfc2ebe722fa21c796c7369acf9a9c (patch) | |
tree | 73dc149a26c6bd49aa72590cac53a322919a5295 /gcc/tree.c | |
parent | 27d93d2c8a36cea495599e4eb070d3f922aab279 (diff) | |
download | gcc-56632b2773bfc2ebe722fa21c796c7369acf9a9c.zip gcc-56632b2773bfc2ebe722fa21c796c7369acf9a9c.tar.gz gcc-56632b2773bfc2ebe722fa21c796c7369acf9a9c.tar.bz2 |
Handle C++14 constexpr flow control.
* constexpr.c (cxx_eval_loop_expr, cxx_eval_switch_expr): New.
(cxx_eval_statement_list): New.
(cxx_eval_constant_expression): Handle LABEL_EXPR,
CASE_LABEL_EXPR, GOTO_EXPR, LOOP_EXPR, SWITCH_EXPR. Handle jump
semantics of RETURN_EXPR.
(many functions): Add jump_target parameter.
(returns, breaks, continues, switches, label_matches): New.
* cp-tree.h (LABEL_DECL_BREAK, LABEL_DECL_CONTINUE): New.
* cp-gimplify.c (begin_bc_block): Set them.
From-SVN: r217670
Diffstat (limited to 'gcc/tree.c')
0 files changed, 0 insertions, 0 deletions