aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@multimania.com>2002-04-26 00:22:23 +0000
committerRichard Henderson <rth@gcc.gnu.org>2002-04-25 17:22:23 -0700
commit45c42d7db5f185804a87a5ccef5a62a04773fc20 (patch)
tree3976a00a089bc52ea55abdf7f82489e7e661f1dd
parent07d81318b69883d9c0c4eec6c792d41ecdf8e55b (diff)
downloadgcc-45c42d7db5f185804a87a5ccef5a62a04773fc20.zip
gcc-45c42d7db5f185804a87a5ccef5a62a04773fc20.tar.gz
gcc-45c42d7db5f185804a87a5ccef5a62a04773fc20.tar.bz2
c-decl.c (grokdeclarator): Remove outdated ??? note on invalid declaration of flexible array members.
* c-decl.c (grokdeclarator): Remove outdated ??? note on invalid declaration of flexible array members. From-SVN: r52772
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-decl.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 17b63f4..61aa87d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2002-04-25 Eric Botcazou <ebotcazou@multimania.com>
+
+ * c-decl.c (grokdeclarator): Remove outdated ??? note
+ on invalid declaration of flexible array members.
+
2002-04-25 Richard Henderson <rth@redhat.com>
* doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index fed2e50..9cef187 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -4429,10 +4429,6 @@ grokdeclarator (declarator, declspecs, decl_context, initialized)
}
else if (decl_context == FIELD)
{
- /* ??? Need to check somewhere that this is a structure
- and not a union, that this field is last, and that
- this structure has at least one other named member. */
-
if (pedantic && !flag_isoc99 && !in_system_header)
pedwarn ("ISO C89 does not support flexible array members");