diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-12-06 03:32:43 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-12-06 03:32:43 +0000 |
commit | 40653cfe70a9668fbb984fb60785a7256ad0cbed (patch) | |
tree | de01e89795cf58ce7633d0b9d8e25e48b9c76061 /3.3.6/gentoo | |
parent | Release 4.6_p1.1. (diff) | |
download | gcc-patches-40653cfe70a9668fbb984fb60785a7256ad0cbed.tar.gz gcc-patches-40653cfe70a9668fbb984fb60785a7256ad0cbed.tar.bz2 gcc-patches-40653cfe70a9668fbb984fb60785a7256ad0cbed.zip |
add fix from upstream for newer versions of bison #348893 by Kevin O'Gorman
Diffstat (limited to '3.3.6/gentoo')
-rw-r--r-- | 3.3.6/gentoo/09_all_gcc-3.4.6-c-parse-bison.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/3.3.6/gentoo/09_all_gcc-3.4.6-c-parse-bison.patch b/3.3.6/gentoo/09_all_gcc-3.4.6-c-parse-bison.patch new file mode 100644 index 0000000..2a81424 --- /dev/null +++ b/3.3.6/gentoo/09_all_gcc-3.4.6-c-parse-bison.patch @@ -0,0 +1,41 @@ +https://bugs.gentoo.org/348893 + +2009-11-02 Jason Merrill <jason@redhat.com> + + * c-parse.in (structsp_attr): Fix for bison 2.4.1 pedantry. + +--- branches/gcc-3_4-branch/gcc/c-parse.in 2004/10/14 23:12:53 89061 ++++ branches/gcc-3_4-branch/gcc/c-parse.in 2009/11/02 22:14:49 153828 +@@ -1730,7 +1730,7 @@ + + structsp_attr: + struct_head identifier '{' +- { $$ = start_struct (RECORD_TYPE, $2); ++ { $<ttype>$ = start_struct (RECORD_TYPE, $2); + /* Start scope of tag before parsing components. */ + } + component_decl_list '}' maybe_attribute +@@ -1741,7 +1741,7 @@ + nreverse ($3), chainon ($1, $5)); + } + | union_head identifier '{' +- { $$ = start_struct (UNION_TYPE, $2); } ++ { $<ttype>$ = start_struct (UNION_TYPE, $2); } + component_decl_list '}' maybe_attribute + { $$ = finish_struct ($<ttype>4, nreverse ($5), + chainon ($1, $7)); } +@@ -1750,12 +1750,12 @@ + nreverse ($3), chainon ($1, $5)); + } + | enum_head identifier '{' +- { $$ = start_enum ($2); } ++ { $<ttype>$ = start_enum ($2); } + enumlist maybecomma_warn '}' maybe_attribute + { $$ = finish_enum ($<ttype>4, nreverse ($5), + chainon ($1, $8)); } + | enum_head '{' +- { $$ = start_enum (NULL_TREE); } ++ { $<ttype>$ = start_enum (NULL_TREE); } + enumlist maybecomma_warn '}' maybe_attribute + { $$ = finish_enum ($<ttype>3, nreverse ($4), + chainon ($1, $7)); } |