diff options
author | reichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-01 23:08:05 +0000 |
---|---|---|
committer | reichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-01 23:08:05 +0000 |
commit | 65e47be24b4c0164407f73a1a6d6baa87946ec13 (patch) | |
tree | 348b58fc3ab2d8e3497c3ddef018b8abdf9cf8c6 /gcc/tree-mudflap.c | |
parent | 03506b9583184019a34be69f89533520de04d233 (diff) | |
download | gcc-65e47be24b4c0164407f73a1a6d6baa87946ec13.tar.gz |
PR libmudflap/26442
* tree-mudflap.c (mx_register_decls): Guard warning by
!DECL_ARTIFICIAL check.
* testsuite/libmudflap.c++/pass60-frag.cxx: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131249 138bc75d-0d04-0410-961f-82ee72b054a4
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 950ad8c2fd5..4b9c11830ba 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, |