[LLVMbugs] Trouble Building llvm-gcc

Bill Wendling isanbard at gmail.com
Sun Nov 5 22:55:00 PST 2006

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:

typedef signed _Unwind_Sword __attribute__((__mode__(__word__)));
typedef unsigned _Unwind_Ptr __attribute__((__mode__(__pointer__)));
typedef unsigned _Unwind_Internal_Ptr __attribute__((__mode__ 

int read_encoded_value_with_base (unsigned char encoding, _Unwind_Ptr  
                                   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?


More information about the llvm-bugs mailing list