diff options
author | Joseph Myers <jsm28@cam.ac.uk> | 2001-09-11 13:52:04 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2001-09-11 13:52:04 +0100 |
commit | 1d30139d37ad8281957c875475c6a496b37ab015 (patch) | |
tree | 354be61dc8d5de0aee47b0c3f2080226630fc950 /gcc/testsuite | |
parent | 7ded4467c9ee286111320967832db758d71acf4c (diff) | |
download | gcc-1d30139d37ad8281957c875475c6a496b37ab015.zip gcc-1d30139d37ad8281957c875475c6a496b37ab015.tar.gz gcc-1d30139d37ad8281957c875475c6a496b37ab015.tar.bz2 |
re PR c/4294 (ICE for bad empty attribute)
* c-common.c (split_specs_attrs): Allow for empty attributes with
empty TREE_PURPOSE. Fixes PR c/4294.
testsuite:
* gcc.c-torture/compile/20010911-1.c: New test.
From-SVN: r45541
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20010911-1.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 852b1e8..6dc91cd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2001-09-11 Joseph S. Myers <jsm28@cam.ac.uk> + + * gcc.c-torture/compile/20010911-1.c: New test. + 2001-09-10 Janis Johnson <janis187@us.ibm.com> * lib/profopt.exp: New, to support profile-directed optimizations. diff --git a/gcc/testsuite/gcc.c-torture/compile/20010911-1.c b/gcc/testsuite/gcc.c-torture/compile/20010911-1.c new file mode 100644 index 0000000..f5a4724 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20010911-1.c @@ -0,0 +1,4 @@ +/* Test for segfault handling an empty attribute. */ +/* Origin: PR c/4294 from <tori@ringstrom.mine.nu>. */ + +void __attribute__(()) foo(); |