Looks like that break came from <a href="http://llvm.org/viewvc/llvm-project?view=rev&revision=135154" target="_blank">http://llvm.org/viewvc/llvm-project?view=rev&revision=135154</a><div><br></div><div>Judging by <a href="http://llvm.org/docs/doxygen/html/classllvm_1_1ArrayRef.html#a3b1f44186f9787d7ffacb54b62d6798c">this</a> ArrayRef ctor you should be able to simplify those calls by changing the last two arguments from "&foo, 1" to, simply, "foo".<br>
<br><div class="gmail_quote">On Mon, Jul 18, 2011 at 6:59 AM, Jack Howarth <span dir="ltr"><<a href="mailto:howarth@bromo.med.uc.edu" target="_blank">howarth@bromo.med.uc.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Despite the commit of...<br>
<br>
------------------------------------------------------------------------<br>
r135371 | lattner | 2011-07-18 00:25:32 -0400 (Mon, 18 Jul 2011) | 2 lines<br>
<br>
untested patch to de-constify llvm::Type, patch by David Blaikie!<br>
<br>
current dragonegg svn at r135391 still fails to compile against FSF gcc 4.5.3<br>
with the failure...<br>
<br>
In file included from /sw/src/fink.build/dragonegg-gcc45-3.0-1/dragonegg-3.0/src/Convert.cpp:60:<br>
In file included from /sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin11.0.0/4.5.3/plugin/include/tree-flow.h:29:<br>
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin11.0.0/4.5.3/plugin/include/gimple.h:4376:24: warning: implicit truncation from 'int' to bitfield changes value from -32769 to<br>
32767 [-Wconstant-conversion]<br>
gs->gsbase.subcode &= ~GF_PREDICT_TAKEN;<br>
^ ~~~~~~~~~~~~~~~~~<br>
/sw/src/fink.build/dragonegg-gcc45-3.0-1/dragonegg-3.0/src/Convert.cpp:429:64: error: too many arguments to function call, expected 3, have 4<br>
ArgTypes, 3), Ops);<br>
^<br>
/sw/opt/llvm-3.0/include/llvm/Intrinsics.h:71:3: note: 'getDeclaration' declared here<br>
Function *getDeclaration(Module *M, ID id,<br>
^<br>
/sw/src/fink.build/dragonegg-gcc45-3.0-1/dragonegg-3.0/src/Convert.cpp:1674:58: error: too many arguments to function call, expected 3, have 4<br>
ArgTypes, 3), Ops);<br>
^<br>
/sw/opt/llvm-3.0/include/llvm/Intrinsics.h:71:3: note: 'getDeclaration' declared here<br>
Function *getDeclaration(Module *M, ID id,<br>
^<br>
/sw/src/fink.build/dragonegg-gcc45-3.0-1/dragonegg-3.0/src/Convert.cpp:1692:58: error: too many arguments to function call, expected 3, have 4<br>
ArgTypes, 3), Ops);<br>
^<br>
/sw/opt/llvm-3.0/include/llvm/Intrinsics.h:71:3: note: 'getDeclaration' declared here<br>
Function *getDeclaration(Module *M, ID id,<br>
^<br>
/sw/src/fink.build/dragonegg-gcc45-3.0-1/dragonegg-3.0/src/Convert.cpp:1710:58: error: too many arguments to function call, expected 3, have 4<br>
ArgTypes, 2), Ops);<br>
^<br>
/sw/opt/llvm-3.0/include/llvm/Intrinsics.h:71:3: note: 'getDeclaration' declared here<br>
Function *getDeclaration(Module *M, ID id,<br>
^<br>
<br>
and<br>
<br>
In file included from /sw/src/fink.build/dragonegg-gcc45-3.0-1/dragonegg-3.0/src/Convert.cpp:50:<br>
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin11.0.0/4.5.3/plugin/include/tree.h:1554:31: note: instantiated from:<br>
#define TREE_OPERAND(NODE, I) TREE_OPERAND_CHECK (NODE, I)<br>
^<br>
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin11.0.0/4.5.3/plugin/include/tree.h:927:36: note: instantiated from:<br>
#define TREE_OPERAND_CHECK(T, I) ((T)->exp.operands[I])<br>
^<br>
/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin11.0.0/4.5.3/plugin/include/tree.h:1833:3: note: array 'operands' declared here<br>
tree GTY ((special ("tree_exp"),<br>
^<br>
/sw/src/fink.build/dragonegg-gcc45-3.0-1/dragonegg-3.0/src/Convert.cpp:3743:54: error: too many arguments to function call, expected 3, have 4<br>
Ty, 2),<br>
^<br>
/sw/opt/llvm-3.0/include/llvm/Intrinsics.h:71:3: note: 'getDeclaration' declared here<br>
Function *getDeclaration(Module *M, ID id,<br>
^<br>
/sw/src/fink.build/dragonegg-gcc45-3.0-1/dragonegg-3.0/src/Convert.cpp:3790:54: error: too many arguments to function call, expected 3, have 4<br>
Ty, 2), Ops);<br>
^<br>
/sw/opt/llvm-3.0/include/llvm/Intrinsics.h:71:3: note: 'getDeclaration' declared here<br>
Function *getDeclaration(Module *M, ID id,<br>
^<br>
/sw/src/fink.build/dragonegg-gcc45-3.0-1/dragonegg-3.0/src/Convert.cpp:3953:59: error: too many arguments to function call, expected 3, have 4<br>
1),<br>
^<br>
/sw/opt/llvm-3.0/include/llvm/Intrinsics.h:71:3: note: 'getDeclaration' declared here<br>
Function *getDeclaration(Module *M, ID id,<br>
^<br>
/sw/src/fink.build/dragonegg-gcc45-3.0-1/dragonegg-3.0/src/Convert.cpp:4352:56: error: too many arguments to function call, expected 3, have 4<br>
Ty, 2),<br>
^<br>
/sw/opt/llvm-3.0/include/llvm/Intrinsics.h:71:3: note: 'getDeclaration' declared here<br>
Function *getDeclaration(Module *M, ID id,<br>
^<br>
/sw/src/fink.build/dragonegg-gcc45-3.0-1/dragonegg-3.0/src/Convert.cpp:4400:56: error: too many arguments to function call, expected 3, have 4<br>
Ty, 2),<br>
^<br>
/sw/opt/llvm-3.0/include/llvm/Intrinsics.h:71:3: note: 'getDeclaration' declared here<br>
Function *getDeclaration(Module *M, ID id,<br>
^<br>
/sw/src/fink.build/dragonegg-gcc45-3.0-1/dragonegg-3.0/src/Convert.cpp:4448:56: error: too many arguments to function call, expected 3, have 4<br>
Ty, 2),<br>
^<br>
/sw/opt/llvm-3.0/include/llvm/Intrinsics.h:71:3: note: 'getDeclaration' declared here<br>
Function *getDeclaration(Module *M, ID id,<br>
^<br>
/sw/src/fink.build/dragonegg-gcc45-3.0-1/dragonegg-3.0/src/Convert.cpp:4496:56: error: too many arguments to function call, expected 3, have 4<br>
Ty, 2),<br>
^<br>
/sw/opt/llvm-3.0/include/llvm/Intrinsics.h:71:3: note: 'getDeclaration' declared here<br>
Function *getDeclaration(Module *M, ID id,<br>
^<br>
/sw/src/fink.build/dragonegg-gcc45-3.0-1/dragonegg-3.0/src/Convert.cpp:4544:56: error: too many arguments to function call, expected 3, have 4<br>
Ty, 2),<br>
^<br>
/sw/opt/llvm-3.0/include/llvm/Intrinsics.h:71:3: note: 'getDeclaration' declared here<br>
Function *getDeclaration(Module *M, ID id,<br>
^<br>
/sw/src/fink.build/dragonegg-gcc45-3.0-1/dragonegg-3.0/src/Convert.cpp:4592:56: error: too many arguments to function call, expected 3, have 4<br>
Ty, 2),<br>
^<br>
/sw/opt/llvm-3.0/include/llvm/Intrinsics.h:71:3: note: 'getDeclaration' declared here<br>
Function *getDeclaration(Module *M, ID id,<br>
^<br>
/sw/src/fink.build/dragonegg-gcc45-3.0-1/dragonegg-3.0/src/Convert.cpp:4697:77: error: too many arguments to function call, expected 3, have 4<br>
Result = Builder.CreateCall(Intrinsic::getDeclaration(TheModule, Id, &Ty, 1),<br>
~~~~~~~~~~~~~~~~~~~~~~~~~ ^<br>
/sw/opt/llvm-3.0/include/llvm/Intrinsics.h:71:3: note: 'getDeclaration' declared here<br>
Function *getDeclaration(Module *M, ID id,<br>
^<br>
/sw/src/fink.build/dragonegg-gcc45-3.0-1/dragonegg-3.0/src/Convert.cpp:4707:77: error: too many arguments to function call, expected 3, have 4<br>
Intrinsic::sqrt, &Ty, 1),<br>
^<br>
/sw/opt/llvm-3.0/include/llvm/Intrinsics.h:71:3: note: 'getDeclaration' declared here<br>
Function *getDeclaration(Module *M, ID id,<br>
^<br>
/sw/src/fink.build/dragonegg-gcc45-3.0-1/dragonegg-3.0/src/Convert.cpp:4724:77: error: too many arguments to function call, expected 3, have 4<br>
Intrinsic::powi, &Ty, 1),<br>
^<br>
/sw/opt/llvm-3.0/include/llvm/Intrinsics.h:71:3: note: 'getDeclaration' declared here<br>
Function *getDeclaration(Module *M, ID id,<br>
^<br>
/sw/src/fink.build/dragonegg-gcc45-3.0-1/dragonegg-3.0/src/Convert.cpp:4740:76: error: too many arguments to function call, expected 3, have 4<br>
Intrinsic::pow, &Ty, 1),<br>
^<br>
/sw/opt/llvm-3.0/include/llvm/Intrinsics.h:71:3: note: 'getDeclaration' declared here<br>
Function *getDeclaration(Module *M, ID id,<br>
^<br>
/sw/src/fink.build/dragonegg-gcc45-3.0-1/dragonegg-3.0/src/Convert.cpp:5556:50: error: too many arguments to function call, expected 3, have 4<br>
&SBP, 1);<br>
^<br>
/sw/opt/llvm-3.0/include/llvm/Intrinsics.h:71:3: note: 'getDeclaration' declared here<br>
Function *getDeclaration(Module *M, ID id,<br>
^<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div>