* config/h8300/h8300.c (function_arg): Remove redundant code.
authorKazu Hirata <kazu@hxi.com>
Sun, 27 Jan 2002 06:33:17 +0000 (06:33 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sun, 27 Jan 2002 06:33:17 +0000 (06:33 +0000)
From-SVN: r49263

gcc/ChangeLog
gcc/config/h8300/h8300.c

index 1241b5eab7b90016b4d0c2a89f26fa8ca9ef3773..1da14d9f739a279fd2b2a32964febcb89e66ccd2 100644 (file)
@@ -1,3 +1,7 @@
+2002-01-27  Kazu Hirata  <kazu@hxi.com>
+
+       * config/h8300/h8300.c (function_arg): Remove redundant code.
+
 2002-01-26  Richard Henderson  <rth@redhat.com>
 
        * sched-deps.c (reg_pending_uses_head): New.
index 87d2ef4e68b4b8a0d9b406982cbcfc492a555159..8df52908c888def7149cd0353d65ea21435e27d1 100644 (file)
@@ -861,24 +861,9 @@ function_arg (cum, mode, type, named)
       else
        size = GET_MODE_SIZE (mode);
 
-      if (size + cum->nbytes <= regpass * UNITS_PER_WORD)
-       {
-         switch (cum->nbytes / UNITS_PER_WORD)
-           {
-           case 0:
-             result = gen_rtx_REG (mode, 0);
-             break;
-           case 1:
-             result = gen_rtx_REG (mode, 1);
-             break;
-           case 2:
-             result = gen_rtx_REG (mode, 2);
-             break;
-           case 3:
-             result = gen_rtx_REG (mode, 3);
-             break;
-           }
-       }
+      if (size + cum->nbytes <= regpass * UNITS_PER_WORD
+         && cum->nbytes / UNITS_PER_WORD <= 3)
+       result = gen_rtx_REG (mode, cum->nbytes / UNITS_PER_WORD);
     }
 
   return result;