alias.c (OUTGOING_REGNO): Don't define the default.

* alias.c (OUTGOING_REGNO): Don't define the default.
	* builtins.c (OUTGOING_REGNO): Likewise.
	(INCOMING_REGNO): Likewise.
	(apply_args_register_offset): Always use OUTGOING_REGNO.
	* combine.c (OUTGOING_REGNO): Likewise.
	* sibcall.c (OUTGOING_REGNO): Likewise.
	* defaults.h (INCOMING_REGNO): Provide the default.
	(OUTGOING_REGNO): Likewise.

From-SVN: r78203
This commit is contained in:
Kazu Hirata 2004-02-21 00:39:05 +00:00 committed by Kazu Hirata
parent 701ad47e98
commit d220de0ed2
6 changed files with 21 additions and 22 deletions

View File

@ -1,3 +1,14 @@
2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
* alias.c (OUTGOING_REGNO): Don't define the default.
* builtins.c (OUTGOING_REGNO): Likewise.
(INCOMING_REGNO): Likewise.
(apply_args_register_offset): Always use OUTGOING_REGNO.
* combine.c (OUTGOING_REGNO): Likewise.
* sibcall.c (OUTGOING_REGNO): Likewise.
* defaults.h (INCOMING_REGNO): Provide the default.
(OUTGOING_REGNO): Likewise.
2004-02-21 Jan Hubicka <jh@suse.cz>
* params.def (max-peeled-insns, max-completely-peeled-insns,

View File

@ -2661,9 +2661,6 @@ init_alias_once (void)
{
int i;
#ifndef OUTGOING_REGNO
#define OUTGOING_REGNO(N) N
#endif
for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
/* Check whether this register can hold an incoming pointer
argument. FUNCTION_ARG_REGNO_P tests outgoing register

View File

@ -48,14 +48,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#define CALLED_AS_BUILT_IN(NODE) \
(!strncmp (IDENTIFIER_POINTER (DECL_NAME (NODE)), "__builtin_", 10))
/* Register mappings for target machines without register windows. */
#ifndef INCOMING_REGNO
#define INCOMING_REGNO(OUT) (OUT)
#endif
#ifndef OUTGOING_REGNO
#define OUTGOING_REGNO(IN) (IN)
#endif
#ifndef PAD_VARARGS_DOWN
#define PAD_VARARGS_DOWN BYTES_BIG_ENDIAN
#endif
@ -902,10 +894,7 @@ apply_args_register_offset (int regno)
/* Arguments are always put in outgoing registers (in the argument
block) if such make sense. */
#ifdef OUTGOING_REGNO
regno = OUTGOING_REGNO (regno);
#endif
return apply_args_reg_offset[regno];
return apply_args_reg_offset[OUTGOING_REGNO (regno)];
}
/* Return the size required for the block returned by __builtin_apply_args,

View File

@ -813,9 +813,6 @@ setup_incoming_promotions (void)
if (targetm.calls.promote_function_args (TREE_TYPE (cfun->decl)))
{
#ifndef OUTGOING_REGNO
#define OUTGOING_REGNO(N) N
#endif
for (regno = 0; regno < FIRST_PSEUDO_REGISTER; regno++)
/* Check whether this register can hold an incoming pointer
argument. FUNCTION_ARG_REGNO_P tests outgoing register

View File

@ -690,4 +690,13 @@ You Lose! You must define PREFERRED_DEBUGGING_TYPE!
#define CASE_VECTOR_PC_RELATIVE 0
#endif
/* Register mappings for target machines without register windows. */
#ifndef INCOMING_REGNO
#define INCOMING_REGNO(N) (N)
#endif
#ifndef OUTGOING_REGNO
#define OUTGOING_REGNO(N) (N)
#endif
#endif /* ! GCC_DEFAULTS_H */

View File

@ -174,10 +174,6 @@ skip_copy_to_return_value (rtx orig_insn)
called function's return value was copied. Otherwise we're returning
some other value. */
#ifndef OUTGOING_REGNO
#define OUTGOING_REGNO(N) (N)
#endif
if (SET_DEST (set) == current_function_return_rtx
&& REG_P (SET_DEST (set))
&& OUTGOING_REGNO (REGNO (SET_DEST (set))) == REGNO (hardret)