mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-25 02:05:26 +08:00
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:
parent
1d146030e2
commit
6bdf8c2e53
@ -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.
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user