combine.c (setup_incoming_promotions): Pass an outgoing regno to FUNCTION_ARG_REGNO_P which it expects.

* combine.c (setup_incoming_promotions): Pass an outgoing
        regno to FUNCTION_ARG_REGNO_P which it expects.

From-SVN: r30685
This commit is contained in:
Jakub Jelinek 1999-11-28 09:08:02 +01:00 committed by Jeff Law
parent 3fad8d4ad6
commit c285f57a29
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
1999-11-28 Jakub Jelinek <jakub@redhat.com>
* combine.c (setup_incoming_promotions): Pass an outgoing
regno to FUNCTION_ARG_REGNO_P which it expects.
1999-11-28 Andreas Jaeger <aj@suse.de>
* mips/linux.h (CPP_PREDEFINES): Undefine before redefining.

View File

@ -768,8 +768,14 @@ setup_incoming_promotions ()
int unsignedp;
rtx first = get_insns ();
#ifndef OUTGOING_REGNO
#define OUTGOING_REGNO(N) N
#endif
for (regno = 0; regno < FIRST_PSEUDO_REGISTER; regno++)
if (FUNCTION_ARG_REGNO_P (regno)
/* Check whether this register can hold an incoming pointer
argument. FUNCTION_ARG_REGNO_P tests outgoing register
numbers, so translate if necessary due to register windows. */
if (FUNCTION_ARG_REGNO_P (OUTGOING_REGNO (regno))
&& (reg = promoted_input_arg (regno, &mode, &unsignedp)) != 0)
{
record_value_for_reg