diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-09-14 19:50:29 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-09-15 07:27:00 +0200 |
commit | 34476c449ad3a28f003a69f81c2bb721dd884248 (patch) | |
tree | a472948873b3d26a8f2bf6a70de2d496f3d6e8f1 /README-hacking.md | |
parent | 795a59aba49762d0b06f78ae154a8aa3d2e3534e (diff) | |
download | bison-34476c449ad3a28f003a69f81c2bb721dd884248.tar.gz |
glr2.cc: disable GCC 4.6 warning
231. conflicts.at:1096: testing Syntax error in consistent error state: glr2.cc ...
tests/conflicts.at:1096: $CXX $CXXFLAGS $CPPFLAGS $LDFLAGS -o input input.cc $LIBS
input.cc: In member function 'YYRESULTTAG glr_stack::yyresolveValue(glr_state*)':
input.cc:2674:36: error: 'yysval' may be used uninitialized in this function [-Werror=uninitialized]
Do not initialize the variable: this way ASAN can really make sure we
do set it to a proper value.
If we initialize it, ASAN would report nothing.
* data/skeletons/c.m4 (YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN): Disable
GCC 4.6's -Wuninitialized.
* data/skeletons/glr2.cc: Disable the warning locally.
Diffstat (limited to 'README-hacking.md')
-rw-r--r-- | README-hacking.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/README-hacking.md b/README-hacking.md index b5245bb9..10fba1fd 100644 --- a/README-hacking.md +++ b/README-hacking.md @@ -560,6 +560,26 @@ re-run the tests, run: make check +## Docker + +Running old compilers is not very easy. Docker can be used for some of +them. Have a look at .travis.yml for setups. Move the tarball in /tmp and +run, for instance: + +``` +docker run -v /tmp:/tmp -it ubuntu:xenial +``` + +### GCC 4.6 +On Ubuntu Xenial. + +``` +apt-get update +apt-get install software-properties-common +apt-add-repository -y "ppa:ubuntu-toolchain-r/test" +apt-get update +apt-get install -y gcc-4.6 g++-4.6 m4 make +``` Release Procedure ================= |