diff options
author | Faisal Abbas <90.abbasfaisal@gmail.com> | 2022-08-23 14:31:26 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-08-25 12:40:28 +0100 |
commit | f83e254c29dc3690603e06a98d94b3d39eb853d7 (patch) | |
tree | bb5eb39ab27b058afeaadad2a8d28a0968a58031 /gcc/rust/backend/rust-tree.cc | |
parent | 2f7fbbaad1365c786f0f7eaa0687e8ba9e0876f7 (diff) | |
download | gcc-f83e254c29dc3690603e06a98d94b3d39eb853d7.zip gcc-f83e254c29dc3690603e06a98d94b3d39eb853d7.tar.gz gcc-f83e254c29dc3690603e06a98d94b3d39eb853d7.tar.bz2 |
rust-constexpr.cc: fix warnings for unused variables for unsupported bits
Signed-off-by: Faisal Abbas <90.abbasfaisal@gmail.com>
Diffstat (limited to 'gcc/rust/backend/rust-tree.cc')
-rw-r--r-- | gcc/rust/backend/rust-tree.cc | 37 |
1 files changed, 10 insertions, 27 deletions
diff --git a/gcc/rust/backend/rust-tree.cc b/gcc/rust/backend/rust-tree.cc index 996ade5..e6ae969 100644 --- a/gcc/rust/backend/rust-tree.cc +++ b/gcc/rust/backend/rust-tree.cc @@ -1424,16 +1424,16 @@ builtin_pack_call_p (tree call) return builtin_pack_fn_p (CALL_EXPR_FN (call)); } -// forked from gcc/cp/pt.cc has_extra_args_mechanism_p - -/* Return true if the tree T has the extra args mechanism for - avoiding partial instantiation. */ - -static bool -has_extra_args_mechanism_p (const_tree t) -{ - return false; -} +//// forked from gcc/cp/pt.cc has_extra_args_mechanism_p +// +///* Return true if the tree T has the extra args mechanism for +// avoiding partial instantiation. */ +// +// static bool +// has_extra_args_mechanism_p (const_tree t) +//{ +// return false; +//} // forked from gcc/cp/pt.cc find_parameter_packs_r @@ -3714,23 +3714,6 @@ char_type_p (tree type) tree resolve_nondeduced_context (tree orig_expr, tsubst_flags_t complain) { - tree expr, offset, baselink; - bool addr; - - if (!type_unknown_p (orig_expr)) - return orig_expr; - - expr = orig_expr; - addr = false; - offset = NULL_TREE; - baselink = NULL_TREE; - - if (TREE_CODE (expr) == ADDR_EXPR) - { - expr = TREE_OPERAND (expr, 0); - addr = true; - } - return orig_expr; } |