From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17983 invoked by alias); 30 Jan 2011 00:48:48 -0000 Received: (qmail 17972 invoked by uid 22791); 30 Jan 2011 00:48:47 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 30 Jan 2011 00:48:43 +0000 From: "howarth at nitro dot med.uc.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/47538] New: GNU Scientific Library miscompiled by gcc 4.6 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: howarth at nitro dot med.uc.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sun, 30 Jan 2011 02:03:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-01/txt/msg03271.txt.bz2 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: unassigned@gcc.gnu.org ReportedBy: howarth@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)