[LLVMbugs] [Bug 20248] New: -Wl, --no-demangle doesn't work with the MinGW target

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 8 10:50:58 PDT 2014


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

            Bug ID: 20248
           Summary: -Wl,--no-demangle doesn't work with the MinGW target
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: t.poechtrager at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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

-- 
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/20140708/62eff6bd/attachment.html>


More information about the llvm-bugs mailing list