Commit b602b7b6 by Kazu Hirata Committed by Kazu Hirata

system.h (PROMOTE_FUNCTION_ARGS, [...]): Poison.

	* system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
	STRICT_ARGUMENT_NAMING): Poison.
	* target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
	hook_bool_tree_false.
	* targhooks.c (default_promote_function_args): Remove.
	(default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
	Don't check incoming.
	(default_strict_argument_naming): Don't use
	STRICT_ARGUMENT_NAMING.
	* targhooks.h: Remove the prototype for
	default_promote_function_args.

From-SVN: r77047
parent a0524eb3
2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
* system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
STRICT_ARGUMENT_NAMING): Poison.
* target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
hook_bool_tree_false.
* targhooks.c (default_promote_function_args): Remove.
(default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
Don't check incoming.
(default_strict_argument_naming): Don't use
STRICT_ARGUMENT_NAMING.
* targhooks.h: Remove the prototype for
default_promote_function_args.
2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
* config/i386/i386-protos.h: Remove the prototype for
ix86_setup_incoming_varargs.
* config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
......
......@@ -602,7 +602,8 @@ typedef char _Bool;
DIVDI3_LIBCALL UDIVSI3_LIBCALL UDIVDI3_LIBCALL MODSI3_LIBCALL \
MODDI3_LIBCALL UMODSI3_LIBCALL UMODDI3_LIBCALL BUILD_VA_LIST_TYPE \
PRETEND_OUTGOING_VARARGS_NAMED STRUCT_VALUE_INCOMING_REGNUM \
ASM_OUTPUT_SECTION_NAME
ASM_OUTPUT_SECTION_NAME PROMOTE_FUNCTION_ARGS \
STRUCT_VALUE_INCOMING STRICT_ARGUMENT_NAMING
/* 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
......
......@@ -325,7 +325,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define TARGET_GET_PCH_VALIDITY default_get_pch_validity
#define TARGET_PCH_VALID_P default_pch_valid_p
#define TARGET_PROMOTE_FUNCTION_ARGS default_promote_function_args
#define TARGET_PROMOTE_FUNCTION_ARGS hook_bool_tree_false
#define TARGET_PROMOTE_FUNCTION_RETURN default_promote_function_return
#define TARGET_PROMOTE_PROTOTYPES default_promote_prototypes
......
......@@ -79,16 +79,6 @@ default_cc_modes_compatible (enum machine_mode m1, enum machine_mode m2)
}
bool
default_promote_function_args (tree fntype ATTRIBUTE_UNUSED)
{
#ifdef PROMOTE_FUNCTION_ARGS
return true;
#else
return false;
#endif
}
bool
default_promote_function_return (tree fntype ATTRIBUTE_UNUSED)
{
#ifdef PROMOTE_FUNCTION_RETURN
......@@ -108,38 +98,18 @@ default_promote_prototypes (tree fntype ATTRIBUTE_UNUSED)
}
rtx
default_struct_value_rtx (tree fntype ATTRIBUTE_UNUSED, int incoming)
default_struct_value_rtx (tree fntype ATTRIBUTE_UNUSED,
int incoming ATTRIBUTE_UNUSED)
{
rtx rv = 0;
if (incoming)
{
#ifdef STRUCT_VALUE_INCOMING
rv = STRUCT_VALUE_INCOMING;
#else
#ifdef STRUCT_VALUE
rv = STRUCT_VALUE;
return STRUCT_VALUE;
#else
#ifndef STRUCT_VALUE_REGNUM
abort();
#ifdef STRUCT_VALUE_REGNUM
return gen_rtx_REG (Pmode, STRUCT_VALUE_REGNUM);
#else
rv = gen_rtx_REG (Pmode, STRUCT_VALUE_REGNUM);
#endif
abort ();
#endif
#endif
}
else
{
#ifdef STRUCT_VALUE
rv = STRUCT_VALUE;
#else
#ifndef STRUCT_VALUE_REGNUM
abort();
#else
rv = gen_rtx_REG (Pmode, STRUCT_VALUE_REGNUM);
#endif
#endif
}
return rv;
}
bool
......@@ -179,11 +149,7 @@ default_setup_incoming_varargs (CUMULATIVE_ARGS *ca ATTRIBUTE_UNUSED,
bool
default_strict_argument_naming (CUMULATIVE_ARGS *ca ATTRIBUTE_UNUSED)
{
#ifdef STRICT_ARGUMENT_NAMING
return STRICT_ARGUMENT_NAMING;
#else
return 0;
#endif
return false;
}
bool
......
......@@ -23,7 +23,6 @@ extern void default_external_libcall (rtx);
extern enum machine_mode default_cc_modes_compatible (enum machine_mode,
enum machine_mode);
extern bool default_promote_function_args (tree);
extern bool default_promote_function_return (tree);
extern bool default_promote_prototypes (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