<div>Hmmm, I tried passing -Xclang "-triple=i686-pc-linux-gnu" to clang.exe, but apparently it conflicts with a -target directive the driver puts in.  But I'm not sure this is the proper format.  The driver didn't like just "-target=i686-pc-linux-gnu" either.</div>

<div> </div>
<div>Is this a bug in the driver, not checking for options being overidden?<br></div>
<div>What does the -dA option do?  I don't see it in "clang -help".</div>
<div> </div>
<div>Which triple should it be using?</div>
<div> </div>
<div>Here's the command output, with the triple option and a -v also:</div>
<div> </div>
<div>FAIL: Clang::CodeGen/2009-10-20-GlobalDebug.c (1 of 1)<br>******************** TEST 'Clang::CodeGen/2009-10-20-GlobalDebug.c' FAILED ********************<br>Script:<br>--<br>C:/Tools/llvm/bin/Debug\clang.EXE -S -g -dA -Xclang "-triple=i686-pc-linux-gnu" -v C:\Tools\llvm\tools\clang\test\CodeGen\2009-10-20-GlobalDebug.c -o - | FileCheck C:\Tools\llvm\tools\clang\test\CodeGen\2009-10-20-GlobalDebug.c<br>
--<br>Exit Code: 1<br>Command Output (stdout):<br>--<br>Command 0: "C:/Tools/llvm/bin/Debug\clang.EXE" "-S" "-g" "-dA" "-Xclang" "-triple=i686-pc-linux-gnu" "-v" "C:\Tools\llvm\tools\clang\test\CodeGen\2009-10-20-GlobalDebug.c" "-o" "-"<br>
Command 0 Result: 1<br>Command 0 Output:</div>
<div><br>Command 0 Stderr:<br>clang version 1.1 (trunk 84674)<br>Target: i686-pc-win32<br>Thread model: posix<br> "C:/Tools/llvm/bin/Debug/clang-cc.exe" -triple i686-pc-win32 -S -disable-free -main-file-name 2009-10-20-GlobalDebug.c --relocation-model static --disable-fp-elim --asm-verbose --unwind-tables=0 --fmath-errno=1 -v -g -fexceptions=0 -fdiagnostics-show-option -triple=i686-pc-linux-gnu -o - -x c C:\Tools\llvm\tools\clang\test\CodeGen\2009-10-20-GlobalDebug.c<br>
clang-cc.exe: for the -triple option: may only occur zero or one times!</div>
<div><br>Command 1: "FileCheck" "C:\Tools\llvm\tools\clang\test\CodeGen\2009-10-20-GlobalDebug.c"<br>Command 1 Result: 1<br>Command 1 Output:</div>
<div><br>Command 1 Stderr:<br>C:\Tools\llvm\tools\clang\test\CodeGen\2009-10-20-GlobalDebug.c:3:52: error: expected string not found in input<br>// CHECK: asciz "global" ## DW_AT_MIPS_linkage_name<br>                                                   ^<br>
<stdin>:1:1: note: scanning from here</div>
<div>^</div>
<div><br>--<br>Command Output (stderr):<br>--<br>--<br><br></div>
<div class="gmail_quote">On Wed, Oct 21, 2009 at 10:54 AM, Douglas Gregor <span dir="ltr"><<a href="mailto:dgregor@apple.com">dgregor@apple.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im"><br>On Oct 21, 2009, at 9:31 AM, Devang Patel wrote:<br><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"><br>On Oct 21, 2009, at 5:38 AM, John Thompson wrote:<br><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Devang,<br><br>On Windows, the 2009-10-20-GlobalDebug.c test fails.  Is it because debug info is not yet supported on Windows?<br>
</blockquote><br>Is that the real reason ? I do not know.<br><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">If so, how could this test be set up to not fail?<br></blockquote><br>Is it possible to xfail or xtarget this test ?<br>
</blockquote><br></div>You could just force the triple...<br><br>       - Doug<br></blockquote></div><br><br clear="all">
<div></div><br>-- <br>John Thompson<br><a href="mailto:John.Thompson.JTSoftware@gmail.com">John.Thompson.JTSoftware@gmail.com</a><br><br>