This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ICE in langhooks.c on SPU


> 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;

Thanks,
Revital


> A patch that fixes this this way is pre-approved.
>
> Thanks,
> Richard.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]