From: Volker Reichelt Date: Wed, 22 Mar 2006 21:42:34 +0000 (+0000) Subject: re PR c++/26789 (ICE on incomplete struct with -fmudflap) X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=698cf1c8f8672e4fb46365d8506ac9a63e54efc6;p=platform%2Fupstream%2Fgcc.git re PR c++/26789 (ICE on incomplete struct with -fmudflap) PR mudflap/26789 * tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node. From-SVN: r112296 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fe517ce..0d8b00d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2006-03-22 Volker Reichelt + PR mudflap/26789 + * tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node. + +2006-03-22 Volker Reichelt + PR driver/22600 * system.h (ICE_EXIT_CODE): New macro. * diagnostic.c (diagnostic_count_diagnostic): Exit with ICE_EXIT_CODE. diff --git a/gcc/tree-mudflap.c b/gcc/tree-mudflap.c index 5a1444d..f1009ba 100644 --- a/gcc/tree-mudflap.c +++ b/gcc/tree-mudflap.c @@ -728,6 +728,10 @@ mf_xform_derefs_1 (block_stmt_iterator *iter, tree *tp, t = *tp; type = TREE_TYPE (t); + + if (type == error_mark_node) + return; + size = TYPE_SIZE_UNIT (type); switch (TREE_CODE (t))