* hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
structures passed in registers.
This commit is contained in:
parent
82cc503325
commit
b6649e8838
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2002-01-13 Andrew Cagney <ac131313@redhat.com>
|
||||||
|
|
||||||
|
From Jeff law:
|
||||||
|
* hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
|
||||||
|
structures passed in registers.
|
||||||
|
|
||||||
2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
|
2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
|
||||||
|
|
||||||
* go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
|
* go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
|
||||||
|
|
|
@ -1815,7 +1815,8 @@ hppa_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
|
||||||
target. */
|
target. */
|
||||||
bytes_reserved = (lengths[i] + REGISTER_SIZE - 1) & -REGISTER_SIZE;
|
bytes_reserved = (lengths[i] + REGISTER_SIZE - 1) & -REGISTER_SIZE;
|
||||||
|
|
||||||
offset[i] = cum_bytes_reserved + lengths[i];
|
offset[i] = (cum_bytes_reserved
|
||||||
|
+ (lengths[i] > 4 ? bytes_reserved : lengths[i]));
|
||||||
|
|
||||||
/* If the argument is a double word argument, then it needs to be
|
/* If the argument is a double word argument, then it needs to be
|
||||||
double word aligned. */
|
double word aligned. */
|
||||||
|
|
Loading…
Reference in a new issue