[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 00/14] glr2.cc: fix linking conflicts
From: |
Tom Shields |
Subject: |
Re: [PATCH 00/14] glr2.cc: fix linking conflicts |
Date: |
Sun, 12 Sep 2021 13:50:08 -0500 |
Akim,
The Ox attribute grammar evaluator generator compiles, links, and passes its
regression tests under macOS Big Sur (v11.5.2) using this version of Bison with
the following C++ compilers:
- Xcode (12.5.1): g++ reports its version as ‘Apple clang version 12.0.5
(clang-1205.0.22.11)
- GNU (Homebrew): g++ reports its version as ‘Homebrew GCC 11.2.0) 11.1.0’
- LLVM (Homebrew): clang++ reports it version as ‘Homebrew clang version 12.0.1'
Powered by Mailbutler
<https://www.mailbutler.io/?utm_source=watermark&utm_medium=email&utm_campaign=watermark-essential-email>,
the email extension that does it all
I don’t currently have the time to run the regression test suite over the full
set of portability configurations. I hope to get to that later this coming week.
Thanks!
Tom
> On Sep 12, 2021, at 7:07 AM, Akim Demaille <akim.demaille@gmail.com> wrote:
>
> This series of patches was prompted by Tom Shields, who reported that
> using several glr2.cc parsers together leads to either linking
> conflicts or undefined behavior (probably because of One Definition
> Rule violations).
>
> According to my tests, we should no longer have such issues. However
> my tests are weak, and a real world check would be most interesting.
> So, users of glr2.cc (especially you, Tom), please test this tarball,
> and report the result.
>
> https://www.lrde.epita.fr/~akim/private/bison/bison-3.8.1.21-21068.tar.gz
> https://www.lrde.epita.fr/~akim/private/bison/bison-3.8.1.21-21068.tar.lz
> https://www.lrde.epita.fr/~akim/private/bison/bison-3.8.1.21-21068.tar.xz
>
> I have not yet installed these patches. I will in the near future (in
> case there were comments).
>
> Cheers!
>
> PS/ The diffs are `diff -w`, to avoid all the reindentation noise.
>
> Akim Demaille (14):
> glr2.cc: don't publish YY_EXCEPTIONS
> glr2.cc: put semantic_option into an unnamed namespace
> glr2.cc: prefer unnamed namespace to 'static'
> glr2.cc: put create_state_set_index in unnamed namespace
> glr2.cc: move glr_stack and glr_state into the parser class
> glr2.cc: style: clarify control flow
> glr2.cc: move state_stack into the unnamed namespace
> glr2.cc: put glr_state_set and glr_stack_item in unnamed namespace
> glr2.cc: prefer using, and remove useless type aliases
> glr2.cc: use only symbol_kind_type, not yysymbol_kind_t
> glr2.cc: move strong_index_alias into the unnamed namespace
> glr2.cc: check linking conflicts
> glr2.cc: kill trailing white spaces
> glr2.cc: don't pass %parse-param to destroy
>
> data/skeletons/glr2.cc | 4444 ++++++++++++++++++++--------------------
> tests/headers.at | 13 +-
> 2 files changed, 2251 insertions(+), 2206 deletions(-)
>
> --
> 2.32.0
>
- [PATCH 05/14] glr2.cc: move glr_stack and glr_state into the parser class, (continued)
- [PATCH 05/14] glr2.cc: move glr_stack and glr_state into the parser class, Akim Demaille, 2021/09/12
- [PATCH 06/14] glr2.cc: style: clarify control flow, Akim Demaille, 2021/09/12
- [PATCH 07/14] glr2.cc: move state_stack into the unnamed namespace, Akim Demaille, 2021/09/12
- [PATCH 08/14] glr2.cc: put glr_state_set and glr_stack_item in unnamed namespace, Akim Demaille, 2021/09/12
- [PATCH 09/14] glr2.cc: prefer using, and remove useless type aliases, Akim Demaille, 2021/09/12
- [PATCH 10/14] glr2.cc: use only symbol_kind_type, not yysymbol_kind_t, Akim Demaille, 2021/09/12
- [PATCH 11/14] glr2.cc: move strong_index_alias into the unnamed namespace, Akim Demaille, 2021/09/12
- [PATCH 12/14] glr2.cc: check linking conflicts, Akim Demaille, 2021/09/12
- [PATCH 13/14] glr2.cc: kill trailing white spaces, Akim Demaille, 2021/09/12
- [PATCH 14/14] glr2.cc: don't pass %parse-param to destroy, Akim Demaille, 2021/09/12
- Re: [PATCH 00/14] glr2.cc: fix linking conflicts,
Tom Shields <=
- Re: [PATCH 00/14] glr2.cc: fix linking conflicts, Hans Åberg, 2021/09/13
- Re: [PATCH 00/14] glr2.cc: fix linking conflicts, Thomas Shields, 2021/09/13
- Re: [PATCH 00/14] glr2.cc: fix linking conflicts, Hans Åberg, 2021/09/13