This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Remove apply_args_register_offset().
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 24 Feb 2004 23:31:39 -0500 (EST)
- Subject: [patch] Remove apply_args_register_offset().
Hi,
Attached is a patch to remove apply_args_register_offset() as it is
unused.
In 3.3 branch, objc/objc-act.c uses the function. Neither 3.4 or
tree-ssa branch has a use of the function.
Bootstrapped on i686-pc-linux-gnu. OK to apply?
Kazu Hirata
2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
* builtins.c (apply_args_register_offset): Remove.
* tree.h: Remove the corresponding prototype.
Index: builtins.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/builtins.c,v
retrieving revision 1.286
diff -u -r1.286 builtins.c
--- builtins.c 23 Feb 2004 12:41:35 -0000 1.286
+++ builtins.c 24 Feb 2004 14:33:25 -0000
@@ -883,20 +883,6 @@
used for calling a function. */
static int apply_args_reg_offset[FIRST_PSEUDO_REGISTER];
-/* Return the offset of register REGNO into the block returned by
- __builtin_apply_args. This is not declared static, since it is
- needed in objc-act.c. */
-
-int
-apply_args_register_offset (int regno)
-{
- apply_args_size ();
-
- /* Arguments are always put in outgoing registers (in the argument
- block) if such make sense. */
- return apply_args_reg_offset[OUTGOING_REGNO (regno)];
-}
-
/* Return the size required for the block returned by __builtin_apply_args,
and initialize apply_args_mode. */
Index: tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree.h,v
retrieving revision 1.469
diff -u -r1.469 tree.h
--- tree.h 19 Feb 2004 22:39:45 -0000 1.469
+++ tree.h 24 Feb 2004 14:33:27 -0000
@@ -2926,7 +2926,6 @@
#endif
/* In expr.c */
-extern int apply_args_register_offset (int);
extern rtx expand_builtin_return_addr (enum built_in_function, int, rtx);
extern void check_max_integer_computation_mode (tree);