aboutsummaryrefslogtreecommitdiff
path: root/binutils/rcparse.y
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2012-07-28 08:21:48 +0000
committerKai Tietz <kai.tietz@onevision.com>2012-07-28 08:21:48 +0000
commitee6f7708014aab9179264344f44954350677239c (patch)
tree1f7ca6fbca0dd9958ef1a49baa7e512c88d424a2 /binutils/rcparse.y
parent1d875643b9e1b2dd6187ea6f21a50bc3269dc336 (diff)
downloadgdb-ee6f7708014aab9179264344f44954350677239c.zip
gdb-ee6f7708014aab9179264344f44954350677239c.tar.gz
gdb-ee6f7708014aab9179264344f44954350677239c.tar.bz2
* rcparse.y (FILEVERSION): Use optcnumexpr instead of cnumexpr.
(PRODUCTVERSION): Likewise. * binutils-all/windres/version_small.rc: New test. * binutils-all/windres/version_small.rsd: Likewise.
Diffstat (limited to 'binutils/rcparse.y')
-rw-r--r--binutils/rcparse.y6
1 files changed, 4 insertions, 2 deletions
diff --git a/binutils/rcparse.y b/binutils/rcparse.y
index e80cbc6..f4101d5 100644
--- a/binutils/rcparse.y
+++ b/binutils/rcparse.y
@@ -1423,13 +1423,15 @@ fixedverinfo:
res_alloc (sizeof (rc_fixed_versioninfo)));
memset ($$, 0, sizeof (rc_fixed_versioninfo));
}
- | fixedverinfo FILEVERSION numexpr cnumexpr cnumexpr cnumexpr
+ | fixedverinfo FILEVERSION numexpr optcnumexpr optcnumexpr
+ optcnumexpr
{
$1->file_version_ms = ($3 << 16) | $4;
$1->file_version_ls = ($5 << 16) | $6;
$$ = $1;
}
- | fixedverinfo PRODUCTVERSION numexpr cnumexpr cnumexpr cnumexpr
+ | fixedverinfo PRODUCTVERSION numexpr optcnumexpr optcnumexpr
+ optcnumexpr
{
$1->product_version_ms = ($3 << 16) | $4;
$1->product_version_ls = ($5 << 16) | $6;