Commit fefcb65c by Kazu Hirata Committed by Kazu Hirata

default.h (PROMOTE_PROTOTYPES): Remove.

	* default.h (PROMOTE_PROTOTYPES): Remove.
	* system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
	STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
	EXPAND_BUILTIN_SAVEREGS): Poison.
	* target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
	hook_bool_tree_false.
	(TARGET_PROMOTE_PROTOTYPES): Likewise.
	* target.h: Replace SETUP_INCOMING_VARARGS with
	targetm.calls.setup_incoming_varargs().
	* targhooks.c (default_promote_function_return): Remove.
	(default_promote_prototypes): Likewise.
	(default_struct_value_rtx): Always abort().
	(default_expand_builtin_saveregs): Always print an error
	message.
	(default_setup_incoming_varargs): Do nothing.
	(default_pretend_outgoing_varargs_named): Don't depend on
	SETUP_INCOMING_VARARGS.
	* targhooks.h: Remove the prototype for
	default_promote_function_return and
	default_promote_prototypes.

From-SVN: r77477
parent dc79b3b8
2004-02-07 Kazu Hirata <kazu@cs.umass.edu> 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
* default.h (PROMOTE_PROTOTYPES): Remove.
* system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
EXPAND_BUILTIN_SAVEREGS): Poison.
* target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
hook_bool_tree_false.
(TARGET_PROMOTE_PROTOTYPES): Likewise.
* target.h: Replace SETUP_INCOMING_VARARGS with
targetm.calls.setup_incoming_varargs().
* targhooks.c (default_promote_function_return): Remove.
(default_promote_prototypes): Likewise.
(default_struct_value_rtx): Always abort().
(default_expand_builtin_saveregs): Always print an error
message.
(default_setup_incoming_varargs): Do nothing.
(default_pretend_outgoing_varargs_named): Don't depend on
SETUP_INCOMING_VARARGS.
* targhooks.h: Remove the prototype for
default_promote_function_return and
default_promote_prototypes.
2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
* system.h (SHARED_SECTION_ASM_OP): Poison. * system.h (SHARED_SECTION_ASM_OP): Poison.
* varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP. * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
* doc/tm.texi (SHARED_SECTION_ASM_OP): Remove. * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
......
...@@ -305,11 +305,6 @@ do { fputs (integer_asm_op (POINTER_SIZE / BITS_PER_UNIT, TRUE), FILE); \ ...@@ -305,11 +305,6 @@ do { fputs (integer_asm_op (POINTER_SIZE / BITS_PER_UNIT, TRUE), FILE); \
#define DWARF2_GENERATE_TEXT_SECTION_LABEL 1 #define DWARF2_GENERATE_TEXT_SECTION_LABEL 1
#endif #endif
/* Supply a default definition for PROMOTE_PROTOTYPES. */
#ifndef PROMOTE_PROTOTYPES
#define PROMOTE_PROTOTYPES 0
#endif
/* Number of hardware registers that go into the DWARF-2 unwind info. /* Number of hardware registers that go into the DWARF-2 unwind info.
If not defined, equals FIRST_PSEUDO_REGISTER */ If not defined, equals FIRST_PSEUDO_REGISTER */
......
...@@ -603,7 +603,9 @@ typedef char _Bool; ...@@ -603,7 +603,9 @@ typedef char _Bool;
MODDI3_LIBCALL UMODSI3_LIBCALL UMODDI3_LIBCALL BUILD_VA_LIST_TYPE \ MODDI3_LIBCALL UMODSI3_LIBCALL UMODDI3_LIBCALL BUILD_VA_LIST_TYPE \
PRETEND_OUTGOING_VARARGS_NAMED STRUCT_VALUE_INCOMING_REGNUM \ PRETEND_OUTGOING_VARARGS_NAMED STRUCT_VALUE_INCOMING_REGNUM \
ASM_OUTPUT_SECTION_NAME PROMOTE_FUNCTION_ARGS \ ASM_OUTPUT_SECTION_NAME PROMOTE_FUNCTION_ARGS \
STRUCT_VALUE_INCOMING STRICT_ARGUMENT_NAMING STRUCT_VALUE_INCOMING STRICT_ARGUMENT_NAMING \
PROMOTE_FUNCTION_RETURN PROMOTE_PROTOTYPES STRUCT_VALUE_REGNUM \
SETUP_INCOMING_VARARGS EXPAND_BUILTIN_SAVEREGS
/* Other obsolete target macros, or macros that used to be in target /* Other obsolete target macros, or macros that used to be in target
headers and were not used, and may be obsolete or may never have headers and were not used, and may be obsolete or may never have
......
...@@ -326,8 +326,8 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ...@@ -326,8 +326,8 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define TARGET_PCH_VALID_P default_pch_valid_p #define TARGET_PCH_VALID_P default_pch_valid_p
#define TARGET_PROMOTE_FUNCTION_ARGS hook_bool_tree_false #define TARGET_PROMOTE_FUNCTION_ARGS hook_bool_tree_false
#define TARGET_PROMOTE_FUNCTION_RETURN default_promote_function_return #define TARGET_PROMOTE_FUNCTION_RETURN hook_bool_tree_false
#define TARGET_PROMOTE_PROTOTYPES default_promote_prototypes #define TARGET_PROMOTE_PROTOTYPES hook_bool_tree_false
#define TARGET_STRUCT_VALUE_RTX default_struct_value_rtx #define TARGET_STRUCT_VALUE_RTX default_struct_value_rtx
#define TARGET_RETURN_IN_MEMORY default_return_in_memory #define TARGET_RETURN_IN_MEMORY default_return_in_memory
......
...@@ -449,7 +449,8 @@ struct gcc_target ...@@ -449,7 +449,8 @@ struct gcc_target
void (*setup_incoming_varargs) (CUMULATIVE_ARGS *ca, enum machine_mode mode, void (*setup_incoming_varargs) (CUMULATIVE_ARGS *ca, enum machine_mode mode,
tree type, int *pretend_arg_size, int second_time); tree type, int *pretend_arg_size, int second_time);
bool (*strict_argument_naming) (CUMULATIVE_ARGS *ca); bool (*strict_argument_naming) (CUMULATIVE_ARGS *ca);
/* Returns true if we should use SETUP_INCOMING_VARARGS and/or /* Returns true if we should use
targetm.calls.setup_incoming_varargs() and/or
targetm.calls.strict_argument_naming(). */ targetm.calls.strict_argument_naming(). */
bool (*pretend_outgoing_varargs_named) (CUMULATIVE_ARGS *ca); bool (*pretend_outgoing_varargs_named) (CUMULATIVE_ARGS *ca);
} calls; } calls;
......
...@@ -78,38 +78,11 @@ default_cc_modes_compatible (enum machine_mode m1, enum machine_mode m2) ...@@ -78,38 +78,11 @@ default_cc_modes_compatible (enum machine_mode m1, enum machine_mode m2)
return VOIDmode; return VOIDmode;
} }
bool
default_promote_function_return (tree fntype ATTRIBUTE_UNUSED)
{
#ifdef PROMOTE_FUNCTION_RETURN
return true;
#else
return false;
#endif
}
bool
default_promote_prototypes (tree fntype ATTRIBUTE_UNUSED)
{
if (PROMOTE_PROTOTYPES)
return true;
else
return false;
}
rtx rtx
default_struct_value_rtx (tree fntype ATTRIBUTE_UNUSED, default_struct_value_rtx (tree fntype ATTRIBUTE_UNUSED,
int incoming ATTRIBUTE_UNUSED) int incoming ATTRIBUTE_UNUSED)
{ {
#ifdef STRUCT_VALUE
return STRUCT_VALUE;
#else
#ifdef STRUCT_VALUE_REGNUM
return gen_rtx_REG (Pmode, STRUCT_VALUE_REGNUM);
#else
abort (); abort ();
#endif
#endif
} }
bool bool
...@@ -126,12 +99,8 @@ default_return_in_memory (tree type, ...@@ -126,12 +99,8 @@ default_return_in_memory (tree type,
rtx rtx
default_expand_builtin_saveregs (void) default_expand_builtin_saveregs (void)
{ {
#ifdef EXPAND_BUILTIN_SAVEREGS
return EXPAND_BUILTIN_SAVEREGS ();
#else
error ("__builtin_saveregs not supported by this target"); error ("__builtin_saveregs not supported by this target");
return const0_rtx; return const0_rtx;
#endif
} }
void void
...@@ -141,9 +110,6 @@ default_setup_incoming_varargs (CUMULATIVE_ARGS *ca ATTRIBUTE_UNUSED, ...@@ -141,9 +110,6 @@ default_setup_incoming_varargs (CUMULATIVE_ARGS *ca ATTRIBUTE_UNUSED,
int *pretend_arg_size ATTRIBUTE_UNUSED, int *pretend_arg_size ATTRIBUTE_UNUSED,
int second_time ATTRIBUTE_UNUSED) int second_time ATTRIBUTE_UNUSED)
{ {
#ifdef SETUP_INCOMING_VARARGS
SETUP_INCOMING_VARARGS ((*ca), mode, type, (*pretend_arg_size), second_time);
#endif
} }
/* Generic hook that takes a CUMULATIVE_ARGS pointer and returns true. */ /* Generic hook that takes a CUMULATIVE_ARGS pointer and returns true. */
...@@ -157,11 +123,7 @@ hook_bool_CUMULATIVE_ARGS_false (CUMULATIVE_ARGS *ca ATTRIBUTE_UNUSED) ...@@ -157,11 +123,7 @@ hook_bool_CUMULATIVE_ARGS_false (CUMULATIVE_ARGS *ca ATTRIBUTE_UNUSED)
bool bool
default_pretend_outgoing_varargs_named(CUMULATIVE_ARGS *ca ATTRIBUTE_UNUSED) default_pretend_outgoing_varargs_named(CUMULATIVE_ARGS *ca ATTRIBUTE_UNUSED)
{ {
#ifdef SETUP_INCOMING_VARARGS
return 1;
#else
return (targetm.calls.setup_incoming_varargs != default_setup_incoming_varargs); return (targetm.calls.setup_incoming_varargs != default_setup_incoming_varargs);
#endif
} }
/* Generic hook that takes a CUMULATIVE_ARGS pointer and returns true. */ /* Generic hook that takes a CUMULATIVE_ARGS pointer and returns true. */
......
...@@ -23,9 +23,6 @@ extern void default_external_libcall (rtx); ...@@ -23,9 +23,6 @@ extern void default_external_libcall (rtx);
extern enum machine_mode default_cc_modes_compatible (enum machine_mode, extern enum machine_mode default_cc_modes_compatible (enum machine_mode,
enum machine_mode); enum machine_mode);
extern bool default_promote_function_return (tree);
extern bool default_promote_prototypes (tree);
extern rtx default_struct_value_rtx (tree, int); extern rtx default_struct_value_rtx (tree, int);
extern bool default_return_in_memory (tree, tree); extern bool default_return_in_memory (tree, tree);
......
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