diff options
author | Joseph Myers <jsm@polyomino.org.uk> | 2004-09-15 21:48:10 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2004-09-15 21:48:10 +0100 |
commit | 971801fff6d8eb0df1486fa6b77ba4cfc4616305 (patch) | |
tree | 4034f8306b245baf4a83c67767977aaa06c4a83b /gcc/reload1.c | |
parent | 1daf6f3a5ba3a54bde4b8843b7b75dad3bb536eb (diff) | |
download | gcc-971801fff6d8eb0df1486fa6b77ba4cfc4616305.zip gcc-971801fff6d8eb0df1486fa6b77ba4cfc4616305.tar.gz gcc-971801fff6d8eb0df1486fa6b77ba4cfc4616305.tar.bz2 |
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
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r-- | gcc/reload1.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c index 63f829f..8d2c2d8 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -1871,11 +1871,12 @@ spill_failure (rtx insn, enum reg_class class) { static const char *const reg_class_names[] = REG_CLASS_NAMES; if (asm_noperands (PATTERN (insn)) >= 0) - error_for_asm (insn, "can't find a register in class `%s' while reloading `asm'", + error_for_asm (insn, "can't find a register in class %qs while " + "reloading %<asm%>", reg_class_names[class]); else { - error ("unable to find a register to spill in class `%s'", + error ("unable to find a register to spill in class %qs", reg_class_names[class]); fatal_insn ("this is the insn:", insn); } @@ -3867,7 +3868,8 @@ reload_as_needed (int live_known) || (extract_insn (p), ! constrain_operands (1)))) { error_for_asm (insn, - "`asm' operand requires impossible reload"); + "%<asm%> operand requires " + "impossible reload"); delete_insn (p); } } @@ -4990,7 +4992,7 @@ failed_reload (rtx insn, int r) /* It's the user's fault; the operand's mode and constraint don't match. Disable this reload so we don't crash in final. */ error_for_asm (insn, - "`asm' operand constraint incompatible with operand size"); + "%<asm%> operand constraint incompatible with operand size"); rld[r].in = 0; rld[r].out = 0; rld[r].reg_rtx = 0; @@ -6609,7 +6611,7 @@ emit_output_reload_insns (struct insn_chain *chain, struct reload *rl, if (asm_noperands (PATTERN (insn)) < 0) /* It's the compiler's fault. */ fatal_insn ("VOIDmode on an output", insn); - error_for_asm (insn, "output operand is constant in `asm'"); + error_for_asm (insn, "output operand is constant in %<asm%>"); /* Prevent crash--use something we know is valid. */ mode = word_mode; old = gen_rtx_REG (mode, REGNO (reloadreg)); |