calls.c (emit_library_call_value_1): Fix a problem with parameter alignment for library calls.

* calls.c (emit_library_call_value_1): Fix a problem with parameter
alignment for library calls.

From-SVN: r145586
This commit is contained in:
Hariharan Sandanagobalane 2009-04-06 10:54:42 +00:00 committed by Hariharan Sandanagobalane
parent 1d146030e2
commit 6bdf8c2e53
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
* calls.c (emit_library_call_value_1): Fix a problem with parameter
alignment for library calls.
2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
* config.gcc (mingw32 tm_file): Add mingw-stdint.h.

View File

@ -3634,6 +3634,7 @@ emit_library_call_value_1 (int retval, rtx orgfun, rtx value,
rtx val = argvec[argnum].value;
rtx reg = argvec[argnum].reg;
int partial = argvec[argnum].partial;
unsigned int parm_align = argvec[argnum].locate.boundary;
int lower_bound = 0, upper_bound = 0, i;
if (! (reg != 0 && partial == 0))
@ -3695,7 +3696,7 @@ emit_library_call_value_1 (int retval, rtx orgfun, rtx value,
}
}
emit_push_insn (val, mode, NULL_TREE, NULL_RTX, PARM_BOUNDARY,
emit_push_insn (val, mode, NULL_TREE, NULL_RTX, parm_align,
partial, reg, 0, argblock,
GEN_INT (argvec[argnum].locate.offset.constant),
reg_parm_stack_space,