This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] rfa: fix pr 16046
- From: Eric Christopher <echristo at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 09 Sep 2004 17:23:40 -0700
- Subject: [patch] rfa: fix pr 16046
Since it's bugfix time...
This appears to fix the regression and survives bootstrap and regression
test.
If this is the right way of going about this I'll add the testcase in
the PR as well when checking in..
-eric
--
Eric Christopher <echristo@redhat.com>
2004-09-09 Eric Christopher <echristo@redhat.com>
PR c/16046
* c-parse.in (attribute): Add NULL_TREE for error case
for error recovery.
Index: c-parse.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-parse.in,v
retrieving revision 1.238
diff -u -p -w -r1.238 c-parse.in
--- c-parse.in 9 Sep 2004 01:25:46 -0000 1.238
+++ c-parse.in 10 Sep 2004 00:20:05 -0000
@@ -1359,7 +1359,7 @@ attribute:
'(' '(' attribute_list ')' ')' start_string_translation
{ $$ = $5; }
| ATTRIBUTE error start_string_translation
- {}
+ { $$ = NULL_TREE; }
;
attribute_list: