[cfe-dev] Newly failing tests on Windows, assert in PCHReader.cpp, new argument

John Thompson john.thompson.jtsoftware at gmail.com
Wed Nov 11 13:29:46 PST 2009


Also, I missed this failing test in my last message:

1>FAIL: Clang::CodeGenCXX/new.cpp (538 of 1739)
1>******************** TEST 'Clang::CodeGenCXX/new.cpp' FAILED
********************
1>Script:
1>--
1>C:/Tools/llvm/bin/Debug/clang-cc.exe
C:\Tools\llvm\tools\clang\test\CodeGenCXX\new.cpp -emit-llvm -o - |
FileCheck C:\Tools\llvm\tools\clang\test\CodeGenCXX\new.cpp
1>--
1>Exit Code: 1
1>Command Output (stdout):
1>--
1>Command 0: "C:/Tools/llvm/bin/Debug/clang-cc.exe"
"C:\Tools\llvm\tools\clang\test\CodeGenCXX\new.cpp" "-emit-llvm" "-o" "-"
1>Command 0 Result: 1
1>Command 0 Output:
1>Command 0 Stderr:
1>C:\Tools\llvm\tools\clang\test\CodeGenCXX\new.cpp:8:7: error: 'operator
new' takes type size_t ('unsigned int') as first parameter
1>void* operator new(unsigned long, void*) throw();
1>      ^
1>1 diagnostic generated.
1>Command 1: "FileCheck" "C:\Tools\llvm\tools\clang\test\CodeGenCXX\new.cpp"
1>Command 1 Result: 1
1>Command 1 Output:
1>Command 1 Stderr:
1>C:\Tools\llvm\tools\clang\test\CodeGenCXX\new.cpp:35:32: error: expected
string not found in input
1> // CHECK: call void @_ZN1TC1Ev
1>                               ^
1><stdin>:1:1: note: scanning from here
1>^
1>--
1>Command Output (stderr):
1>--
1>--


On Wed, Nov 11, 2009 at 12:31 PM, John Thompson <
john.thompson.jtsoftware at gmail.com> wrote:

> 30 tests are failing on Windows, 27 newly since Monday.
>
> 25 of them are due to an assert at line 172 in PCHReader.cpp.
>
> The problem is that the file path appended to the Predefines has been
> converted to use double-'\', whereas the path in OriginalFileName used
> single '/'.
>
> I'm not sure which side to change.
>
> The other is in CodeGenCXX/new-operator-phi.cpp:
>
> 1>  Line 4: 'operator new' takes type size_t ('unsigned int') as first
> parameter
> I'm not sure what you want to do here, whether to change it to use size_t
> and to include stddef.h, or put in a platform conditional.
> -John
>
> --
> 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-dev/attachments/20091111/353de46b/attachment.html>


More information about the cfe-dev mailing list