mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-10 01:46:58 +08:00
* i386.c (classify_argument): Handle variable sized objects.
From-SVN: r56609
This commit is contained in:
parent
49c3c980ca
commit
c60ee6f503
@ -1,3 +1,7 @@
|
||||
Tue Aug 27 19:51:05 CEST 2002 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* i386.c (classify_argument): Handle variable sized objects.
|
||||
|
||||
Tue Aug 27 19:18:16 CEST 2002 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* i386.c (ix86_expand_int_movcc): Fix RTL sharing problem
|
||||
|
@ -1594,6 +1594,10 @@ classify_argument (mode, type, classes, bit_offset)
|
||||
(mode == BLKmode) ? int_size_in_bytes (type) : (int) GET_MODE_SIZE (mode);
|
||||
int words = (bytes + (bit_offset % 64) / 8 + UNITS_PER_WORD - 1) / UNITS_PER_WORD;
|
||||
|
||||
/* Variable sized entities are always passed/returned in memory. */
|
||||
if (bytes < 0)
|
||||
return 0;
|
||||
|
||||
if (type && AGGREGATE_TYPE_P (type))
|
||||
{
|
||||
int i;
|
||||
|
Loading…
Reference in New Issue
Block a user