[LLVMbugs] [Bug 23715] error: invalid symbol redefinition __asm

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 9 01:01:45 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23715

Javier <javier_3 at runbox.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #7 from Javier <javier_3 at runbox.com> ---
And of course I am compiling with -fms-extensions. Dind't you read my latest
message? I said they are turned on by default when using Clang on Windows. How
else would it compile without errors with -O0 or -O1? Here is the clang
invocation as reported by clang with the -v option:

-cc1 -triple i686-pc-windows-msvc -emit-obj -disable-free -main-file-name
ATfileinput.th -mrelocation-model static -mthread-model posix -fmath-errno
-masm-verbose -mconstructor-aliases -target-cpu pentium4
-momit-leaf-frame-pointer -v -dwarf-column-info -coverage-file
"C:\\Users\\Javier\\Desktop\\Proyecto\\relativa\\ATcrt\\ATfileinput.th"
-resource-dir
"C:\\Users\\Javier\\Clang\\build\\Release\\bin\\..\\lib\\clang\\3.7.0" -D _DLL
-D _MT -internal-isystem
"C:\\Users\\Javier\\Clang\\build\\Release\\bin\\..\\lib\\clang\\3.7.0\\include"
-internal-isystem "C:\\Program Files (x86)\\Microsoft Visual Studio
10.0\\VC\\INCLUDE" -internal-isystem "C:\\Program Files (x86)\\Microsoft Visual
Studio 10.0\\VC\\ATLMFC\\INCLUDE" -internal-isystem "C:\\Program Files
(x86)\\Microsoft SDKs\\Windows\\v7.0A\\include" -O2 -Weverything -std=c11
-fdebug-compilation-dir "C:\\Users\\Javier\\Desktop\\Proyecto\\relativa\\ATcrt"
-ferror-limit 19 -fmessage-length 0 -mstackrealign -fno-signed-char
-fms-extensions -fms-compatibility -fms-compatibility-version=18
-fno-threadsafe-statics -fdelayed-template-parsing -fobjc-runtime=gcc
-fdiagnostics-show-option -vectorize-loops -vectorize-slp -o ATfileinput.o -x c
ATfileinput.th
clang -cc1 version 3.7.0 based upon LLVM 3.7.0svn default target
i686-pc-windows-msvc

And here are more lines of the error report:

In file included from ./to_write_C.c:3:
./to_write_CLANG.c:12:1: error: invalid symbol redefinition
__asm{
^
<inline asm>:9:2: note: instantiated into assembly here
        L__MSASMLABEL_.1__big_loop: xor edx, edx
        ^
In file included from ATfileoutput.th:8:
In file included from ./to_write_C.c:3:
./to_write_CLANG.c:12:1: error: invalid symbol redefinition
__asm{
^
<inline asm>:17:2: note: instantiated into assembly here
        L__MSASMLABEL_.0__small_entry: cmp eax, 10
        ^
In file included from ATfileoutput.th:8:
In file included from ./to_write_C.c:3:
./to_write_CLANG.c:12:1: error: invalid symbol redefinition
__asm{
^
<inline asm>:19:2: note: instantiated into assembly here
        L__MSASMLABEL_.3__small_loop: xor edx, edx
        ^

[...]

-- 
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/20150609/94c010c1/attachment.html>


More information about the llvm-bugs mailing list