diff options
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/array-9.c | 10 |
4 files changed, 24 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7f3cd34..5f35ff3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index cb4eaea..a092484 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -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. */ diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7041216..f15d7fc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/gcc/testsuite/gcc.dg/array-9.c b/gcc/testsuite/gcc.dg/array-9.c new file mode 100644 index 0000000..f173f65 --- /dev/null +++ b/gcc/testsuite/gcc.dg/array-9.c @@ -0,0 +1,10 @@ +/* PR target/27421 */ +/* { dg-do compile } */ + +struct A +{ + int i; + void x[1]; /* { dg-error "array of voids" } */ +}; + +void foo(struct A a) {} |