summaryrefslogtreecommitdiffstats
path: root/gcc/c-typeck.c
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-21 21:35:17 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-21 21:35:17 +0000
commitba059ac08df083b778d3285145cf7158756e612b (patch)
tree65860333fa5eace063eaed77c267e32c72a10073 /gcc/c-typeck.c
parent198fb69b92678aa6bb489a9138a382140dfcc3aa (diff)
downloadppe42-gcc-ba059ac08df083b778d3285145cf7158756e612b.tar.gz
ppe42-gcc-ba059ac08df083b778d3285145cf7158756e612b.zip
2002-07-21 Gabriel Dos Reis <gdr@nerim.net>
* c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'. (grokdeclarator): Likewise. * c-format.c (C_STD_NAME): Likewise. * c-lex.c (interpret_integer): Likewise. * c-typeck.c (build_array_ref): Likewise. * cpplex.c (_cpp_lex_direct): Likewise. * toplev.c (documented_lang_options): Likewise. testsuite/ 2002-07-21 Gabriel Dos Reis <gdr@nerim.net> * gcc.dg/c90-arraydecl-1.c: Change C89 too C90. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55629 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-typeck.c')
-rw-r--r--gcc/c-typeck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c
index 089375e904d..48b421313d6 100644
--- a/gcc/c-typeck.c
+++ b/gcc/c-typeck.c
@@ -1362,7 +1362,7 @@ build_array_ref (array, index)
if (TREE_CODE (foo) == VAR_DECL && DECL_REGISTER (foo))
pedwarn ("ISO C forbids subscripting `register' array");
else if (! flag_isoc99 && ! lvalue_p (foo))
- pedwarn ("ISO C89 forbids subscripting non-lvalue array");
+ pedwarn ("ISO C90 forbids subscripting non-lvalue array");
}
type = TYPE_MAIN_VARIANT (TREE_TYPE (TREE_TYPE (array)));
OpenPOWER on IntegriCloud