aboutsummaryrefslogtreecommitdiff
path: root/libgcc/libgcov-driver.c
diff options
context:
space:
mode:
authorAaron Conole <aconole@redhat.com>2016-06-02 12:22:01 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2016-06-02 12:22:01 +0000
commit8aa5bdd61e96a7adeec6dad22847be27faad7122 (patch)
tree3d70d4e52b2e726d7ebe1241651fedc71dfd0812 /libgcc/libgcov-driver.c
parent930ebd0e2a99523b7991c71436e58bdf1dc43fe3 (diff)
downloadgcc-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.c8
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