[cfe-dev] can't build?

Ted Kremenek kremenek at apple.com
Thu Apr 3 14:32:30 PDT 2008


I think this is an unrelated problem, and I think this was introduced  
after I fixed the problem Mike was reporting.  Please commit your fix!

Thanks!

On Apr 3, 2008, at 1:15 PM, Török Edwin wrote:

> Ted Kremenek wrote:
>> Thanks Mike.  I've submitted a patch that hopefully fixes this.  It
>> builds fine with gcc-4.0.  It looks like your version of gcc is
>> complaining about the typedefs being private.
>>
>>
>
> I get a different build error, see below. Attached patch fixes it.  
> Ok to
> commit?
>
> make: Entering directory `/home/edwin/llvm-svn/llvm/tools/clang/lib/ 
> CodeGen'
> llvm[0]: Compiling CGBuiltin.cpp for Release build
> CGBuiltin.cpp: In member function ‘llvm::Value*
> clang::CodeGen::CodeGenFunction::EmitX86BuiltinExpr(unsigned int,  
> const
> clang::CallExpr*)’:
> CGBuiltin.cpp:478: error: jump to case label
> CGBuiltin.cpp:473: error:   crosses initialization of ‘unsigned int i’
> CGBuiltin.cpp:482: error: jump to case label
> CGBuiltin.cpp:473: error:   crosses initialization of ‘unsigned int i’
> make: ***
> [/home/edwin/llvm-svn/llvm/tools/clang/lib/CodeGen/Release/ 
> CGBuiltin.o]
> Error 1
> make: Leaving directory `/home/edwin/llvm-svn/llvm/tools/clang/lib/ 
> CodeGen'
>
>
> Best regards,
> --Edwin
> Index: lib/CodeGen/CGBuiltin.cpp
> ===================================================================
> --- lib/CodeGen/CGBuiltin.cpp	(revision 49187)
> +++ lib/CodeGen/CGBuiltin.cpp	(working copy)
> @@ -469,12 +469,13 @@
>   }
>   case X86::BI__builtin_ia32_movss:
>     return EmitShuffleVector(Ops[0], Ops[1], 4, 1, 2, 3, "movss");
> -  case X86::BI__builtin_ia32_shufps:
> +  case X86::BI__builtin_ia32_shufps: {
>     unsigned i = cast<ConstantInt>(Ops[2])->getZExtValue();
>     return EmitShuffleVector(Ops[0], Ops[1],
>                              i & 0x3, (i & 0xc) >> 2,
>                              ((i & 0x30) >> 4) + 4,
>                              ((i & 0x60) >> 6) + 4, "shufps");
> +  }
>   case X86::BI__builtin_ia32_punpcklbw128:
>     return EmitShuffleVector(Ops[0], Ops[1], 0, 16, 1, 17, 2, 18, 3,  
> 19,
>                                              4, 20, 5, 21, 6, 22, 7,  
> 23,





More information about the cfe-dev mailing list