http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47538

           Summary: GNU Scientific Library miscompiled by gcc 4.6
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: howa...@nitro.med.uc.edu


On x86_64-apple-darwin10, current gcc trunk miscompiles the gsl 1.14, GNU
Scientific Library, when built with the default -O2 optimization level. Running
make check on the gsl build shows the failures...

Making check in cheb
make  test
gcc-fsf-4.6 -DHAVE_CONFIG_H -I. -I.. -I..    -g -O2 -MT test.o -MD -MP -MF
.deps/test.Tpo -c -o test.o test.c
mv -f .deps/test.Tpo .deps/test.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc-fsf-4.6  -g -O2   -o test test.o
libgslcheb.la ../ieee-utils/libgslieeeutils.la ../test/libgsltest.la
../sys/libgslsys.la ../err/libgslerr.la ../utils/libutils.la -lm 
libtool: link: gcc-fsf-4.6 -g -O2 -o test test.o  ./.libs/libgslcheb.a
../ieee-utils/.libs/libgslieeeutils.a ../test/.libs/libgsltest.a
../sys/.libs/libgslsys.a ../err/.libs/libgslerr.a ../utils/.libs/libutils.a -lm
make  check-TESTS
FAIL: gsl_cheb_eval, integ sin(-3.11) (-5.67922629742973622e-19 observed vs
-0.000493439634268399985 expected) [1739]
FAIL: gsl_cheb_eval, integ sin(-3.08) (-1.24082632985168642e-17 observed vs
-0.00197327157172844103 expected) [1740]
FAIL: gsl_cheb_eval, integ sin(-3.05) (-2.12528683906205616e-17 observed vs
-0.00443803539692000371 expected) [1741]
...
FAIL: gsl_cheb_eval_n, integ sin(3.08) (4.05282184237974912e-16 observed vs
-0.00197327157172899614 expected) [2137]
FAIL: gsl_cheb_eval_n, integ sin(3.11) (4.07401622622149715e-16 observed vs
-0.000493439634268733052 expected) [2138]
FAIL: test
==================
1 of 1 test failed
==================

which are not present when building gsl 1.14 with FSF gcc 4.5.2 on
x86_64-apple-darwin10.

Using built-in specs.
COLLECT_GCC=gcc-4
COLLECT_LTO_WRAPPER=/sw/lib/gcc4.6/libexec/gcc/x86_64-apple-darwin10.7.0/4.6.0/lto-wrapper
Target: x86_64-apple-darwin10.7.0
Configured with: ../gcc-4.6-20110129/configure --prefix=/sw
--prefix=/sw/lib/gcc4.6 --mandir=/sw/share/man --infodir=/sw/lib/gcc4.6/info
--with-build-config=bootstrap-lto --enable-stage1-languages=c,lto
--enable-languages=c,c++,fortran,lto,objc,obj-c++,java --with-gmp=/sw
--with-libiconv-prefix=/sw --with-ppl=/sw --with-cloog=/sw --with-mpc=/sw
--with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
--program-suffix=-fsf-4.6 --enable-checking=yes --enable-cloog-backend=isl
Thread model: posix
gcc version 4.6.0 20110129 (experimental) (GCC)

Reply via email to