From: Ian Lance Taylor Date: Sat, 26 Feb 1994 05:32:29 +0000 (+0000) Subject: * ldgram.y (section): Reverse the order of memspec_opt and X-Git-Tag: gdb-4_18-branchpoint~15362 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=27baca7182ea8cdc7a259b163aa327a0a297e755;p=thirdparty%2Fbinutils-gdb.git * ldgram.y (section): Reverse the order of memspec_opt and fill_opt to avoid an ambiguity when both are used. * ld.texinfo: Changed accordingly. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index b6667f4144a..9970d9dd147 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,9 @@ Fri Feb 25 19:12:03 1994 Ian Lance Taylor (ian@cygnus.com) + * ldgram.y (section): Reverse the order of memspec_opt and + fill_opt to avoid an ambiguity when both are used. + * ld.texinfo: Changed accordingly. + * ldgram.y: Move include of ldlex.h back with other includes. * ldlex.h (input_type): Don't initialize enum constants to particular values. diff --git a/ld/ldgram.y b/ld/ldgram.y index c4b83b3274d..0640afee315 100644 --- a/ld/ldgram.y +++ b/ld/ldgram.y @@ -585,10 +585,10 @@ section: NAME { ldlex_expression(); } lang_enter_output_section_statement($1,$3,typebits,0,0,0,$4); } statement_list_opt - '}' {ldlex_expression();} fill_opt memspec_opt + '}' {ldlex_expression();} memspec_opt fill_opt { ldlex_popstate(); - lang_leave_output_section_statement($11, $12); + lang_leave_output_section_statement($12, $11); } opt_comma