Commit 683e2617 by Joseph Myers Committed by Joseph Myers

standards.texi: Update for C99 TC2.

	* doc/standards.texi: Update for C99 TC2.

testsuite:
	* gcc.dg/c99-flex-array-4.c: Remove.

From-SVN: r91552
parent 874437bc
2004-12-01 Joseph S. Myers <joseph@codesourcery.com>
* doc/standards.texi: Update for C99 TC2.
2004-11-30 Jeff Law <law@redhat.com> 2004-11-30 Jeff Law <law@redhat.com>
* sbitmap.c (sbitmap_any_common_bits): New function. * sbitmap.c (sbitmap_any_common_bits): New function.
......
...@@ -84,8 +84,8 @@ standard, use @option{-std=c99} or @option{-std=iso9899:1999}. (While in ...@@ -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 development, drafts of this standard version were referred to as
@dfn{C9X}.) @dfn{C9X}.)
Errors in the 1999 ISO C standard were corrected in a Technical Errors in the 1999 ISO C standard were corrected in two Technical
Corrigendum published in 2001. GCC does not support the uncorrected Corrigenda published in 2001 and 2004. GCC does not support the uncorrected
version. version.
By default, GCC provides some extensions to the C language that on By default, GCC provides some extensions to the C language that on
......
2004-12-01 Joseph S. Myers <joseph@codesourcery.com>
* gcc.dg/c99-flex-array-4.c: Remove.
2004-11-30 Janis Johnson <janis187@us.ibm.com> 2004-11-30 Janis Johnson <janis187@us.ibm.com>
* lib/compat.exp (compat-get-options): Fix for use with dg-xfail-if. * lib/compat.exp (compat-get-options): Fix for use with dg-xfail-if.
......
/* 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 <dot@dotat.at>, adapted to a testcase by Joseph Myers
<jsm28@cam.ac.uk>. 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 <stddef.h>
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];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment