diff options
author | Josh Stone <jistone@redhat.com> | 2010-02-26 16:25:45 -0800 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2010-02-26 16:25:45 -0800 |
commit | 59de45f155d78e08f55e5ee5e16c24af40f20e5a (patch) | |
tree | 4fe2f2a12291a7140949701695a45b8a0588e662 /tapset-procfs.cxx | |
parent | 7f9ad862adbbc75b5e7501173db702ef09ac18ce (diff) | |
download | systemtap-steved-59de45f155d78e08f55e5ee5e16c24af40f20e5a.tar.gz systemtap-steved-59de45f155d78e08f55e5ee5e16c24af40f20e5a.tar.xz systemtap-steved-59de45f155d78e08f55e5ee5e16c24af40f20e5a.zip |
Squash elision warnings on synthetic functions
* staptree.h (functiondecl): Add a synthetic flag.
* elaborate.cxx (semantic_pass_opt1): Don't warn about synthetic funcs.
* tapsets.cxx (dwarf_var_expanding_visitor::visit_target_symbol): Mark
the new function as synthetic.
(dwarf_cast_expanding_visitor::visit_cast_op): Ditto.
(tracepoint_var_expanding_visitor::visit_target_symbol_arg): Ditto.
* tapset-perfmon.cxx
(perfmon_var_expanding_visitor::visit_target_symbol): Ditto.
* tapset-procfs.cxx (procfs_var_expanding_visitor::visit_target_symbol):
Ditto.
* testsuite/semok/thirtyeight.stp: New check with -W and @defined.
Diffstat (limited to 'tapset-procfs.cxx')
-rw-r--r-- | tapset-procfs.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tapset-procfs.cxx b/tapset-procfs.cxx index 1ac67e53..aea01a7a 100644 --- a/tapset-procfs.cxx +++ b/tapset-procfs.cxx @@ -444,6 +444,7 @@ procfs_var_expanding_visitor::visit_target_symbol (target_symbol* e) // Synthesize a function. functiondecl *fdecl = new functiondecl; + fdecl->synthetic = true; fdecl->tok = e->tok; embeddedcode *ec = new embeddedcode; ec->tok = e->tok; |