[LLVMbugs] [Bug 8083] New: wine's kernel32/time test fails with clang, passes with gcc

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Sep 5 01:08:46 PDT 2010


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

           Summary: wine's kernel32/time test fails with clang, passes
                    with gcc
           Product: clang
           Version: 2.7
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: austinenglish at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=5455)
 --> (http://llvm.org/bugs/attachment.cgi?id=5455)
source example

>From http://bugs.winehq.org/show_bug.cgi?id=24270.

I've narrowed the case down a bit, but it's still in the form of a wine test.
Hopefully it'll give you a starting point though. If I can provide any more
information, please let me know.

Clang used:
austin at midna:~/wine-clang/dlls/kernel32/tests$ clang --version
clang version 1.1 (branches/release_27)
Target: x86_64-pc-linux-gnu
Thread model: posix

Same test passes with:
austin at midna:~/wine-clang/dlls/kernel32/tests$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ./configure --enable-languages=c,c++
Thread model: posix
gcc version 4.6.0 20100821 (experimental) (GCC) 

stripped down testcase attached.

On clang, make time.ok gives:
../../../tools/runtest -q -P wine -M kernel32.dll -T ../../.. -p
kernel32_test.exe.so time.c && touch time.ok
time.c:96: Test failed: Test SystemTimeToTzSpecificLocalTime #3. Got 2004-03-02
02:00. Expect hour = 03
time.c:96: Test failed: Test SystemTimeToTzSpecificLocalTime #3. Got 2004-03-02
02:00. Expect hour = 03
time.c:96: Test failed: Test SystemTimeToTzSpecificLocalTime #1. Got 2004-03-02
02:00. Expect hour = 01
time.c:96: Test failed: Test SystemTimeToTzSpecificLocalTime #2. Got 2004-03-02
02:00. Expect hour = 01
time.c:96: Test failed: Test SystemTimeToTzSpecificLocalTime #3. Got 2004-03-02
02:00. Expect hour = 03
time.c:96: Test failed: Test SystemTimeToTzSpecificLocalTime #3. Got 2004-03-17
02:00. Expect hour = 03
make: *** [time.ok] Error 6

on gcc, passes without error.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list