[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
incompatibility between binutils and bison 1.50
From: |
Jeremy Buhler |
Subject: |
incompatibility between binutils and bison 1.50 |
Date: |
Sat, 12 Oct 2002 22:28:33 -0500 (CDT) |
I attempted to build binutils 2.13.90.0.10 (updated from development
tree 20021010) on a Linux system using the latest released version of
bison, v1.50. The build failed at ld/ldgram.y due to the new bison's
stricter checking of rule types. In particular, if a rule has an
internal action but no final action, then the type of the default
action {$$ = $1} is checked, whereas it was ignored in previous
versions of bison.
The attached patch adds empty default rules in the two places that
cause compile errors with bison 1.50.
Jeremy
diff -uwr binutils-2.13.90.0.10-old/ld/ldgram.y
binutils-2.13.90.0.10/ld/ldgram.y
--- binutils-2.13.90.0.10-old/ld/ldgram.y 2002-05-23 17:10:11.000000000
-0500
+++ binutils-2.13.90.0.10/ld/ldgram.y 2002-10-12 22:15:57.000000000 -0500
@@ -629,8 +629,7 @@
memory_spec: NAME
{ region = lang_memory_region_lookup($1); }
attributes_opt ':'
- origin_spec opt_comma length_spec
-
+ origin_spec opt_comma length_spec {}
;
origin_spec:
@@ -844,7 +843,7 @@
ldlex_popstate ();
lang_leave_output_section_statement ($14, $11, $13, $12);
}
- opt_comma
+ opt_comma {}
| OVERLAY
{ ldlex_expression (); }
opt_exp_without_type opt_nocrossrefs opt_at
- incompatibility between binutils and bison 1.50,
Jeremy Buhler <=