]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
alias.c (OUTGOING_REGNO): Don't define the default.
authorKazu Hirata <kazu@cs.umass.edu>
Sat, 21 Feb 2004 00:39:05 +0000 (00:39 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sat, 21 Feb 2004 00:39:05 +0000 (00:39 +0000)
* 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

gcc/ChangeLog
gcc/alias.c
gcc/builtins.c
gcc/combine.c
gcc/defaults.h
gcc/sibcall.c

index 6dd4649f26b55f940efbcf2b4f84624468c3d4c9..9b428ea6034901410edfc656b7e2822292d347cf 100644 (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,
index f0cfe4cf7a3554482d59b980aea6abe241f751b7..e7ace3fab3bd6a850f1ce3a80fe6e0abd737aef4 100644 (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
index a5520a3b97c4dd0a9062487fd4c22f5849d961be..7e5953a955cef056718320ea50daea79cd5697aa 100644 (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,
index a1219de570db5cb80d016a5c4d7b96d07ab8bdd9..8911cb2db327c21c16b535509cf0c09535230dfc 100644 (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
index 57e53f4e6cad92c0b0e66e823e0a89c7737e9c50..551c9783c3e9fe439a0d4353c537a004b9848364 100644 (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 */
index 81509ee9b56e4eea530fbc5d08302b77ba9aa94c..fc9a63f7f862eadf40c62f12d7c065838a576286 100644 (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)