head 1.2; access; symbols; locks; strict; comment @# @; 1.2 date 2013.11.16.07.41.01; author mef; state dead; branches; next 1.1; commitid Xhh9wEhmc7eLqtdx; 1.1 date 2013.11.03.10.16.03; author mef; state Exp; branches; next ; commitid 5mcsQmsHGvKyIObx; desc @@ 1.2 log @As proposed at pkgsrc-users@@, (1) nios2-gcc 3.4.6 renamed to nios2-gcc3 (2) nios2-binutils 2.20 renamed to nios2-bintuils220 (3) nios2-gcc41 4.1.2 is imported from wip nios2/Makefile.common, used be for (1) and (2) are now for (2) and (3). @ text @$NetBSD: patch-ab,v 1.1 2013/11/03 10:16:03 mef Exp $ Based on the suggenstion from TNT (www.trans-nt.com) Thanks locore64 (at) alkyltechnology.com for the info. --- gcc/c-parse.y.orig 2006-03-06 12:57:18.000000000 +0900 +++ gcc/c-parse.y 2010-11-24 12:10:18.000000000 +0900 @@@@ -1647,34 +1647,34 @@@@ structsp_attr: struct_head identifier '{' - { $$ = start_struct (RECORD_TYPE, $2); + { $$ = start_struct (RECORD_TYPE, $2); /* Start scope of tag before parsing components. */ } component_decl_list '}' maybe_attribute - { $$ = finish_struct ($4, nreverse ($5), + { $$ = finish_struct ($4, nreverse ($5), chainon ($1, $7)); } | struct_head '{' component_decl_list '}' maybe_attribute - { $$ = finish_struct (start_struct (RECORD_TYPE, NULL_TREE), + { $$ = finish_struct (start_struct (RECORD_TYPE, NULL_TREE), nreverse ($3), chainon ($1, $5)); } | union_head identifier '{' - { $$ = start_struct (UNION_TYPE, $2); } + { $$ = start_struct (UNION_TYPE, $2); } component_decl_list '}' maybe_attribute - { $$ = finish_struct ($4, nreverse ($5), + { $$ = finish_struct ($4, nreverse ($5), chainon ($1, $7)); } | union_head '{' component_decl_list '}' maybe_attribute - { $$ = finish_struct (start_struct (UNION_TYPE, NULL_TREE), + { $$ = finish_struct (start_struct (UNION_TYPE, NULL_TREE), nreverse ($3), chainon ($1, $5)); } | enum_head identifier '{' - { $$ = start_enum ($2); } + { $$ = start_enum ($2); } enumlist maybecomma_warn '}' maybe_attribute - { $$ = finish_enum ($4, nreverse ($5), + { $$ = finish_enum ($4, nreverse ($5), chainon ($1, $8)); } | enum_head '{' - { $$ = start_enum (NULL_TREE); } + { $$ = start_enum (NULL_TREE); } enumlist maybecomma_warn '}' maybe_attribute - { $$ = finish_enum ($3, nreverse ($4), + { $$ = finish_enum ($3, nreverse ($4), chainon ($1, $7)); } ; @ 1.1 log @The following combination of GNU/Altera nios2 tool-chain is newly added. nios2 (just a Makefile.common) nios2-binutils (2.20) Cross binutils for ALTERA FPGA Nios2 processor. nios2-gcc Cross gcc-3.4.6 for ALTERA FPGA Nios2 processor. @ text @d1 1 a1 1 $NetBSD$ @