diff options
author | Carlos O'Donell <carlos@codesourcery.com> | 2006-04-20 00:21:51 +0000 |
---|---|---|
committer | Carlos O'Donell <carlos@gcc.gnu.org> | 2006-04-20 00:21:51 +0000 |
commit | 9dfb66b9fe85b353f0efed3a98745f6c686511c1 (patch) | |
tree | 2915a6e02f9f6c44b4b02c47404a627e46d27ab4 /gcc/testsuite/gcc.dg/struct-parse-1.c | |
parent | 4fc1015b1dc9007e5ebf68794e0212daee5449b5 (diff) | |
download | gcc-9dfb66b9fe85b353f0efed3a98745f6c686511c1.zip gcc-9dfb66b9fe85b353f0efed3a98745f6c686511c1.tar.gz gcc-9dfb66b9fe85b353f0efed3a98745f6c686511c1.tar.bz2 |
re PR c/26774 (Out of memory compiling 9-line Delta-reduced Linux kernel driver msp3400.c)
gcc/
2006-04-19 Carlos O'Donell <carlos@codesourcery.com>
Nathan Sidwell <nathan@codesourcery.com>
PR c/26774
* stor-layout.c (update_alignment_for_field): Do not align
ERROR_MARK nodes.
(place_union_field): Place union field at the start of the union.
(place_field): Move ERROR_MARK check later, and use the current
allocation position to maintain monotonicity.
gcc/testsuite/
2006-04-19 Carlos O'Donell <carlos@codesourcery.com>
PR c/26774
* gcc.dg/struct-parse-1.c: New test case.
Co-Authored-By: Nathan Sidwell <nathan@codesourcery.com>
From-SVN: r113107
Diffstat (limited to 'gcc/testsuite/gcc.dg/struct-parse-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/struct-parse-1.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/struct-parse-1.c b/gcc/testsuite/gcc.dg/struct-parse-1.c new file mode 100644 index 0000000..32c1157 --- /dev/null +++ b/gcc/testsuite/gcc.dg/struct-parse-1.c @@ -0,0 +1,11 @@ +/* Copyright (C) 2006 Free Software Foundation, Inc. */ +/* Contributed by Carlos O'Donell on 2006-03-31 */ + +/* This code caused the C frontend to loop + forever exhausting all system memory, or ICE */ +/* Origin: Carlos O'Donell <carlos@codesourcery.com> */ + +/* { dg-options "-std=c99" } */ +struct s { int a; int b; struct t c; }; /* { dg-error "error: field 'c' has incomplete type" } */ +struct s d = { .b = 0 }; + |