From 3d80fcaa4a258cb030dca0f1b92ef1b03b06c850 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Tue, 11 Sep 2018 21:34:14 +0000 Subject: [PATCH] * gcc.c (load_specs, execute, run_attempt): Use %qs not '%s'. From-SVN: r264217 --- gcc/ChangeLog | 4 ++++ gcc/gcc.c | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ccadf68adfc..17aa2a10da6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-09-11 Nathan Sidwell + + * gcc.c (load_specs, execute, run_attempt): Use %qs not '%s'. + 2018-09-11 Uros Bizjak * reg-stack.c (subst_asm_stack_regs): Call replace_reg also diff --git a/gcc/gcc.c b/gcc/gcc.c index 7532a2e1fc5..8be82eaa04f 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -2102,7 +2102,7 @@ load_specs (const char *filename) { failed: /* This leaves DESC open, but the OS will save us. */ - fatal_error (input_location, "cannot read spec file '%s': %m", filename); + fatal_error (input_location, "cannot read spec file %qs: %m", filename); } if (stat (filename, &statbuf) < 0) @@ -3174,8 +3174,8 @@ execute (void) { errno = err; fatal_error (input_location, - err ? G_("cannot execute '%s' %s: %m") - : G_("cannot execute '%s' %s"), + err ? G_("cannot execute %qs: %s: %m") + : G_("cannot execute %qs: %s"), string, errmsg); } @@ -6887,8 +6887,8 @@ run_attempt (const char **new_argv, const char *out_temp, { errno = err; fatal_error (input_location, - err ? G_ ("cannot execute '%s' %s: %m") - : G_ ("cannot execute '%s' %s"), + err ? G_ ("cannot execute %qs: %s: %m") + : G_ ("cannot execute %qs: %s"), new_argv[0], errmsg); } -- 2.30.2