diff options
author | Richard Sandiford <richard@codesourcery.com> | 2007-09-13 12:27:00 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2007-09-13 12:27:00 +0000 |
commit | 0ad7e054218ed4a8df8843a96bf59e2c8c4b4f9b (patch) | |
tree | 0da6625b96d187b94a641a70493b028179f7e64e /gcc | |
parent | e9c15f6eaa2e4e07d27ce12485361d719df16ef5 (diff) | |
download | gcc-0ad7e054218ed4a8df8843a96bf59e2c8c4b4f9b.zip gcc-0ad7e054218ed4a8df8843a96bf59e2c8c4b4f9b.tar.gz gcc-0ad7e054218ed4a8df8843a96bf59e2c8c4b4f9b.tar.bz2 |
c-parser.c (c_parser_struct_declaration): Check for a null return.
gcc/
* c-parser.c (c_parser_struct_declaration): Check for a null return.
From-SVN: r128459
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c-parser.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e2032f2..c9facbd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2007-09-13 Richard Sandiford <richard@codesourcery.com> + + * c-parser.c (c_parser_struct_declaration): Check for a null return. + 2007-09-13 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> PR driver/33309 diff --git a/gcc/c-parser.c b/gcc/c-parser.c index 4bbc39d..91ba850 100644 --- a/gcc/c-parser.c +++ b/gcc/c-parser.c @@ -2033,7 +2033,8 @@ c_parser_struct_declaration (c_parser *parser) tree attrs = NULL; ret = grokfield (build_id_declarator (NULL_TREE), specs, NULL_TREE, &attrs); - decl_attributes (&ret, attrs, 0); + if (ret) + decl_attributes (&ret, attrs, 0); } return ret; } |