public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/56866] New: gcc 4.7.x/gcc-4.8.x with '-O3 -march=bdver2' misscompiles glibc-2.17/crypt/sha512.c
@ 2013-04-07 16:53 winfried.magerl@t-online.de
  2013-04-07 16:55 ` [Bug c/56866] " winfried.magerl@t-online.de
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: winfried.magerl@t-online.de @ 2013-04-07 16:53 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56866
           Summary: gcc 4.7.x/gcc-4.8.x with '-O3 -march=bdver2'
                    misscompiles glibc-2.17/crypt/sha512.c
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: winfried.magerl@t-online.de


compiling glibc-2.17 with 'O3 -march=bdver2' fails crypt-test when running
'make check' after glibc-build. I've already tested with different
compilers/settings and the problem exists with gcc-4.7.x and gcc-4.8.x when
using '-O3 -march=bdver1' or '-O3 -march=bdver2' (-O2 is fine) and the affected
file is glibc-2.17/crypt/sha512.c.

I've attached a tar-file which includes necessary files from glibc-2.17
(sha512-block.c/sha512.c/sha512.h) and a modified version of sha512c-test.c
(removed dependency to glibc-test-environment). Might not work if system-libc
is not 2.17
(recompiling glibc and run test-suite should always work.
A small test-script test-gcc.sh to demonstrate the problem. Verified on:

gcc (GCC) 4.8.1 20130407 / glibc-2.17
gcc (GCC) 4.7.2 20130108 / opensuse-12.3 / glibc-2.17


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2013-04-29 16:08 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-07 16:53 [Bug c/56866] New: gcc 4.7.x/gcc-4.8.x with '-O3 -march=bdver2' misscompiles glibc-2.17/crypt/sha512.c winfried.magerl@t-online.de
2013-04-07 16:55 ` [Bug c/56866] " winfried.magerl@t-online.de
2013-04-09 13:47 ` [Bug target/56866] " rguenth at gcc dot gnu.org
2013-04-11 18:46 ` winfried.magerl@t-online.de
2013-04-11 19:36 ` ubizjak at gmail dot com
2013-04-11 21:07 ` winfried.magerl@t-online.de
2013-04-12 12:42 ` mikpe at it dot uu.se
2013-04-12 18:42 ` winfried.magerl@t-online.de
2013-04-14 15:55 ` mikpe at it dot uu.se
2013-04-17 18:41 ` winfried.magerl@t-online.de
2013-04-17 20:15 ` mikpe at it dot uu.se
2013-04-17 21:02 ` winfried.magerl@t-online.de
2013-04-17 21:49 ` glisse at gcc dot gnu.org
2013-04-24 20:58 ` winfried.magerl@t-online.de
2013-04-26  9:00 ` jakub at gcc dot gnu.org
2013-04-26 12:04 ` jakub at gcc dot gnu.org
2013-04-27 12:31 ` jakub at gcc dot gnu.org
2013-04-27 12:32 ` [Bug target/56866] [4.7/4.8/4.9 Regression] " jakub at gcc dot gnu.org
2013-04-29 16:08 ` winfried.magerl@t-online.de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).