Commit 882de214 by Kai Tietz Committed by Kai Tietz

cp-tree.h (cp_build_function_call): Remove prototype.

2014-11-13  Kai Tietz  <ktietz@redhat.com>

	* cp-tree.h (cp_build_function_call): Remove prototype.
	(cp_build_addr_expr_strict): Likewise.
	(build_typed_address): Likewise.
	* typeck.c (build_typed_address): Removed.
	(cp_build_addr_expr_strict): Make static.
	(cp_build_function_call): Likewise.

From-SVN: r217469
parent 152914cd
2014-11-13 Kai Tietz <ktietz@redhat.com>
* cp-tree.h (cp_build_function_call): Remove prototype.
(cp_build_addr_expr_strict): Likewise.
(build_typed_address): Likewise.
* typeck.c (build_typed_address): Removed.
(cp_build_addr_expr_strict): Make static.
(cp_build_function_call): Likewise.
2014-11-12 Paolo Carlini <paolo.carlini@oracle.com> 2014-11-12 Paolo Carlini <paolo.carlini@oracle.com>
DR 1510 DR 1510
......
...@@ -6136,7 +6136,6 @@ extern tree build_array_ref (location_t, tree, tree); ...@@ -6136,7 +6136,6 @@ extern tree build_array_ref (location_t, tree, tree);
extern tree cp_build_array_ref (location_t, tree, tree, extern tree cp_build_array_ref (location_t, tree, tree,
tsubst_flags_t); tsubst_flags_t);
extern tree get_member_function_from_ptrfunc (tree *, tree, tsubst_flags_t); extern tree get_member_function_from_ptrfunc (tree *, tree, tsubst_flags_t);
extern tree cp_build_function_call (tree, tree, tsubst_flags_t);
extern tree cp_build_function_call_nary (tree, tsubst_flags_t, ...) extern tree cp_build_function_call_nary (tree, tsubst_flags_t, ...)
ATTRIBUTE_SENTINEL; ATTRIBUTE_SENTINEL;
extern tree cp_build_function_call_vec (tree, vec<tree, va_gc> **, extern tree cp_build_function_call_vec (tree, vec<tree, va_gc> **,
...@@ -6152,7 +6151,6 @@ extern tree build_x_unary_op (location_t, ...@@ -6152,7 +6151,6 @@ extern tree build_x_unary_op (location_t,
enum tree_code, tree, enum tree_code, tree,
tsubst_flags_t); tsubst_flags_t);
extern tree cp_build_addr_expr (tree, tsubst_flags_t); extern tree cp_build_addr_expr (tree, tsubst_flags_t);
extern tree cp_build_addr_expr_strict (tree, tsubst_flags_t);
extern tree cp_build_unary_op (enum tree_code, tree, int, extern tree cp_build_unary_op (enum tree_code, tree, int,
tsubst_flags_t); tsubst_flags_t);
extern tree unary_complex_lvalue (enum tree_code, tree); extern tree unary_complex_lvalue (enum tree_code, tree);
...@@ -6212,7 +6210,6 @@ extern tree build_x_vec_perm_expr (location_t, ...@@ -6212,7 +6210,6 @@ extern tree build_x_vec_perm_expr (location_t,
extern tree build_simple_component_ref (tree, tree); extern tree build_simple_component_ref (tree, tree);
extern tree build_ptrmemfunc_access_expr (tree, tree); extern tree build_ptrmemfunc_access_expr (tree, tree);
extern tree build_address (tree); extern tree build_address (tree);
extern tree build_typed_address (tree, tree);
extern tree build_nop (tree, tree); extern tree build_nop (tree, tree);
extern tree non_reference (tree); extern tree non_reference (tree);
extern tree lookup_anon_field (tree, tree); extern tree lookup_anon_field (tree, tree);
......
...@@ -42,6 +42,8 @@ along with GCC; see the file COPYING3. If not see ...@@ -42,6 +42,8 @@ along with GCC; see the file COPYING3. If not see
#include "c-family/c-ubsan.h" #include "c-family/c-ubsan.h"
#include "params.h" #include "params.h"
static tree cp_build_addr_expr_strict (tree, tsubst_flags_t);
static tree cp_build_function_call (tree, tree, tsubst_flags_t);
static tree pfn_from_ptrmemfunc (tree); static tree pfn_from_ptrmemfunc (tree);
static tree delta_from_ptrmemfunc (tree); static tree delta_from_ptrmemfunc (tree);
static tree convert_for_assignment (tree, tree, impl_conv_rhs, tree, int, static tree convert_for_assignment (tree, tree, impl_conv_rhs, tree, int,
...@@ -3400,7 +3402,7 @@ build_function_call_vec (location_t /*loc*/, vec<location_t> /*arg_loc*/, ...@@ -3400,7 +3402,7 @@ build_function_call_vec (location_t /*loc*/, vec<location_t> /*arg_loc*/,
/* Build a function call using a tree list of arguments. */ /* Build a function call using a tree list of arguments. */
tree static tree
cp_build_function_call (tree function, tree params, tsubst_flags_t complain) cp_build_function_call (tree function, tree params, tsubst_flags_t complain)
{ {
vec<tree, va_gc> *vec; vec<tree, va_gc> *vec;
...@@ -5322,19 +5324,6 @@ build_address (tree t) ...@@ -5322,19 +5324,6 @@ build_address (tree t)
return t; return t;
} }
/* Returns the address of T with type TYPE. */
tree
build_typed_address (tree t, tree type)
{
if (error_operand_p (t) || !cxx_mark_addressable (t))
return error_mark_node;
t = build_fold_addr_expr_with_type (t, type);
if (TREE_CODE (t) != ADDR_EXPR)
t = rvalue (t);
return t;
}
/* Return a NOP_EXPR converting EXPR to TYPE. */ /* Return a NOP_EXPR converting EXPR to TYPE. */
tree tree
...@@ -5628,7 +5617,7 @@ cp_build_addr_expr (tree arg, tsubst_flags_t complain) ...@@ -5628,7 +5617,7 @@ cp_build_addr_expr (tree arg, tsubst_flags_t complain)
/* Take the address of ARG, but only if it's an lvalue. */ /* Take the address of ARG, but only if it's an lvalue. */
tree static tree
cp_build_addr_expr_strict (tree arg, tsubst_flags_t complain) cp_build_addr_expr_strict (tree arg, tsubst_flags_t complain)
{ {
return cp_build_addr_expr_1 (arg, 1, complain); return cp_build_addr_expr_1 (arg, 1, complain);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment