aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcov.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2003-04-20 11:57:38 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2003-04-20 11:57:38 +0000
commit299f79b5a0748924f00ea910999fc4b7fcc64f3b (patch)
tree6df1380397d5413a13bae6c8718beff0cc10f10f /gcc/gcov.c
parentde0c0e694f430d942db00e60e6218d9e1715f119 (diff)
downloadgcc-299f79b5a0748924f00ea910999fc4b7fcc64f3b.zip
gcc-299f79b5a0748924f00ea910999fc4b7fcc64f3b.tar.gz
gcc-299f79b5a0748924f00ea910999fc4b7fcc64f3b.tar.bz2
cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
.: * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens. * gcov.c (output_lines): Don't be so fussy about going past EOF. cp: * cp/decl2.c (start_static_storage_duration_function): Take count arg, don't check if it wraps round. (generate_ctor_or_dtor_function): Add locus arg, use it. (generate_ctor_and_dtor_functions_for_priority): Data arg is a locus. (finish_file): Set line numbers to past EOF for synthesized functions. From-SVN: r65847
Diffstat (limited to 'gcc/gcov.c')
-rw-r--r--gcc/gcov.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/gcov.c b/gcc/gcov.c
index b6cbbc8..d24979f 100644
--- a/gcc/gcov.c
+++ b/gcc/gcov.c
@@ -1862,16 +1862,13 @@ output_lines (gcov_file, src)
{
retval = fgets (string, STRING_SIZE, source_file);
if (!retval)
- {
- fnotice (stderr, "%s:unexpected EOF\n", src->name);
- break;
- }
+ break;
fputs (retval, gcov_file);
}
while (!retval[0] || retval[strlen (retval) - 1] != '\n');
}
if (!retval)
- fputs ("??\n", gcov_file);
+ fputs ("/*EOF*/\n", gcov_file);
if (flag_all_blocks)
{