--- Comment #8 from manu at gcc dot gnu dot org 2008-01-23 17:57 ---
(In reply to comment #7)
> This is bison 2.0.
> The latest version is 2.3. If haven't found anything in the ChangeLog which
> sounds like there was a bug fix in this area.
>
You should really try bison 2.3 just in cas
--- Comment #7 from dominik dot strasser at onespin-solutions dot com
2008-01-21 13:45 ---
This is bison 2.0.
The latest version is 2.3. If haven't found anything in the ChangeLog which
sounds like there was a bug fix in this area.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=349
--- Comment #6 from rguenth at gcc dot gnu dot org 2008-01-21 13:22 ---
If I remember correctly this was a bug with bison itself. What version of
bison are you using? I suggest to simply use -fno-strict-aliasing for this
generated file.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?
--- Comment #5 from dominik dot strasser at onespin-solutions dot com
2008-01-21 13:07 ---
Bingo -fno-strict-aliasing does the trick. But what shall I do ? This is a
generated Bison parser.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34902
--- Comment #4 from pinskia at gcc dot gnu dot org 2008-01-21 12:44 ---
Does -fno-strict-aliasing? Does adding that option with -O3 does that fix the
issue?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34902
--- Comment #3 from dominik dot strasser at onespin-solutions dot com
2008-01-21 12:17 ---
-Wstrict-overflow=5 doesn't seem to be available in 4.1.2
-fwrapv didn't make a difference.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34902
--- Comment #2 from manu at gcc dot gnu dot org 2008-01-21 12:12 ---
Could you try to compile it by adding -Wstrict-overflow=5 as the last warning
flag (after -Wall)?
Independently, could you try to compile it by adding the -fwrapv flag?
--
manu at gcc dot gnu dot org changed:
--- Comment #1 from dominik dot strasser at onespin-solutions dot com
2008-01-21 11:17 ---
Created an attachment (id=14986)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14986&action=view)
tar file with illustrates the bug
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34902