Commit f7360901 by Volker Reichelt Committed by Volker Reichelt

re PR target/27421 (ICE with invalid array in struct)

	PR target/27421
	* config/i386/i386.c (classify_argument): Skip fields with invalid
	types.

	* gcc.dg/array-9.c: New test.

From-SVN: r113609
parent 18455d17
2006-05-07 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR target/27421
* config/i386/i386.c (classify_argument): Skip fields with invalid
types.
2006-05-07 Richard Guenther <rguenther@suse.de>
PR tree-optimization/27409
......
......@@ -2961,6 +2961,9 @@ classify_argument (enum machine_mode mode, tree type,
{
int num;
if (TREE_TYPE (field) == error_mark_node)
continue;
/* Bitfields are always classified as integer. Handle them
early, since later code would consider them to be
misaligned integers. */
......
2006-05-07 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR target/27421
* gcc.dg/array-9.c: New test.
2006-05-07 Richard Guenther <rguenther@suse.de>
PR tree-optimization/27409
/* PR target/27421 */
/* { dg-do compile } */
struct A
{
int i;
void x[1]; /* { dg-error "array of voids" } */
};
void foo(struct A a) {}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment