[patch] Poison FUNCTION_ARG_KEEP_AS_REFERENCE.
Kazu Hirata
kazu@cs.umass.edu
Mon Feb 2 23:43:00 GMT 2004
Hi,
Attached is a patch to poison FUNCTION_ARG_KEEP_AS_REFERENCE as it is
not used anywhere.
Bootstrapped on i686-pc-linux-gnu and built cc1 of frv-elf. OK to
apply?
Kazu Hirata
2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
* system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
* config/frv/frv-protos.h: Remove the prototype for
frv_function_arg_keep_as_reference.
* config/frv/frv.c (frv_function_arg_keep_as_reference):
Remove.
* config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
* config/stormy16/stormy16.h: Remove the commented-out
definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
Index: system.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/system.h,v
retrieving revision 1.192
diff -u -r1.192 system.h
--- system.h 31 Jan 2004 18:46:11 -0000 1.192
+++ system.h 2 Feb 2004 07:07:38 -0000
@@ -632,7 +632,7 @@
CONVERT_HARD_REGISTER_TO_SSA_P ASM_OUTPUT_MAIN_SOURCE_FILENAME \
FIRST_INSN_ADDRESS TEXT_SECTION SHARED_BSS_SECTION_ASM_OP \
PROMOTED_MODE EXPAND_BUILTIN_VA_END \
- LINKER_DOES_NOT_WORK_WITH_DWARF2
+ LINKER_DOES_NOT_WORK_WITH_DWARF2 FUNCTION_ARG_KEEP_AS_REFERENCE
/* Hooks that are no longer used. */
#pragma GCC poison LANG_HOOKS_FUNCTION_MARK LANG_HOOKS_FUNCTION_FREE \
Index: config/frv/frv-protos.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/frv/frv-protos.h,v
retrieving revision 1.11
diff -u -r1.11 frv-protos.h
--- config/frv/frv-protos.h 29 Jan 2004 01:31:13 -0000 1.11
+++ config/frv/frv-protos.h 2 Feb 2004 07:07:39 -0000
@@ -92,10 +92,6 @@
enum machine_mode,
tree, int);
-extern int frv_function_arg_keep_as_reference (CUMULATIVE_ARGS *,
- enum machine_mode,
- tree, int);
-
extern void frv_setup_incoming_varargs (CUMULATIVE_ARGS *,
enum machine_mode,
tree, int *, int);
Index: config/frv/frv.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/frv/frv.c,v
retrieving revision 1.47
diff -u -r1.47 frv.c
--- config/frv/frv.c 2 Feb 2004 06:31:01 -0000 1.47
+++ config/frv/frv.c 2 Feb 2004 07:07:44 -0000
@@ -3118,19 +3118,6 @@
return 0;
}
-/* If defined, a C expression that indicates when it is more desirable to keep
- an argument passed by invisible reference as a reference, rather than
- copying it to a pseudo register. */
-
-int
-frv_function_arg_keep_as_reference (CUMULATIVE_ARGS *cum ATTRIBUTE_UNUSED,
- enum machine_mode mode ATTRIBUTE_UNUSED,
- tree type ATTRIBUTE_UNUSED,
- int named ATTRIBUTE_UNUSED)
-{
- return 0;
-}
-
/* Return true if a register is ok to use as a base or index register. */
Index: config/frv/frv.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/frv/frv.h,v
retrieving revision 1.36
diff -u -r1.36 frv.h
--- config/frv/frv.h 1 Feb 2004 21:21:36 -0000 1.36
+++ config/frv/frv.h 2 Feb 2004 07:07:47 -0000
@@ -1912,12 +1912,6 @@
#define FUNCTION_ARG_CALLEE_COPIES(CUM, MODE, TYPE, NAMED) \
frv_function_arg_callee_copies (&CUM, MODE, TYPE, NAMED)
-/* If defined, a C expression that indicates when it is more desirable to keep
- an argument passed by invisible reference as a reference, rather than
- copying it to a pseudo register. */
-#define FUNCTION_ARG_KEEP_AS_REFERENCE(CUM, MODE, TYPE, NAMED) \
- frv_function_arg_keep_as_reference (&CUM, MODE, TYPE, NAMED)
-
/* A C type for declaring a variable that is used as the first argument of
`FUNCTION_ARG' and other related values. For some target machines, the type
`int' suffices and can hold the number of bytes of argument so far.
Index: config/stormy16/stormy16.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/stormy16/stormy16.h,v
retrieving revision 1.84
diff -u -r1.84 stormy16.h
--- config/stormy16/stormy16.h 25 Jan 2004 22:20:15 -0000 1.84
+++ config/stormy16/stormy16.h 2 Feb 2004 07:07:48 -0000
@@ -420,11 +420,6 @@
#define FUNCTION_ARG_PASS_BY_REFERENCE(CUM, MODE, TYPE, NAMED) 0
-/* If defined, a C expression that indicates when it is more
- desirable to keep an argument passed by invisible reference as a
- reference, rather than copying it to a pseudo register. */
-/* #define FUNCTION_ARG_KEEP_AS_REFERENCE(CUM, MODE, TYPE, NAMED) */
-
/* For this platform, the value of CUMULATIVE_ARGS is the number of words
of arguments that have been passed in registers so far. */
#define CUMULATIVE_ARGS int
More information about the Gcc-patches
mailing list