ICE in langhooks.c on SPU
Dave Korn
dave.korn@artimi.com
Tue Aug 28 18:53:00 GMT 2007
On 28 August 2007 15:57, Revital1 Eres wrote:
>> Wow, you mean SPU has more builtins than x86_64? Up the bitfield
>> width of tree.h tree_function_decl.function_code until it no longer ICEs.
>>
>
> Changing the following indeed solves the problem:
>
> Index: tree.h
> ===================================================================
> --- tree.h (revision 127857)
> +++ tree.h (working copy)
> @@ -3312,7 +3312,7 @@
> DECL_FUNCTION_CODE. Otherwise unused.
> ??? The bitfield needs to be able to hold all target function
> codes as well. */
> - ENUM_BITFIELD(built_in_function) function_code : 10;
> + ENUM_BITFIELD(built_in_function) function_code : 11;
> ENUM_BITFIELD(built_in_class) built_in_class : 2;
>
> unsigned static_ctor_flag : 1;
Heh, I thought I was being cautious when I suggested adding a check. I
expected we might run into trouble in the future. I guess the future is now!
Defensive coding FTW!
cheers,
DaveK
--
Can't think of a witty .sigline today....
More information about the Gcc
mailing list