diff options
author | Volker Reichelt <v.reichelt@netcologne.de> | 2008-01-01 23:08:05 +0000 |
---|---|---|
committer | Volker Reichelt <reichelt@gcc.gnu.org> | 2008-01-01 23:08:05 +0000 |
commit | 882e337b65a23a58ce2600f371704c186720b76d (patch) | |
tree | 348b58fc3ab2d8e3497c3ddef018b8abdf9cf8c6 /gcc/tree-mudflap.c | |
parent | 6b7d5ac96951d4b22a27df77c49d863a955eabd0 (diff) | |
download | gcc-882e337b65a23a58ce2600f371704c186720b76d.zip gcc-882e337b65a23a58ce2600f371704c186720b76d.tar.gz gcc-882e337b65a23a58ce2600f371704c186720b76d.tar.bz2 |
re PR libmudflap/26442 (ICE on valid unreachable code (and no name) when compiling with -fmudflap)
PR libmudflap/26442
* tree-mudflap.c (mx_register_decls): Guard warning by
!DECL_ARTIFICIAL check.
* testsuite/libmudflap.c++/pass60-frag.cxx: New test.
From-SVN: r131249
Diffstat (limited to 'gcc/tree-mudflap.c')
-rw-r--r-- | gcc/tree-mudflap.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/tree-mudflap.c b/gcc/tree-mudflap.c index 950ad8c..4b9c118 100644 --- a/gcc/tree-mudflap.c +++ b/gcc/tree-mudflap.c @@ -1045,8 +1045,11 @@ mx_register_decls (tree decl, tree *stmt_list) /* Add the __mf_register call at the current appending point. */ if (tsi_end_p (initially_stmts)) - warning (0, "mudflap cannot track %qs in stub function", - IDENTIFIER_POINTER (DECL_NAME (decl))); + { + if (!DECL_ARTIFICIAL (decl)) + warning (0, "mudflap cannot track %qs in stub function", + IDENTIFIER_POINTER (DECL_NAME (decl))); + } else { tsi_link_before (&initially_stmts, register_fncall, |