Commit 9598face authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Closer to getting GCOV back on panics: Now try global __gcov_flush()

parent 2f8e7967
......@@ -64,7 +64,7 @@
*/
#ifdef GCOVING
int __llvm_gcov_flush(void);
int __gcov_flush(void);
#endif
static struct vsb pan_vsb_storage, *pan_vsb;
......@@ -816,7 +816,7 @@ pan_ic(const char *func, const char *file, int line, const char *cond,
VSB_putc(pan_vsb, '\0'); /* NUL termination */
#ifdef GCOVING
__llvm_gcov_flush();
__gcov_flush();
#endif
abort();
}
......
......@@ -64,7 +64,7 @@ static const struct cli_cmd_desc *cmds[] = {
};
#ifdef GCOVING
int __llvm_gcov_flush(void);
int __gcov_flush(void);
#endif
static const int ncmds = sizeof cmds / sizeof cmds[0];
......@@ -113,7 +113,7 @@ mcf_panic(struct cli *cli, const char * const *av, void *priv)
(void)av;
(void)priv;
#ifdef GCOVING
__llvm_gcov_flush();
__gcov_flush();
#endif
AZ(strcmp("", "You asked for it"));
/* NOTREACHED */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment