summaryrefslogtreecommitdiff
path: root/gcc/gcov.c
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-20 11:57:38 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-20 11:57:38 +0000
commit911483bc888edb37da87535a6d09e1a9f0e46da6 (patch)
tree6df1380397d5413a13bae6c8718beff0cc10f10f /gcc/gcov.c
parent03c8911ca0554955d34dc4dc439cd50b705c0134 (diff)
downloadgcc-911483bc888edb37da87535a6d09e1a9f0e46da6.tar.gz
.:
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65847 138bc75d-0d04-0410-961f-82ee72b054a4
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 b6cbbc80b74..d24979fc6fd 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)
{