• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GCC with patches for OS216


Commit MetaInfo

修訂a2df430c5ac46e674fd6a8f20683089a7f4c93a0 (tree)
時間2009-11-03 07:14:49
作者Jason Merrill <jason@redh...>
CommiterJason Merrill

Log Message

* c-parse.in (structsp_attr): Fix for bison 2.4.1 pedantry.

From-SVN: r153828

Change Summary

差異

--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
1+2009-11-02 Jason Merrill <jason@redhat.com>
2+
3+ * c-parse.in (structsp_attr): Fix for bison 2.4.1 pedantry.
4+
15 2006-04-25 Nick Clifton <nickc@redhat.com>
26
37 * config/m32r/m32r.c (gen_compare): Fix reg/smallconst equal code,
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -1730,7 +1730,7 @@ enum_head:
17301730
17311731 structsp_attr:
17321732 struct_head identifier '{'
1733- { $$ = start_struct (RECORD_TYPE, $2);
1733+ { $<ttype>$ = start_struct (RECORD_TYPE, $2);
17341734 /* Start scope of tag before parsing components. */
17351735 }
17361736 component_decl_list '}' maybe_attribute
@@ -1741,7 +1741,7 @@ structsp_attr:
17411741 nreverse ($3), chainon ($1, $5));
17421742 }
17431743 | union_head identifier '{'
1744- { $$ = start_struct (UNION_TYPE, $2); }
1744+ { $<ttype>$ = start_struct (UNION_TYPE, $2); }
17451745 component_decl_list '}' maybe_attribute
17461746 { $$ = finish_struct ($<ttype>4, nreverse ($5),
17471747 chainon ($1, $7)); }
@@ -1750,12 +1750,12 @@ structsp_attr:
17501750 nreverse ($3), chainon ($1, $5));
17511751 }
17521752 | enum_head identifier '{'
1753- { $$ = start_enum ($2); }
1753+ { $<ttype>$ = start_enum ($2); }
17541754 enumlist maybecomma_warn '}' maybe_attribute
17551755 { $$ = finish_enum ($<ttype>4, nreverse ($5),
17561756 chainon ($1, $8)); }
17571757 | enum_head '{'
1758- { $$ = start_enum (NULL_TREE); }
1758+ { $<ttype>$ = start_enum (NULL_TREE); }
17591759 enumlist maybecomma_warn '}' maybe_attribute
17601760 { $$ = finish_enum ($<ttype>3, nreverse ($4),
17611761 chainon ($1, $7)); }