From e717f61714761f1e4ce72999acde9b3e07c7679a Mon Sep 17 00:00:00 2001 From: jsm28 Date: Wed, 1 Dec 2004 02:01:43 +0000 Subject: [PATCH] * doc/standards.texi: Update for C99 TC2. testsuite: * gcc.dg/c99-flex-array-4.c: Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91552 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/doc/standards.texi | 4 ++-- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/c99-flex-array-4.c | 27 --------------------------- 4 files changed, 10 insertions(+), 29 deletions(-) delete mode 100644 gcc/testsuite/gcc.dg/c99-flex-array-4.c diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5bbe2e995f6..dea0491e162 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-12-01 Joseph S. Myers + + * doc/standards.texi: Update for C99 TC2. + 2004-11-30 Jeff Law * sbitmap.c (sbitmap_any_common_bits): New function. diff --git a/gcc/doc/standards.texi b/gcc/doc/standards.texi index 8d22d850e3a..c2418defd8d 100644 --- a/gcc/doc/standards.texi +++ b/gcc/doc/standards.texi @@ -84,8 +84,8 @@ standard, use @option{-std=c99} or @option{-std=iso9899:1999}. (While in development, drafts of this standard version were referred to as @dfn{C9X}.) -Errors in the 1999 ISO C standard were corrected in a Technical -Corrigendum published in 2001. GCC does not support the uncorrected +Errors in the 1999 ISO C standard were corrected in two Technical +Corrigenda published in 2001 and 2004. GCC does not support the uncorrected version. By default, GCC provides some extensions to the C language that on diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e1cae621330..b7e8880e1a9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2004-12-01 Joseph S. Myers + + * gcc.dg/c99-flex-array-4.c: Remove. + 2004-11-30 Janis Johnson * lib/compat.exp (compat-get-options): Fix for use with dg-xfail-if. diff --git a/gcc/testsuite/gcc.dg/c99-flex-array-4.c b/gcc/testsuite/gcc.dg/c99-flex-array-4.c deleted file mode 100644 index c4a0564b599..00000000000 --- a/gcc/testsuite/gcc.dg/c99-flex-array-4.c +++ /dev/null @@ -1,27 +0,0 @@ -/* Test for flexible array members. Test for agreement of offset and - structure size. This is expected to fail, because of a possible - defect in the standard. */ -/* Origin: http://gcc.gnu.org/ml/gcc/2002-05/msg02844.html - from Tony Finch , adapted to a testcase by Joseph Myers - . See also WG14 reflector messages 9571-3. */ -/* { dg-do compile } */ -/* -fpack-struct is necessary because the code below assumes the initial - packing is larger than 1, which cannot ge guaranteed for all targets. */ -/* { dg-options "-std=iso9899:1999 -fpack-struct=8 -pedantic-errors" } */ - -#include - -struct foo { - int a; - short b; - char pad[]; -}; - -struct bar { - int a; - short b; - char pad[1024]; -}; - -char x[(sizeof(struct foo) == offsetof(struct foo, pad)) ? 1 : -1]; /* { dg-bogus "negative" "sizeof != offsetof" { xfail *-*-* } } */ -char y[(offsetof(struct foo, pad) == offsetof(struct bar, pad)) ? 1 : -1]; -- 2.11.0