diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-12 23:53:29 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-09-12 23:53:29 +0000 |
commit | b0b1af642fd3c2318975ed201648def1b7aee348 (patch) | |
tree | 55c81129e5904e9a77beedcea89e8ae836694907 /gcc/c-objc-common.c | |
parent | 29dcf6e523dfe91a272557e419a034df52b1343b (diff) | |
download | gcc-b0b1af642fd3c2318975ed201648def1b7aee348.tar.gz |
* c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
in diagnostics. Use %' for English apostrophes.
* c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
(pedwarn_c90, pedwarn_c99): Use it.
* c-decl.c (lookup_label): Quote label name in diagnostic.
* c-parse.in (yyprint): Use ' instead of ` for left quote.
* c-typeck.c (warn_for_assignment): Likewise.
testsuite:
* g++.dg/warn/Wswitch-1.C, g++.dg/warn/Wswitch-2.C,
gcc.dg/Wswitch-2.c, gcc.dg/Wswitch-enum.c, gcc.dg/Wswitch.c,
gcc.dg/declspec-9.c, gcc.dg/declspec-10.c, gcc.dg/declspec-11.c,
gcc.dg/m-un-2.c, gcc.dg/noreturn-1.c, gcc.dg/wtr-conversion-1.c:
Update expected messages.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87413 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-objc-common.c')
-rw-r--r-- | gcc/c-objc-common.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/c-objc-common.c b/gcc/c-objc-common.c index 9d05a6d97bf..d59aed10beb 100644 --- a/gcc/c-objc-common.c +++ b/gcc/c-objc-common.c @@ -78,7 +78,7 @@ c_cannot_inline_tree_fn (tree *fnp) && lookup_attribute ("always_inline", DECL_ATTRIBUTES (fn)) == NULL) { if (do_warning) - warning ("%Jfunction '%F' can never be inlined because it " + warning ("%Jfunction %qF can never be inlined because it " "is suppressed using -fno-inline", fn, fn); goto cannot_inline; } @@ -88,7 +88,7 @@ c_cannot_inline_tree_fn (tree *fnp) if (!DECL_DECLARED_INLINE_P (fn) && !targetm.binds_local_p (fn)) { if (do_warning) - warning ("%Jfunction '%F' can never be inlined because it might not " + warning ("%Jfunction %qF can never be inlined because it might not " "be bound within this unit of translation", fn, fn); goto cannot_inline; } @@ -96,7 +96,7 @@ c_cannot_inline_tree_fn (tree *fnp) if (! function_attribute_inlinable_p (fn)) { if (do_warning) - warning ("%Jfunction '%F' can never be inlined because it uses " + warning ("%Jfunction %qF can never be inlined because it uses " "attributes conflicting with inlining", fn, fn); goto cannot_inline; } @@ -111,7 +111,7 @@ c_cannot_inline_tree_fn (tree *fnp) if (t) { if (do_warning) - warning ("%Jfunction '%F' can never be inlined because it has " + warning ("%Jfunction %qF can never be inlined because it has " "pending sizes", fn, fn); goto cannot_inline; } @@ -124,7 +124,7 @@ c_cannot_inline_tree_fn (tree *fnp) if (DECL_LANG_SPECIFIC (fn)->pending_sizes) { if (do_warning) - warning ("%Jnested function '%F' can never be inlined because it " + warning ("%Jnested function %qF can never be inlined because it " "has possibly saved pending sizes", fn, fn); goto cannot_inline; } |