diff options
author | Martin Liska <mliska@suse.cz> | 2016-09-27 15:22:04 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2016-09-27 13:22:04 +0000 |
commit | bebe00865b2220d5422a461da9ba00dd996faed6 (patch) | |
tree | a350b8ac8a20df6b4c2255393b3c04ce3e4310f4 /gcc/input.h | |
parent | b51fe6a98e93c424e709759cf78452e2e701362e (diff) |
re PR gcov-profile/46266 (gcov generates data for non-existing file <built-in>)
Fix PR gcov-profile/46266
PR gcov-profile/46266
* lib/gcov.exp: Verify that <built-in>.gcov file is not
considered.
* input.h (RESERVED_LOCATION_P): New macro.
* profile.c (branch_prob): Use RESERVED_LOCATION_P and
instread of comparison with UNKNOWN_LOCATION.
From-SVN: r240536
Diffstat (limited to 'gcc/input.h')
-rw-r--r-- | gcc/input.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/input.h b/gcc/input.h index fe80605967e..6ce0b812b5e 100644 --- a/gcc/input.h +++ b/gcc/input.h @@ -61,6 +61,8 @@ extern location_t input_location; #define LOCATION_BLOCK(LOC) \ ((tree) ((IS_ADHOC_LOC (LOC)) ? get_data_from_adhoc_loc (line_table, (LOC)) \ : NULL)) +#define RESERVED_LOCATION_P(LOC) \ + (LOCATION_LOCUS (LOC) < RESERVED_LOCATION_COUNT) /* Return a positive value if LOCATION is the locus of a token that is located in a system header, O otherwise. It returns 1 if LOCATION |