<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 --- - To use the Clang compiler C program: <inline asm>: 3:32: error: Unexpected token!"
href="http://llvm.org/bugs/show_bug.cgi?id=15406">15406</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>To use the Clang compiler C program: <inline asm>: 3:32: error: Unexpected token!
</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>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</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>ipvb@qq.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>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</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>