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


On 28 August 2007 15:10, Richard Guenther wrote:

> 
> Or maybe on ppc/spu enum bitfields are signed and the following
> 
>   DECL_FUNCTION_CODE (decl)  = -1;
>   gcc_assert (DECL_FUNCTION_CODE (decl) >= function_code);
> 
> doesnt work?

  I saw what you did there, and thought it slightly peculiar.  Wouldn't

    DECL_FUNCTION_CODE (decl) = function_code;
    gcc_assert (DECL_FUNCTION_CODE (decl) == function_code);

have worked just as well, or is there some gotcha you were trying to avoid with
the dead store trick?


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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