Skip to content

wine's kernel32/time test fails with clang, passes with gcc #8455

Closed
@llvmbot

Description

@llvmbot
Bugzilla Link 8083
Resolution INVALID
Resolved on Sep 06, 2010 13:55
Version 2.7
OS Linux
Attachments source example
Reporter LLVM Bugzilla Contributor
CC @asl

Extended Description

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@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@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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclangClang issues not falling into any other categoryinvalidResolved as invalid, i.e. not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions