diff options
author | Aaron Conole <aconole@redhat.com> | 2016-06-02 12:22:01 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2016-06-02 12:22:01 +0000 |
commit | 8aa5bdd61e96a7adeec6dad22847be27faad7122 (patch) | |
tree | 3d70d4e52b2e726d7ebe1241651fedc71dfd0812 /libgcc/libgcov-driver.c | |
parent | 930ebd0e2a99523b7991c71436e58bdf1dc43fe3 (diff) | |
download | gcc-8aa5bdd61e96a7adeec6dad22847be27faad7122.zip gcc-8aa5bdd61e96a7adeec6dad22847be27faad7122.tar.gz gcc-8aa5bdd61e96a7adeec6dad22847be27faad7122.tar.bz2 |
On behalf of Aaron Conole <aconole@redhat.com>
On behalf of Aaron Conole <aconole@redhat.com>
* libgcov-driver-system.c (__gcov_error_file): New.
(get_gcov_error_file): New.
(gcov_error): Use and set __gcov_error_file.
(gcov_error_exit): New.
* libgcov-driver.c (gcov_exit): Call gcov_error_exit.
From-SVN: r237033
Diffstat (limited to 'libgcc/libgcov-driver.c')
-rw-r--r-- | libgcc/libgcov-driver.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libgcc/libgcov-driver.c b/libgcc/libgcov-driver.c index 9c4eeca..d51397e 100644 --- a/libgcc/libgcov-driver.c +++ b/libgcc/libgcov-driver.c @@ -43,9 +43,13 @@ void __gcov_init (struct gcov_info *p __attribute__ ((unused))) {} #ifdef L_gcov -/* A utility function for outputing errors. */ +/* A utility function for outputting errors. */ static int gcov_error (const char *, ...); +#if !IN_GCOV_TOOL +static void gcov_error_exit (void); +#endif + #include "gcov-io.c" struct gcov_fn_buffer @@ -878,6 +882,8 @@ gcov_exit (void) __gcov_root.prev->next = __gcov_root.next; else __gcov_master.root = __gcov_root.next; + + gcov_error_exit (); } /* Add a new object file onto the bb chain. Invoked automatically |