OSDN Git Service

John Tytgat <John.Tytgat@aaug.net>
authorrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 31 Jul 2010 14:27:53 +0000 (14:27 +0000)
committerrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 31 Jul 2010 14:27:53 +0000 (14:27 +0000)
* config/arm/arm.c (arm_function_arg): Remove superfluous test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162782 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/arm/arm.c

index ded4933..250eb86 100644 (file)
@@ -1,3 +1,7 @@
+2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
+
+       * config/arm/arm.c (arm_function_arg): Remove superfluous test.
+
 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
 
        * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
index 186b0c6..4ba97f5 100644 (file)
@@ -4488,10 +4488,6 @@ arm_function_arg (CUMULATIVE_ARGS *pcum, enum machine_mode mode,
       && arm_needs_doubleword_align (mode, type))
     pcum->nregs++;
 
-  if (mode == VOIDmode)
-    /* Pick an arbitrary value for operand 2 of the call insn.  */
-    return const0_rtx;
-
   /* Only allow splitting an arg between regs and memory if all preceding
      args were allocated to regs.  For args passed by reference we only count
      the reference pointer.  */