* i386.c (classify_argument): Handle variable sized objects.

From-SVN: r56609
This commit is contained in:
Jan Hubicka 2002-08-27 19:52:41 +02:00 committed by Jan Hubicka
parent 49c3c980ca
commit c60ee6f503
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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;