<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - -Wl,--no-demangle doesn't work with the MinGW target"
href="http://llvm.org/bugs/show_bug.cgi?id=20248">20248</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>-Wl,--no-demangle doesn't work with the MinGW target
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Driver
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>t.poechtrager@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>$ cat test.c
#include <stdio.h>
int main(void)
{
printf("test");
return 0;
}
$ clang -target i686-w64-mingw32 -nostdinc -isystem [...] test.c
-Wl,--no-demangle
i686-w64-mingw32-gcc: error: unrecognized command line option
'-Z-Xlinker-no-demangle'
clang-3.5: error: linker (via gcc) command failed with exit code 1 (use -v to
see invocation)
with '-v':
$ clang -target i686-w64-mingw32 -nostdinc -isystem [...] test.c
-Wl,--no-demangle -v
clang version 3.5.0
Target: i686-w64-windows-gnu
Thread model: posix
"/opt/other/llvm-3.5/bin/clang-3.5" -cc1 -triple i686-w64-windows-gnu
-emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name
test.c -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -target-cpu pentium4 -v -nostdsysteminc -nobuiltininc
-resource-dir /opt/other/llvm-3.5/bin/../lib/clang/3.5.0 -isystem
/opt/other/llvm-3.5/bin/../lib/clang/3.5.0/include -isystem
/opt/other/mingw/i686-w64-mingw32/include -isystem
/opt/other/mingw/i686-w64-mingw32/include/c++/4.9.0 -isystem
/opt/other/mingw/i686-w64-mingw32/include/c++/4.9.0/i686-w64-mingw32
-fdebug-compilation-dir /home/thomas/tmp -ferror-limit 19 -fmessage-length 237
-mstackrealign -fno-use-cxa-atexit -fobjc-runtime=gcc -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/test-911710.o -x c test.c
clang -cc1 version 3.5.0 based upon LLVM 3.5.0svn default target
x86_64-unknown-linux-gnu
#include "..." search starts here:
#include <...> search starts here:
/opt/other/llvm-3.5/bin/../lib/clang/3.5.0/include
/opt/other/mingw/i686-w64-mingw32/include
/opt/other/mingw/i686-w64-mingw32/include/c++/4.9.0
/opt/other/mingw/i686-w64-mingw32/include/c++/4.9.0/i686-w64-mingw32
End of search list.
"/opt/other/mingw/bin/i686-w64-mingw32-gcc" -nostdinc -isystem
/opt/other/llvm-3.5/bin/../lib/clang/3.5.0/include -isystem
/opt/other/mingw/i686-w64-mingw32/include -isystem
/opt/other/mingw/i686-w64-mingw32/include/c++/4.9.0 -isystem
/opt/other/mingw/i686-w64-mingw32/include/c++/4.9.0/i686-w64-mingw32
-Z-Xlinker-no-demangle -v -m32 -o a.out /tmp/test-911710.o
Using built-in specs.
COLLECT_GCC=/opt/other/mingw/bin/i686-w64-mingw32-gcc
COLLECT_LTO_WRAPPER=/opt/other/mingw/libexec/gcc/i686-w64-mingw32/4.9.0/lto-wrapper
i686-w64-mingw32-gcc: error: unrecognized command line option
'-Z-Xlinker-no-demangle'
Target: i686-w64-mingw32
Configured with: ../configure --target=i686-w64-mingw32 --with-gnu-ld
--with-gnu-as --enable-languages=c,c++ --disable-multilib
--prefix=/opt/other/mingw
Thread model: win32
gcc version 4.9.0 (GCC)
clang-3.5: error: linker (via gcc) command failed with exit code 1 (use -v to
see invocation)
clang version: r212545.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>