diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-17 06:41:06 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-17 06:41:06 +0000 |
commit | 65a6d98ce28508fb8b59e298e43cd39c26bb96ab (patch) | |
tree | 8b2722d0b6eec418537a94d6fbb9ddc51f7ce249 /gcc/c-opts.c | |
parent | 3289939f014324197752d67b58e7c2bf0711b8bd (diff) | |
download | gcc-65a6d98ce28508fb8b59e298e43cd39c26bb96ab.tar.gz |
* c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
(c_common_init): Set EBCDIC in cpp options.
* cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
not conditional compilation.
* cpplib.h (struct cpp_options): New entry EBCDIC.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64471 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r-- | gcc/c-opts.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c index adab26d7195..8c639cca293 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -40,6 +40,10 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA # define TARGET_SYSTEM_ROOT NULL #endif +#ifndef TARGET_EBCDIC +# define TARGET_EBCDIC 0 +#endif + static int saved_lineno; /* CPP's options. */ @@ -1590,6 +1594,7 @@ c_common_init () cpp_opts->int_precision = TYPE_PRECISION (integer_type_node); cpp_opts->wchar_precision = TYPE_PRECISION (wchar_type_node); cpp_opts->unsigned_wchar = TREE_UNSIGNED (wchar_type_node); + cpp_opts->EBCDIC = TARGET_EBCDIC; if (flag_preprocess_only) { |