aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>2006-03-22 21:45:13 +0000
committerVolker Reichelt <reichelt@gcc.gnu.org>2006-03-22 21:45:13 +0000
commit7a7526409d1ffd44c982b0bcfbeea4e1ea65a17c (patch)
treef16821ab6a33fa98a8eb1c8c04debbc73ea27035
parent698cf1c8f8672e4fb46365d8506ac9a63e54efc6 (diff)
downloadgcc-7a7526409d1ffd44c982b0bcfbeea4e1ea65a17c.zip
gcc-7a7526409d1ffd44c982b0bcfbeea4e1ea65a17c.tar.gz
gcc-7a7526409d1ffd44c982b0bcfbeea4e1ea65a17c.tar.bz2
re PR c++/26790 (ICE with -fmudflap returning an incomplete struct)
PR mudflap/26790 * tree-mudflap.c (mudflap_finish_file): Skip erroneous objects. From-SVN: r112298
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/tree-mudflap.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0d8b00d..920ab12 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
2006-03-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
+ PR mudflap/26790
+ * tree-mudflap.c (mudflap_finish_file): Skip erroneous objects.
+
PR mudflap/26789
* tree-mudflap.c (mf_xform_derefs_1): Return early on error_mark_node.
diff --git a/gcc/tree-mudflap.c b/gcc/tree-mudflap.c
index f1009ba..245b940 100644
--- a/gcc/tree-mudflap.c
+++ b/gcc/tree-mudflap.c
@@ -1256,6 +1256,9 @@ mudflap_finish_file (void)
{
gcc_assert (DECL_P (obj));
+ if (TREE_TYPE (obj) == error_mark_node)
+ continue;
+
if (mf_marked_p (obj))
continue;