From 5c1838c01652a403498e27024cb0e5ea66376353 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Thu, 7 Oct 2021 19:44:00 +0530 Subject: tree-object-size: Drop unused pdecl and poff arguments The pdecl and poff arguments were added to allow their use in compute_objsize in builtins.c. That use has been gone for a while now since compute_objsize does its own size estimation, so drop these arguments to simplify code. gcc/ChangeLog: * tree-object-size.c (addr_object_size, compute_builtin_object_size): Drop PDECL and POFF arguments. (addr_object_size): Adjust calls. * tree-object-size.h (compute_builtin_object_size): Drop PDECL and POFF arguments. Signed-off-by: Siddhesh Poyarekar --- gcc/tree-object-size.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/tree-object-size.h') diff --git a/gcc/tree-object-size.h b/gcc/tree-object-size.h index 358b902..ef18aea 100644 --- a/gcc/tree-object-size.h +++ b/gcc/tree-object-size.h @@ -22,8 +22,7 @@ along with GCC; see the file COPYING3. If not see extern void init_object_sizes (void); extern void fini_object_sizes (void); -extern bool compute_builtin_object_size (tree, int, unsigned HOST_WIDE_INT *, - tree * = NULL, tree * = NULL); +extern bool compute_builtin_object_size (tree, int, unsigned HOST_WIDE_INT *); extern tree decl_init_size (tree, bool); #endif // GCC_TREE_OBJECT_SIZE_H -- cgit v1.1