[LLVMbugs] Trouble Building llvm-gcc
Chris Lattner
sabre at nondot.org
Mon Nov 6 13:01:53 PST 2006
On Sun, 5 Nov 2006, Bill Wendling wrote:
> Is anyone getting an ICE while building LLVM-GCC on a Mac? I reduced
> it down at least one case which fails. Here's the code:
I'm not sure. llvm-gcc doesn't build for me at all on darwin-x86. Evan
is investigating.
-Chris
> typedef signed _Unwind_Sword __attribute__((__mode__(__word__)));
> typedef unsigned _Unwind_Ptr __attribute__((__mode__(__pointer__)));
> typedef unsigned _Unwind_Internal_Ptr __attribute__((__mode__
> (__pointer__)));
>
> int read_encoded_value_with_base (unsigned char encoding, _Unwind_Ptr
> base,
> const unsigned char *p,
> _Unwind_Ptr *val)
> {
> union unaligned
> {
> unsigned u8 __attribute__ ((mode (DI)));
> } __attribute__((__packed__));
> const union unaligned *u = (const union unaligned *) p;
> _Unwind_Internal_Ptr result;
>
> switch (encoding & 0x0f)
> {
> case 0x00:
> case 0x01:
> case 0x09:
> {
> _Unwind_Sword tmp;
> p = read_sleb128 (p, &tmp);
> }
> case 0x02:
> case 0x03:
> case 0x04:
> result = u->u8;
> }
>
> if (result != 0)
> result += ((encoding & 0x70) == 0x10
> ? (_Unwind_Internal_Ptr) u : base);
> }
>
> This occurs when it recompiles the llvm-gcc source (so when it's
> compiled with xgcc), making it crazy to figure out what's happening.
> Has anyone seen this before or might have a clue what's going on?
>
> Thanks!
> -bw
>
> _______________________________________________
> LLVMbugs mailing list
> LLVMbugs at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
>
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-bugs
mailing list