[LLVMbugs] [Bug 18276] New: clang breaks OpenSSL library when compiling with -O2 or -O3

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Dec 18 13:23:25 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=18276

            Bug ID: 18276
           Summary: clang breaks OpenSSL library when compiling with -O2
                    or -O3
           Product: clang
           Version: trunk
          Hardware: PC
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: pascal at o-llvm.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11749
  --> http://llvm.org/bugs/attachment.cgi?id=11749&action=edit
Makefile

The current trunk version of clang appears to produce incorrect code when
compiling OpenSSL v1.0.1e with optimization levels -O2 and -O3. 

More precisely, the "make test" fails :

[...]

NIST curve B-571 -- Generator:
     x =
0x303001D34B856296C16C0D40D3CD7750A93D1D2955FA80AA5F40FC8DB7B2ABDBDE53950F4C0D293CDD711A35B67FB1499AE60038614F1394ABFA3B4C850D927E1E7769C8EEC2D19
     y =
0x37BF27342DA639B6DCCFFFEB73D69D78C6C27A6009CBBCA1980F8533921E8A684423E43BAB08A576291AF8F461BB2A8B3531D2F0485C19B16E2F1516E23DD3C1A4827AF1B8AC15B
verify degree ... ok
verify group order .... ok
long/negative scalar tests ... ok
combined multiplication ..... ok

testing internal curves: ...........
EC_GROUP_check() failed with curve secp384r1
.
EC_GROUP_check() failed with curve prime192v1

EC_GROUP_check() failed with curve prime192v2

EC_GROUP_check() failed with curve prime192v3
...
EC_GROUP_check() failed with curve prime256v1
............................................... failed

ectest.c:1268: ABORT

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131218/82664884/attachment.html>


More information about the llvm-bugs mailing list