diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-15 20:48:10 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-15 20:48:10 +0000 |
commit | eb586f2c7457e817e8d516217ea3ac779d6b9bbe (patch) | |
tree | 4034f8306b245baf4a83c67767977aaa06c4a83b /gcc/tree.c | |
parent | 31022362da2d9a98060dd03fa6c4bf6ee010fd14 (diff) | |
download | gcc-eb586f2c7457e817e8d516217ea3ac779d6b9bbe.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87563 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/tree.c b/gcc/tree.c index abfd169426f..392d997535c 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -3072,7 +3072,7 @@ handle_dll_attribute (tree * pnode, tree name, tree args, int flags, } if (TREE_CODE (node) != RECORD_TYPE && TREE_CODE (node) != UNION_TYPE) { - warning ("`%s' attribute ignored", IDENTIFIER_POINTER (name)); + warning ("%qs attribute ignored", IDENTIFIER_POINTER (name)); *no_add_attrs = true; } @@ -3090,7 +3090,7 @@ handle_dll_attribute (tree * pnode, tree name, tree args, int flags, if (TREE_CODE (node) == FUNCTION_DECL && DECL_INITIAL (node) && !DECL_DECLARED_INLINE_P (node)) { - error ("%Jfunction `%D' definition is marked dllimport.", node, node); + error ("%Jfunction %qD definition is marked dllimport.", node, node); *no_add_attrs = true; } @@ -3098,7 +3098,7 @@ handle_dll_attribute (tree * pnode, tree name, tree args, int flags, { if (DECL_INITIAL (node)) { - error ("%Jvariable `%D' definition is marked dllimport.", + error ("%Jvariable %qD definition is marked dllimport.", node, node); *no_add_attrs = true; } @@ -3118,8 +3118,8 @@ handle_dll_attribute (tree * pnode, tree name, tree args, int flags, && (TREE_CODE (node) == VAR_DECL || TREE_CODE (node) == FUNCTION_DECL)) { - error ("%Jexternal linkage required for symbol '%D' because of " - "'%s' attribute.", node, node, IDENTIFIER_POINTER (name)); + error ("%Jexternal linkage required for symbol %qD because of " + "%qs attribute.", node, node, IDENTIFIER_POINTER (name)); *no_add_attrs = true; } @@ -5316,7 +5316,7 @@ tree_class_check_failed (const tree node, int cl, const char *file, int line, const char *function) { internal_error - ("tree check: expected class '%c', have '%c' (%s) in %s, at %s:%d", + ("tree check: expected class %qc, have %qc (%s) in %s, at %s:%d", cl, TREE_CODE_CLASS (TREE_CODE (node)), tree_code_name[TREE_CODE (node)], function, trim_filename (file), line); } |