summaryrefslogtreecommitdiff
path: root/gcc/cppinit.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-06 22:53:10 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-06 22:53:10 +0000
commit318fdd81915678cdc4e744ad9aa51cbfef2b9fc1 (patch)
tree3f56b583072218fe62c5e65ab9af8fa0eb09165a /gcc/cppinit.c
parent09b8097e4cafe3e8cd0e44f136056fce86ccad74 (diff)
downloadgcc-318fdd81915678cdc4e744ad9aa51cbfef2b9fc1.tar.gz
* c-common.c (warn_multichar): New.
(c_common_init): Set CPP's warn_multichar. * c-common.h (warn_multichar): New. * c-decl.c (warn_multichar): Remove. * c-lex.c (lex_charconst): Update. * c-tree.h (warn_multichar): Remove. * cppexp.c (eval_token): Sign-extend charconst value. * cppinit.c (cpp_create_reader): Set warn_multichar. * cpplex.c (cpp_interpret_charconst): Don't sign-extend each character. Update prototype. Sign-extend the result. * cpplib.h: Fix conditions. (struct cpp_options): Add new warning flag. (cpp_interpret_charconst): Update prototype. cp: * Make-lang.in (decl2.o): Update. * cp-tree.h (warn_multichar): Remove. * decl2.c: Include c-common.h. (warn_multichar): Remove. doc: * cpp.texi: Update documentation. testsuite: * gcc.dg/cpp/charconst-3.c: Correct tests accordingly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53240 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r--gcc/cppinit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c
index 974a1ebae85..1d570b0e98a 100644
--- a/gcc/cppinit.c
+++ b/gcc/cppinit.c
@@ -487,6 +487,7 @@ cpp_create_reader (lang)
set_lang (pfile, lang);
CPP_OPTION (pfile, warn_import) = 1;
+ CPP_OPTION (pfile, warn_multichar) = 1;
CPP_OPTION (pfile, discard_comments) = 1;
CPP_OPTION (pfile, discard_comments_in_macro_exp) = 1;
CPP_OPTION (pfile, show_column) = 1;