X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gcc%2Fgcov-tool.c;h=ce96db0f42cd69373f646eb0e8cd0762b8a186d5;hb=b7c41230322051912d979e132c52100158745b73;hp=5bb1ccac6be8a316af847432aa92b1e1cf8fbcaa;hpb=a5544970246db337977bb8b69ab120e9ef209317;p=gcc.git diff --git a/gcc/gcov-tool.c b/gcc/gcov-tool.c index 5bb1ccac6be..ce96db0f42c 100644 --- a/gcc/gcov-tool.c +++ b/gcc/gcov-tool.c @@ -70,7 +70,7 @@ unlink_gcda_file (const char *name, ret = remove (name); if (ret) - fatal_error (input_location, "error in removing %s\n", name); + fatal_error (input_location, "error in removing %s", name); return ret; } @@ -188,7 +188,7 @@ static const struct option merge_options[] = /* Print merge usage and exit. */ -static void +static void ATTRIBUTE_NORETURN merge_usage (void) { fnotice (stderr, "Merge subcomand usage:"); @@ -220,7 +220,7 @@ do_merge (int argc, char **argv) case 'w': sscanf (optarg, "%d,%d", &w1, &w2); if (w1 < 0 || w2 < 0) - fatal_error (input_location, "weights need to be non-negative\n"); + fatal_error (input_location, "weights need to be non-negative"); break; default: merge_usage (); @@ -284,7 +284,7 @@ static const struct option rewrite_options[] = /* Print profile rewrite usage and exit. */ -static void +static void ATTRIBUTE_NORETURN rewrite_usage (void) { fnotice (stderr, "Rewrite subcommand usage:"); @@ -355,7 +355,7 @@ do_rewrite (int argc, char **argv) } if (scale < 0.0) - fatal_error (input_location, "scale needs to be non-negative\n"); + fatal_error (input_location, "scale needs to be non-negative"); if (normalize_val != 0) {