[cfe-commits] [PATCH] Test fix for CodeGen/builtins.c

John Thompson john.thompson.jtsoftware at gmail.com
Thu Oct 15 08:02:34 PDT 2009


With the patch this time.

On Thu, Oct 15, 2009 at 8:01 AM, John Thompson <
john.thompson.jtsoftware at gmail.com> wrote:

> It appears that strcat is a builtin in Microsoft mode, so this patch avoids
> a conflict error, plus a seemingly spurious error on extract_return_addr,
> since it goes away with this chang.  Shall I check it in?:
>
> FAIL: Clang::CodeGen/builtins.c (1 of 1)
> ******************** TEST 'Clang::CodeGen/builtins.c' FAILED
> ********************
> Script:
> --
> C:/Tools/llvm/bin/Debug/clang-cc.exe -emit-llvm -o
> C:\Tools\llvm\tools\clang\test\CodeGen\Output\builtins.c.tmp
> C:\Tools\llvm\tools\clang\te
> st\CodeGen\builtins.c
> not grep __builtin
> C:\Tools\llvm\tools\clang\test\CodeGen\Output\builtins.c.tmp
> --
> Exit Code: 3
> Command Output (stdout):
> --
> Command 0: "C:/Tools/llvm/bin/Debug/clang-cc.exe" "-emit-llvm" "-o"
> "C:\Tools\llvm\tools\clang\test\CodeGen\Output\builtins.c.tmp" "C:\Tools
> \llvm\tools\clang\test\CodeGen\builtins.c"
> Command 0 Result: 3
> Command 0 Output:
>
> Command 0 Stderr:
> C:\Tools\llvm\tools\clang\test\CodeGen\builtins.c:113:3: warning:
> incompatible pointer to integer conversion passing 'void *', expected 'int
> '
>   P(extract_return_addr, (&N));
>   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> <scratch space>:273:1: note: instantiated from:
> __builtin_extract_return_addr
> ^
> C:\Tools\llvm\tools\clang\test\CodeGen\builtins.c:119:6: warning:
> incompatible redeclaration of library function 'strcat'
> void strcat() {}
>      ^
> C:\Tools\llvm\tools\clang\test\CodeGen\builtins.c:119:6: note: 'strcat' is
> a builtin with type 'char *(char *, char const *)'
> Assertion failed: New->getType() == getType() && "replaceAllUses of value
> with new value of different type!", file .\Value.cpp, line 336
> CRT error:
> This application has requested the Runtime to terminate it in an unusual
> way.
> Please contact the application's support team for more information.
>
>
> --
> John Thompson
> John.Thompson.JTSoftware at gmail.com
>
>


-- 
John Thompson
John.Thompson.JTSoftware at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20091015/77aae6d3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: builtins.patch
Type: application/octet-stream
Size: 366 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20091015/77aae6d3/attachment.obj>


More information about the cfe-commits mailing list