re PR target/61656 (Undefined behavior in classify_argument)

PR target/61656
	* config/i386/i386.c (classify_argument): Don't merge classes above
	number of words.

From-SVN: r212509
This commit is contained in:
Jakub Jelinek 2014-07-14 09:31:57 +02:00 committed by Jakub Jelinek
parent e89ff446df
commit 03e0ad94a2
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2014-07-14 Jakub Jelinek <jakub@redhat.com>
PR target/61656
* config/i386/i386.c (classify_argument): Don't merge classes above
number of words.
2014-07-13 Jan Hubicka <hubicka@ucw.cz>
* cgraph.h (symtab_node): Add nonzero_address.

View File

@ -6581,7 +6581,7 @@ classify_argument (enum machine_mode mode, const_tree type,
bit_offset);
if (!num)
return 0;
for (i = 0; i < num; i++)
for (i = 0; i < num && i < words; i++)
classes[i] = merge_classes (subclasses[i], classes[i]);
}
}