[LLVMbugs] [Bug 15406] New: To use the Clang compiler C program: <inline asm>: 3:32: error: Unexpected token!
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Mar 1 03:44:20 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=15406
Bug ID: 15406
Summary: To use the Clang compiler C program: <inline asm>:
3:32: error: Unexpected token!
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Driver
Assignee: unassignedclangbugs at nondot.org
Reporter: ipvb at qq.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Clang Tunk svn version 176346
bd.c
/////////////
#include <stdio.h>
#include <windows.h>
int main()
{
printf("Hello world");
//MessageBox(NULL,"Use Clang Build","Clang",MB_OK);
return 0;
}
/////////////
cmd
LLVM/Clang 3.3 Trunk Environment Base on Visual Studio 2012 Build
E:\ClangOnWin\Build\_CPack_Packages\win32\NSIS\LLVM-3.3.1-win32>clang bd.c -v
clang version 3.3 (trunk)
Target: i686-pc-win32
Thread model: posix
"E:/ClangOnWin/Build/_CPack_Packages/win32/NSIS/LLVM-3.3.1-win32/bin/clang.exe"
-cc1 -tri
ple i686-pc-win32 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier
-main-file-na
me bd.c -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstruct
or-aliases -target-cpu pentium4 -momit-leaf-frame-pointer -v -resource-dir
"E:/ClangOnWin/
Build/_CPack_Packages/win32/NSIS/LLVM-3.3.1-win32/bin\\..\\lib\\clang\\3.3"
-internal-isys
tem
E:/ClangOnWin/Build/_CPack_Packages/win32/NSIS/LLVM-3.3.1-win32/bin/../lib/clang/3.3/i
nclude -internal-isystem
"E:\\ClangOnWin\\Build\\_CPack_Packages\\win32\\NSIS\\LLVM-3.3.1-
win32\\include" -internal-isystem "C:\\Program Files (x86)\\Microsoft Visual
Studio 11.0\\
VC\\INCLUDE" -internal-isystem "C:\\Program Files (x86)\\Microsoft Visual
Studio 11.0\\VC\
\ATLMFC\\INCLUDE" -internal-isystem "C:\\Program Files (x86)\\Windows
Kits\\8.0\\include\\
shared" -internal-isystem "C:\\Program Files (x86)\\Windows
Kits\\8.0\\include\\um" -inter
nal-isystem "C:\\Program Files (x86)\\Windows Kits\\8.0\\include\\winrt"
-ferror-limit 19
-fmessage-length 90 -mstackrealign -fms-extensions -fms-compatibility
-fmsc-version=1300 -
fdelayed-template-parsing -fobjc-runtime=gcc
-fobjc-default-synthesize-properties -fdiagno
stics-show-option -fcolor-diagnostics -backend-option -vectorize-loops -o
D:/Users/HUXIZE~
1/Local/Temp/bd-873910.o -x c bd.c
clang -cc1 version 3.3 based upon LLVM 3.3svn default target i686-pc-win32
#include "..." search starts here:
#include <...> search starts here:
E:/ClangOnWin/Build/_CPack_Packages/win32/NSIS/LLVM-3.3.1-win32/bin/../lib/clang/3.3/incl
ude
E:\ClangOnWin\Build\_CPack_Packages\win32\NSIS\LLVM-3.3.1-win32\include
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\ATLMFC\INCLUDE
C:\Program Files (x86)\Windows Kits\8.0\include\shared
C:\Program Files (x86)\Windows Kits\8.0\include\um
C:\Program Files (x86)\Windows Kits\8.0\include\winrt
End of search list.
<inline asm>:3:32: error: Unexpected token!
mov eax, dword ptr [[esi + 8]]
^
<inline asm>:3:32: error: Unexpected token!
mov eax, dword ptr [[esi + 8]]
^
<inline asm>:3:32: error: Unexpected token!
mov eax, dword ptr [[esi + 8]]
^
3 errors generated.
E:\ClangOnWin\Build\_CPack_Packages\win32\NSIS\LLVM-3.3.1-win32>
..................
when I use Clang++ bd.c -v
No error
this Windows x86 Exe
But
I Build Clang(X64)
use clang bd.c -v
No error
--
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/20130301/83f6375a/attachment.html>
More information about the llvm-bugs
mailing list