Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to bison 3.7.4 #68

Closed
GitMensch opened this issue Nov 14, 2020 · 10 comments
Closed

Update to bison 3.7.4 #68

GitMensch opened this issue Nov 14, 2020 · 10 comments
Assignees

Comments

@GitMensch
Copy link
Collaborator

Bison 3.7.4 was released, solving the original issue.

Originally posted by @GitMensch in #67 (comment)

Noteworthy changes in release 3.7.4 (2020-11-14) [stable]

Bug fixes

Bug fixes in yacc.c

In Yacc mode, all the tokens are defined twice: once as an enum, and then
as a macro. YYEMPTY was missing its macro.

Bug fixes in lalr1.cc

The lalr1.cc skeleton used to emit internal assertions (using YY_ASSERT)
even when the parse.assert %define variable is not enabled. It no
longer does.

The private internal macro YY_ASSERT now obeys the api.prefix %define
variable.

When there is a very large number of tokens, some assertions could be long
enough to hit arbitrary limits in Visual C++. They have been rewritten to
work around this limitation.

Changes

The YYBISON macro in generated "regular C parsers" (from the "yacc.c"
skeleton) used to be defined to 1. It is now defined to the version of
Bison as an integer (e.g., 30704 for version 3.7.4).

@lexxmark lexxmark self-assigned this Nov 16, 2020
@lexxmark
Copy link
Owner

bison was upgraded in master.

upgrading gnu lib files and testing is on the go.

@egorpugin
Copy link

Hi,

Would you consider making a release or a tag?

@lexxmark
Copy link
Owner

I'm upgrading gnu libs now. I hope new release will be available soon

@lexxmark
Copy link
Owner

@GitMensch I have a problem during upgrading gnulib.

Especially when I upgraded obstack.h it seems it's not accepting negative numbers for obstack_blank function.
However M4 tool code still uses obstack_blank with negative values in macro.h and caused runtime errors.

I get the most fresh M4 code from https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.xz
It has both \m4-1.4.18\src\macro.c and \m4-1.4.18\lib\obstack.h files.

@lexxmark
Copy link
Owner

Everything seems to be fixed now.

@egorpugin Please check this win_flex_bison-2.5.24.zip

Will make a new release next week.

@GitMensch GitMensch mentioned this issue Dec 22, 2020
@GitMensch
Copy link
Collaborator Author

So the gnulib issue you've seen is solved? Or are some parts not updated?

@egorpugin
Copy link

Please check this win_flex_bison-2.5.24.zip

Is it master? I build from sources.

@lexxmark
Copy link
Owner

Is it master? I build from sources.

Yes, it's in master now

So the gnulib issue you've seen is solved? Or are some parts not updated?

Yes I upgraded M4 to v1.4.18

The only issue I met is that new M4 uses gl_avltree_oset now and I had to stay with old gl_rbtree_oset because didn't find an new implementation of gl_rbtree_oset which required in other winflexbison code.

@egorpugin
Copy link

Works for me.

@lexxmark
Copy link
Owner

lexxmark commented Jan 6, 2021

winflexbison version 2.5.24 has released

@lexxmark lexxmark closed this as completed Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants