diff options
author | Joseph Myers <joseph@codesourcery.com> | 2010-04-25 22:54:22 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2010-04-25 22:54:22 +0100 |
commit | 2778d7667c9ef15520b1679417467934e24ffa0f (patch) | |
tree | feff2a16895d1da5319551fc1b48b05b2a464692 /gcc/c.opt | |
parent | 045d4002b76c990d99a66dc6f6c1c014808a2e79 (diff) | |
download | gcc-2778d7667c9ef15520b1679417467934e24ffa0f.tar.gz |
c-common.c (flag_isoc1x): New.
gcc:
* c-common.c (flag_isoc1x): New.
(flag_isoc99): Update comment.
* c-common.h (flag_isoc1x): New.
(flag_isoc99): Update comment.
* c-cppbuiltin.c (builtin_define_float_constants): Also define
__<type>_DECIMAL_DIG__.
* c-opts.c (set_std_c1x): New.
(c_common_handle_option): Handle -std=c1x and -std=gnu1x.
(set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
* c.opt (-std=c1x, -std=gnu1x): New options.
* doc/cpp.texi: Mention -std=c1x.
* doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
* doc/extend.texi: Mention -std=c1x and -std=gnu1x.
* doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
* doc/standards.texi: Mention C1X.
* ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
Define for C1X.
gcc/testsuite:
* gcc.dg/c90-float-1.c: Also test that C1X macros are not defined.
* gcc.dg/c99-float-1.c: Also test that C1X macros are not defined.
* gcc.dg/c1x-float-1.c: New test.
libcpp:
* include/cpplib.h (enum c_lang): Add CLK_GNUC1X and CLK_STDC1X.
* init.c (lang_defaults): Add entries for new language variants.
(cpp_init_builtins): Define __STDC_VERSION__ to 201000L for C1X
variants.
From-SVN: r158711
Diffstat (limited to 'gcc/c.opt')
-rw-r--r-- | gcc/c.opt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/c.opt b/gcc/c.opt index 973acf46c21..2e1933cd0d1 100644 --- a/gcc/c.opt +++ b/gcc/c.opt @@ -961,6 +961,10 @@ become a part of the upcoming ISO C++ standard, dubbed C++0x. Note that the extensions enabled by this mode are experimental and may be removed in future releases of GCC. +std=c1x +C ObjC +Conform to the ISO 201X C standard draft (experimental and incomplete support) + std=c89 C ObjC Conform to the ISO 1990 C standard @@ -988,6 +992,10 @@ extensions that are likely to become a part of the upcoming ISO C++ standard, dubbed C++0x. Note that the extensions enabled by this mode are experimental and may be removed in future releases of GCC. +std=gnu1x +C ObjC +Conform to the ISO 201X C standard draft with GNU extensions (experimental and incomplete support) + std=gnu89 C ObjC Conform to the ISO 1990 C standard with GNU extensions |