diff options
author | emsr <emsr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-10 00:08:49 +0000 |
---|---|---|
committer | emsr <emsr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-10 00:08:49 +0000 |
commit | 2dd006369c22f7affef6c7082e3671cba988468d (patch) | |
tree | 6f4eb9fb1a2dfd8c43e78bcc98930f16138e78c4 /libcpp/init.c | |
parent | ec745a53793f0eec84eabfc3b93cb12ba1e4916f (diff) | |
download | gcc-2dd006369c22f7affef6c7082e3671cba988468d.tar.gz |
Implement a flag -fext-numeric-literals that allows control of whether GNU
numeric suffix extensions are parsed or passed to C++ as user-defined literals.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193382 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp/init.c')
-rw-r--r-- | libcpp/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcpp/init.c b/libcpp/init.c index 81b66df57e5..ebe51c76c86 100644 --- a/libcpp/init.c +++ b/libcpp/init.c @@ -182,6 +182,7 @@ cpp_create_reader (enum c_lang lang, cpp_hash_table *table, CPP_OPTION (pfile, track_macro_expansion) = 2; CPP_OPTION (pfile, warn_normalize) = normalized_C; CPP_OPTION (pfile, warn_literal_suffix) = 1; + CPP_OPTION (pfile, ext_numeric_literals) = 1; /* Default CPP arithmetic to something sensible for the host for the benefit of dumb users like fix-header. */ |