On 11/09/2017 05:24 AM, marxin wrote:
gcc/ChangeLog:

2017-11-09  Martin Liska  <mli...@suse.cz>

        * gcov.c (is_artificial): New function.
        (process_file): Erase all artificial early.
        (generate_results): Skip as all artificial are already
        removed.
---
  gcc/gcov.c | 66 +++++++++++++++++++++++++++++++++++++-------------------------
  1 file changed, 40 insertions(+), 26 deletions(-)

diff --git a/gcc/gcov.c b/gcc/gcov.c
index 83239639247..3dc159726c7 100644
--- a/gcc/gcov.c
+++ b/gcc/gcov.c
@@ -1088,6 +1088,14 @@ struct function_start_pair_hash : typed_noop_remove 
<function_start>
    }
  };
+/* Function filter based on function_info::artificial variable. */
+
+static bool
+is_artificial (function_info *fn)
+{
+  return fn->artificial;
+}

couldn't this be a member fn of function_info?


--
Nathan Sidwell

Reply via email to