diff options
author | Andi Kleen <ak@gcc.gnu.org> | 2024-07-20 16:07:41 -0700 |
---|---|---|
committer | Andi Kleen <ak@gcc.gnu.org> | 2024-07-20 16:07:41 -0700 |
commit | ff6994e483be5bd340bfacc50d3441bd21aba1c4 (patch) | |
tree | a1915366e279218a7b95be41d19c8bf2830465a6 /gcc/cp/pt.cc | |
parent | 493c55578fe00f5f4a7534b8f5cb5213f86f4d01 (diff) | |
download | gcc-ff6994e483be5bd340bfacc50d3441bd21aba1c4.zip gcc-ff6994e483be5bd340bfacc50d3441bd21aba1c4.tar.gz gcc-ff6994e483be5bd340bfacc50d3441bd21aba1c4.tar.bz2 |
Revert "C++: Support clang compatible [[musttail]] (PR83324)"
This reverts commit 59dd1d7ab21ad9a7ebf641ec9aeea609c003ad2f.
Diffstat (limited to 'gcc/cp/pt.cc')
-rw-r--r-- | gcc/cp/pt.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gcc/cp/pt.cc b/gcc/cp/pt.cc index 9fae300..108e929b 100644 --- a/gcc/cp/pt.cc +++ b/gcc/cp/pt.cc @@ -21094,19 +21094,12 @@ tsubst_expr (tree t, tree args, tsubst_flags_t complain, tree in_decl) bool op = CALL_EXPR_OPERATOR_SYNTAX (t); bool ord = CALL_EXPR_ORDERED_ARGS (t); bool rev = CALL_EXPR_REVERSE_ARGS (t); - bool mtc = false; - if (TREE_CODE (t) == CALL_EXPR) - mtc = CALL_EXPR_MUST_TAIL_CALL (t); - if (op || ord || rev || mtc) + if (op || ord || rev) if (tree call = extract_call_expr (ret)) { CALL_EXPR_OPERATOR_SYNTAX (call) = op; CALL_EXPR_ORDERED_ARGS (call) = ord; CALL_EXPR_REVERSE_ARGS (call) = rev; - if (TREE_CODE (call) == CALL_EXPR) - CALL_EXPR_MUST_TAIL_CALL (call) = mtc; - else if (TREE_CODE (call) == AGGR_INIT_EXPR) - AGGR_INIT_EXPR_MUST_TAIL (call) = mtc; } if (warning_suppressed_p (t, OPT_Wpessimizing_move)) /* This also suppresses -Wredundant-move. */ |