This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Susprising behavior of gcc on x86 (-m32)
- From: Mathieu Malaterre <malat at debian dot org>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 8 Sep 2015 11:15:09 +0200
- Subject: Susprising behavior of gcc on x86 (-m32)
- Authentication-results: sourceware.org; auth=none
Dear all,
I am trying to track down the following OpenJPEG regression on x86
(amd64 is fine):
https://github.com/uclouvain/openjpeg/issues/571
In summary, if I compile OpenJPEG (git/master) using gcc (all gcc
versions in debian: 4.8, 4.9 and 5.2 are affected) and try to compress
a specific input file the generated J2K file is invalid. The bug is
somewhat problematic within OpenJPEG because it make lossless
compression: lossy !
I have not been able to reproduce this behavior using clang 3.5 (again
debian/sid chroot 32bits), and I am not able to reproduce this
behavior from an amd64 debian sid chroot.
What is even more surprising is that I can no longer reproduce the
behavior using `valgrind` from my 32bits chroot.
I understand that my bug description is relatively small, but I am
eager to report a more specific gcc issue. If anyone could help me
narrow down this issue, I'd appreciate your comments.
Please note that that I disabled any kind of optimizations by using
(explicitly!) -O0.
Thanks