c-common.c, [...]: Use %q, %< and %> for quoting in diagnostics.
authorJoseph Myers <jsm@polyomino.org.uk>
Sun, 12 Sep 2004 23:53:29 +0000 (00:53 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sun, 12 Sep 2004 23:53:29 +0000 (00:53 +0100)
commitbda6743181d05dc6421dc0e120b13f7aba727c58
tree55c81129e5904e9a77beedcea89e8ae836694907
parent924479e8e8c53ab678eabe5cb43e10478cd5b763
c-common.c, [...]: Use %q, %< and %> for quoting in diagnostics.

* 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.

From-SVN: r87413
22 files changed:
gcc/ChangeLog
gcc/c-common.c
gcc/c-decl.c
gcc/c-lex.c
gcc/c-objc-common.c
gcc/c-opts.c
gcc/c-parse.in
gcc/c-pragma.c
gcc/c-tree.h
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wswitch-1.C
gcc/testsuite/g++.dg/warn/Wswitch-2.C
gcc/testsuite/gcc.dg/Wswitch-2.c
gcc/testsuite/gcc.dg/Wswitch-enum.c
gcc/testsuite/gcc.dg/Wswitch.c
gcc/testsuite/gcc.dg/declspec-10.c
gcc/testsuite/gcc.dg/declspec-11.c
gcc/testsuite/gcc.dg/declspec-9.c
gcc/testsuite/gcc.dg/m-un-2.c
gcc/testsuite/gcc.dg/noreturn-1.c
gcc/testsuite/gcc.dg/wtr-conversion-1.c