OSDN Git Service

* c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 12 Sep 2004 23:53:29 +0000 (23:53 +0000)
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 12 Sep 2004 23:53:29 +0000 (23:53 +0000)
commitb0b1af642fd3c2318975ed201648def1b7aee348
tree55c81129e5904e9a77beedcea89e8ae836694907
parent29dcf6e523dfe91a272557e419a034df52b1343b
* 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
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