diff options
author | Volker Reichelt <reichelt@igpm.rwth-aachen.de> | 2006-06-08 20:50:24 +0000 |
---|---|---|
committer | Volker Reichelt <reichelt@gcc.gnu.org> | 2006-06-08 20:50:24 +0000 |
commit | 118ed72a74d69564dae5b8113379910357c916e8 (patch) | |
tree | 9ae5971ebde4c7f43cb7e2ac99599537b10f193f /gcc/config | |
parent | 524e3576e6eb211269030ce38e61a23274b3b63f (diff) | |
download | gcc-118ed72a74d69564dae5b8113379910357c916e8.zip gcc-118ed72a74d69564dae5b8113379910357c916e8.tar.gz gcc-118ed72a74d69564dae5b8113379910357c916e8.tar.bz2 |
re PR target/27421 (ICE with invalid array in struct)
PR target/27421
* config/i386/i386.c (classify_argument): Skip fields with invalid
types in unions.
* gcc.dg/union-3.c: New test.
From-SVN: r114494
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/i386/i386.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 743535c..7903cb2 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -3045,6 +3045,10 @@ classify_argument (enum machine_mode mode, tree type, if (TREE_CODE (field) == FIELD_DECL) { int num; + + if (TREE_TYPE (field) == error_mark_node) + continue; + num = classify_argument (TYPE_MODE (TREE_TYPE (field)), TREE_TYPE (field), subclasses, bit_offset); |