diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2003-03-17 06:41:06 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2003-03-17 06:41:06 +0000 |
commit | 783e29899b5bbeccf67a8460c0e10d91cb45e2fa (patch) | |
tree | 8b2722d0b6eec418537a94d6fbb9ddc51f7ce249 /gcc/c-opts.c | |
parent | 72ecfc6033acf7c9294f27fe66d2c8886f1dc86d (diff) | |
download | gcc-783e29899b5bbeccf67a8460c0e10d91cb45e2fa.zip gcc-783e29899b5bbeccf67a8460c0e10d91cb45e2fa.tar.gz gcc-783e29899b5bbeccf67a8460c0e10d91cb45e2fa.tar.bz2 |
c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
* 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.
From-SVN: r64471
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 adab26d7..8c639cc 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) { |