clone 634260 -1
reassign -1 gcc-4.6 4.6.1-4
retitle -1 gcc-4.6: miscompilation with -ftree-sra
thanks

On 18/07/11 at 12:02 +0200, Lucas Nussbaum wrote:
> On 18/07/11 at 11:40 +0200, Philipp Kern wrote:
> > Package: ruby1.8
> > Severity: serious
> > Version: 1.8.7.352-1
> > 
> > ruby1.8 FTBFSes in unstable and blocks the poppler transition through
> > ruby-gnome2.
> 
> >From previous investigations on this topic:
> > ruby1.8 and ruby1.9.1 both FTBFS on armel on sid, due to a test failure.
> > 
> > I did some tests on abel.debian.org on 2011-06-10, and the same packages
> > are building fine on squeeze and wheezy.
> > 
> > The same packages don't fail on sid on other architectures.
> 
> I suspect that a toolchain change triggered this failure.

Hi,

pack.c is the source file being miscompiled.
The miscompilation is linked to -ftree-sra.

Steps to reproduce:
in abel's sid chroot, try to build ruby1.8. it fails.
rm pack.o

gcc-4.6 -fno-strict-aliasing -g -g -O2 -fno-tree-sra -fPIC -DRUBY_EXPORT 
-D_GNU_SOURCE=1  -I. -I.    -c pack.c
make miniruby
./miniruby -e 'puts [-32767,-123456].pack("s_l_").unpack("s_l_").inspect'
=> [-32767, -123456] => OK

gcc-4.6 -fno-strict-aliasing -g -g -O2 -fPIC -DRUBY_EXPORT -D_GNU_SOURCE=1  -I. 
-I.    -c pack.c
make miniruby
./miniruby -e 'puts [-32767,-123456].pack("s_l_").unpack("s_l_").inspect'
=> [-32767, -2147410496] => WRONG

I've tried with /usr/lib/gcc-snapshot/bin/gcc. Same behaviour.

Google says that it might be
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45144

For now (well, tomorrow), I'll upload a ruby1.8 package with -fno-tree-sra.

- Lucas



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to