This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Rename default_strict_argument_naming() tohook_bool_CUMULATIVE_ARGS_false().


Hi,

Attached is a patch to rename default_strict_argument_naming() to
hook_bool_CUMULATIVE_ARGS_false() as default_strict_argument_naming()
does not depend on any macro now.

Bootstrapped on i686-pc-linux-gnu.  Committed as obvious.

Kazu Hirata

2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>

	* target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
	hook_bool_CUMULATIVE_ARGS_false.
	* targhooks.c (default_strict_argument_naming): Rename to
	hook_bool_CUMULATIVE_ARGS_false.
	* targhooks.h: Update the prototype for
	default_strict_argument_naming.

Index: target-def.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/target-def.h,v
retrieving revision 1.65
diff -u -r1.65 target-def.h
--- target-def.h	31 Jan 2004 18:46:11 -0000	1.65
+++ target-def.h	31 Jan 2004 19:00:08 -0000
@@ -335,7 +335,7 @@
 
 #define TARGET_EXPAND_BUILTIN_SAVEREGS default_expand_builtin_saveregs
 #define TARGET_SETUP_INCOMING_VARARGS default_setup_incoming_varargs
-#define TARGET_STRICT_ARGUMENT_NAMING default_strict_argument_naming
+#define TARGET_STRICT_ARGUMENT_NAMING hook_bool_CUMULATIVE_ARGS_false
 #define TARGET_PRETEND_OUTGOING_VARARGS_NAMED default_pretend_outgoing_varargs_named
 
 #define TARGET_CALLS {						\
Index: targhooks.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/targhooks.c,v
retrieving revision 2.15
diff -u -r2.15 targhooks.c
--- targhooks.c	31 Jan 2004 18:46:11 -0000	2.15
+++ targhooks.c	31 Jan 2004 19:00:08 -0000
@@ -146,8 +146,10 @@
 #endif
 }
 
+/* Generic hook that takes a CUMULATIVE_ARGS pointer and returns true.  */
+
 bool
-default_strict_argument_naming (CUMULATIVE_ARGS *ca ATTRIBUTE_UNUSED)
+hook_bool_CUMULATIVE_ARGS_false (CUMULATIVE_ARGS *ca ATTRIBUTE_UNUSED)
 {
   return false;
 }
Index: targhooks.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/targhooks.h,v
retrieving revision 2.7
diff -u -r2.7 targhooks.h
--- targhooks.h	31 Jan 2004 18:46:11 -0000	2.7
+++ targhooks.h	31 Jan 2004 19:00:08 -0000
@@ -31,7 +31,7 @@
 
 extern rtx default_expand_builtin_saveregs (void);
 extern void default_setup_incoming_varargs (CUMULATIVE_ARGS *, enum machine_mode, tree, int *, int);
-extern bool default_strict_argument_naming (CUMULATIVE_ARGS *);
+extern bool hook_bool_CUMULATIVE_ARGS_false (CUMULATIVE_ARGS *);
 extern bool default_pretend_outgoing_varargs_named (CUMULATIVE_ARGS *);
 
 extern bool hook_bool_CUMULATIVE_ARGS_true (CUMULATIVE_ARGS *);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]