<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 7 February 2014 16:46, Richard Smith <span dir="ltr"><<a href="mailto:richard@metafoo.co.uk" target="_blank">richard@metafoo.co.uk</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">I've had a look and I can't reproduce the failures locally (not even under valgrind). Still investigating...</div>

</blockquote><div><br></div><div>It appears to require building with GCC -O1 (or at least, not -O0). Valgrind says:</div><div><br></div><div><div><b>==28558== Use of uninitialised value of size 8</b><br></div><div>==28558==    at 0x221B3A2: llvm::FoldingSetImpl::FindNodeOrInsertPos(llvm::FoldingSetNodeID const&, void*&) (third_party/llvm/llvm/lib/Support/FoldingSet.cpp:286)</div>

<div>==28558==    by 0x121136D: clang::ASTContext::getFunctionType(clang::QualType, llvm::ArrayRef<clang::QualType>, clang::FunctionProtoType::ExtProtoInfo const&) const (third_party/llvm/llvm/include/llvm/ADT/FoldingSet.h:531)</div>

<div>==28558==    by 0xEF9066: clang::Sema::DeclareGlobalAllocationFunction(clang::DeclarationName, clang::QualType, clang::QualType, clang::QualType, bool) (third_party/llvm/llvm/tools/clang/lib/Sema/SemaExprCXX.cpp:2101)</div>

<div>==28558==    by 0xEF9510: clang::Sema::DeclareGlobalNewDelete() (third_party/llvm/llvm/tools/clang/lib/Sema/SemaExprCXX.cpp:2019)</div><div>==28558==    by 0xEFE054: clang::Sema::FindAllocationFunctions(clang::SourceLocation, clang::SourceRange, bool, clang::QualType, bool, llvm::MutableArrayRef<clang::Expr*>, clang::FunctionDecl*&, clang::FunctionDecl*&) (third_party/llvm/llvm/tools/clang/lib/Sema/SemaExprCXX.cpp:1658)</div>

</div><div><div>==28558==    by 0xF0A876: clang::Sema::BuildCXXNew(clang::SourceRange, bool, clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::SourceRange, clang::QualType, clang::TypeSourceInfo*, clang::Expr*, clang::SourceRange, clang::Expr*, bool) (third_party/llvm/llvm/tools/clang/lib/Sema/SemaExprCXX.cpp:1404)</div>

<div>==28558==    by 0xF0BA9B: clang::Sema::ActOnCXXNew(clang::SourceLocation, bool, clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::SourceRange, clang::Declarator&, clang::Expr*) (third_party/llvm/llvm/tools/clang/lib/Sema/SemaExprCXX.cpp:1125)</div>

<div>==28558==    by 0xCC83D2: clang::Parser::ParseCXXNewExpression(bool, clang::SourceLocation) (third_party/llvm/llvm/tools/clang/lib/Parse/ParseExprCXX.cpp:2576)</div><div>==28558==    by 0xCD2E42: clang::Parser::ParseCastExpression(bool, bool, bool&, clang::Parser::TypeCastState) (third_party/llvm/llvm/tools/clang/lib/Parse/ParseExpr.cpp:1100)</div>

<div>==28558==    by 0xCD3170: clang::Parser::ParseCastExpression(bool, bool, clang::Parser::TypeCastState) (third_party/llvm/llvm/tools/clang/lib/Parse/ParseExpr.cpp:417)</div></div><div><div>==28558==    by 0xCD323C: clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) (third_party/llvm/llvm/tools/clang/lib/Parse/ParseExpr.cpp:169)</div>

<div>==28558==    by 0xCECC59: clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&, clang::Parser::ParsedTemplateInfo const&) (third_party/llvm/llvm/tools/clang/include/clang/Parse/Parser.h:1484)</div>

<div><b>==28558==  Uninitialised value was created by a stack allocation</b></div><div>==28558==    at 0xEF8A27: clang::Sema::DeclareGlobalAllocationFunction(clang::DeclarationName, clang::QualType, clang::QualType, clang::QualType, bool) (third_party/llvm/llvm/tools/clang/lib/Sema/SemaExprCXX.cpp:2044)</div>

</div><div><br></div><div>Nick</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="">

<div class="h5"><div class="gmail_extra"><div class="gmail_quote">On Fri, Feb 7, 2014 at 4:07 PM, Renato Golin <span dir="ltr"><<a href="mailto:renato.golin@linaro.org" target="_blank">renato.golin@linaro.org</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>On 7 February 2014 22:39, Richard Smith <<a href="mailto:richard-llvm@metafoo.co.uk" target="_blank">richard-llvm@metafoo.co.uk</a>> wrote:<br>



> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=201000&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=201000&view=rev</a><br>
> Log:<br>
> Fold together two repeated identical 'if's.<br>
<br>
<br>
</div>hi Richard,<br>
<br>
Doesn't look like your commit broke it, but do you mind having a look?<br>
<br>
<a href="http://lab.llvm.org:8011/builders/clang-native-arm-cortex-a9/builds/15596" target="_blank">http://lab.llvm.org:8011/builders/clang-native-arm-cortex-a9/builds/15596</a><br>
<br>
cheers,<br>
-renato<br>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div></div></div>