aboutsummaryrefslogtreecommitdiff
path: root/gcc/c.opt
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2010-02-26 17:09:29 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2010-02-26 17:09:29 +0000
commit7e1542b921b63aea61cc239be5eeeb632631a5b9 (patch)
treea275d8dedbbb1c786a414966d5eb5590a5ad6f80 /gcc/c.opt
parent0b901e4cdc55c0c05f72cfac03c25aea6f602d9e (diff)
downloadgcc-7e1542b921b63aea61cc239be5eeeb632631a5b9.zip
gcc-7e1542b921b63aea61cc239be5eeeb632631a5b9.tar.gz
gcc-7e1542b921b63aea61cc239be5eeeb632631a5b9.tar.bz2
re PR c/20631 (Support -std=c90 as alias for -std=c89)
2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org> PR c/20631 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89. * doc/standards.texi: Likewise. * doc/extend.texi: Likewise. * doc/trouble.texi: Likewise. * doc/cppopts.texi: Likewise. * doc/install.texi: Likewise. * c.opt (std=c90,std=gnu90): New options. * c-opts.c (c_common_handle_option): Handle them. testsuite/ * gcc.dg/cpp/c90-pedantic.c: New. * gcc.dg/cpp/c90.c: New. * gcc.dg/gnu90-const-expr-1.c: New. * gcc.dg/Woverlength-strings-pedantic-c90.c: New. From-SVN: r157096
Diffstat (limited to 'gcc/c.opt')
-rw-r--r--gcc/c.opt8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/c.opt b/gcc/c.opt
index 1168c65..ec600f5 100644
--- a/gcc/c.opt
+++ b/gcc/c.opt
@@ -965,6 +965,10 @@ std=c89
C ObjC
Conform to the ISO 1990 C standard
+std=c90
+C ObjC
+Conform to the ISO 1990 C standard
+
std=c99
C ObjC
Conform to the ISO 1999 C standard
@@ -988,6 +992,10 @@ std=gnu89
C ObjC
Conform to the ISO 1990 C standard with GNU extensions
+std=gnu90
+C ObjC
+Conform to the ISO 1990 C standard with GNU extensions
+
std=gnu99
C ObjC
Conform to the ISO 1999 C standard with GNU extensions