From 971801fff6d8eb0df1486fa6b77ba4cfc4616305 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 15 Sep 2004 21:48:10 +0100 Subject: attribs.c, [...]: Use %<, %> and %q for quoting in diagnostics going through pretty-print.c. gcc: * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c, except.c, fold-const.c, function.c, langhooks.c, params.c, reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c, tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q for quoting in diagnostics going through pretty-print.c. Use '' for quoting in other diagnostic text. * langhooks.c: Include intl.h. Mark text locating diagnostics for translation. * Makefile.in (langhooks.o): Update dependencies. * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic formats. gcc/testsuite: * g++.dg/ext/member-attr.C, g++.dg/warn/deprecated.C, gcc.dg/deprecated.c, gcc.dg/noreturn-1.c, gcc.dg/noreturn-4.c: Update expected messages. libmudflap: * testsuite/libmudflap.c/pass35-frag.c: Update expected message. From-SVN: r87563 --- gcc/reload.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'gcc/reload.c') diff --git a/gcc/reload.c b/gcc/reload.c index 990cf20..f3c5978 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -1254,7 +1254,8 @@ push_reload (rtx in, rtx out, rtx *inloc, rtx *outloc, mode = outmode; if (mode == VOIDmode) { - error_for_asm (this_insn, "cannot reload integer constant operand in `asm'"); + error_for_asm (this_insn, "cannot reload integer constant " + "operand in %"); mode = word_mode; if (in != 0) inmode = word_mode; @@ -1276,7 +1277,8 @@ push_reload (rtx in, rtx out, rtx *inloc, rtx *outloc, } if (i == FIRST_PSEUDO_REGISTER) { - error_for_asm (this_insn, "impossible register constraint in `asm'"); + error_for_asm (this_insn, "impossible register constraint " + "in %"); class = ALL_REGS; } } @@ -3513,7 +3515,7 @@ find_reloads (rtx insn, int replace, int ind_levels, int live_known, this_alternative_earlyclobber[i] = 0; gcc_assert (this_insn_is_asm); error_for_asm (this_insn, - "`&' constraint used with no register class"); + "%<&%> constraint used with no register class"); } for (j = 0; j < noperands; j++) @@ -3680,7 +3682,7 @@ find_reloads (rtx insn, int replace, int ind_levels, int live_known, /* No alternative works with reloads?? */ if (insn_code_number >= 0) fatal_insn ("unable to generate reloads for:", insn); - error_for_asm (insn, "inconsistent operand constraints in an `asm'"); + error_for_asm (insn, "inconsistent operand constraints in an %"); /* Avoid further trouble with this insn. */ PATTERN (insn) = gen_rtx_USE (VOIDmode, const0_rtx); n_reloads = 0; @@ -3891,7 +3893,8 @@ find_reloads (rtx insn, int replace, int ind_levels, int live_known, else { gcc_assert (insn_code_number < 0); - error_for_asm (insn, "inconsistent operand constraints in an `asm'"); + error_for_asm (insn, "inconsistent operand constraints " + "in an %"); /* Avoid further trouble with this insn. */ PATTERN (insn) = gen_rtx_USE (VOIDmode, const0_rtx); n_reloads = 0; -- cgit v1.1