Skip to content

Dragonegg miscompiles dlls/oleaut32/tests/typelib.c from Wine #11052

@llvmbot

Description

@llvmbot
Bugzilla Link 10680
Version trunk
OS Linux
Blocks llvm/llvm-bugzilla-archive#10682
Attachments preprocessed gcc and dragonegg files
Reporter LLVM Bugzilla Contributor

Extended Description

Dragonegg can compile wine successfully, aside from http://bugs.winehq.org/show_bug.cgi?id=28050. Running its test suite, however, shows a few problems. This is the third one (8 potential).

To reproduce, compile wine with:
$ CC=llvm-gcc ./configure
$ make

then run the test:
$ cd dlls/oleaut32/tests
$ make typelib.ok

this will fail:
austin@debian:~/wine-llvmgcc/dlls/oleaut32/tests$ make typelib.ok
typelib.c:753: Test failed: wrong arg2.Hi32 d10
typelib.c:754: Test failed: wrong arg2.Lo64 5555000000000000
typelib.c:755: Test failed: wrong arg3 type 5555
typelib.c:756: Test failed: wrong arg3 value 55555555
typelib.c:873: Test failed: DispCallFunc failed 80020010

compiling that file with gcc-4.5 with gcc, or using -O0 instead works around the issue. I'll attach preprocessed source files from draognegg and gcc (versions below). If more info is needed, please don't hesitate to ask.

austin@debian:~/wine-dragoneggsvn/dlls/kernel32/tests$ svn info ~/src/dragonegg/
Path: /home/austin/src/dragonegg
URL: http://llvm.org/svn/llvm-project/dragonegg/trunk
Repository Root: http://llvm.org/svn/llvm-project
Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
Revision: 137784
Node Kind: directory
Schedule: normal
Last Changed Author: baldrick
Last Changed Rev: 137718
Last Changed Date: 2011-08-16 07:08:18 -0700 (Tue, 16 Aug 2011)

austin@debian:~/wine-dragoneggsvn/dlls/kernel32/tests$ gcc-4.5 --version
gcc-4.5 (Debian 4.5.3-5) 4.5.3
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillamiscompilationobsoleteIssues with old (unsupported) versions of LLVMwontfixIssue is real, but we can't or won't fix it. Not invalid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions