aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1997-03-28 22:36:53 +0000
committerDoug Evans <dje@gnu.org>1997-03-28 22:36:53 +0000
commit9b53bc830d1742473e40a722d634118b11e199b5 (patch)
tree33ee25d6a2cde035d49aed68b1b66700c8fe233f
parent82e415a358f4c91851c7a0c194b159bd82edf116 (diff)
downloadgcc-9b53bc830d1742473e40a722d634118b11e199b5.zip
gcc-9b53bc830d1742473e40a722d634118b11e199b5.tar.gz
gcc-9b53bc830d1742473e40a722d634118b11e199b5.tar.bz2
integrate.c (expand_inline_function): Output NOTE_REPEATED_LINE_NUMBER after inlined call.
* integrate.c (expand_inline_function): Output NOTE_REPEATED_LINE_NUMBER after inlined call. From-SVN: r13816
-rw-r--r--gcc/integrate.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c
index 4bb1bc5..831a695 100644
--- a/gcc/integrate.c
+++ b/gcc/integrate.c
@@ -1999,6 +1999,16 @@ expand_inline_function (fndecl, parms, target, ignore, type,
BLOCK_ABSTRACT_ORIGIN (block) = (DECL_ABSTRACT_ORIGIN (fndecl) == NULL
? fndecl : DECL_ABSTRACT_ORIGIN (fndecl));
poplevel (0, 0, 0);
+
+ /* Must mark the line number note after inlined functions as a repeat, so
+ that the test coverage code can avoid counting the call twice. This
+ just tells the code to ignore the immediately following line note, since
+ there already exists a copy of this note before the expanded inline call.
+ This line number note is still needed for debugging though, so we can't
+ delete it. */
+ if (flag_test_coverage)
+ emit_note (0, NOTE_REPEATED_LINE_NUMBER);
+
emit_line_note (input_filename, lineno);
if (structure_value_addr)