* 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
+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,
{
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
#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
/* 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,
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
#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 */
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)