[PATCH] Fix PR middle-end/23199

Ian Lance Taylor ian@airs.com
Tue Oct 18 04:17:00 GMT 2005


Eric Botcazou <ebotcazou@libertysurf.fr> writes:

> It's an ICE with -O -fprofile-generate on SPARC 64-bit, a regression from 
> 3.4.x present on mainline and 4.0 branch.
> 
> Because the CC is live on an edge, safe_insert_insn_on_edge attempts to save 
> it and restore it by emitting CCmode moves, which are not available on SPARC.

...

>  #ifdef AVOID_CCMODE_COPIES
>    noccmode = true;
>  #else
> -  noccmode = false;
> +  noccmode = !can_copy_p (CCmode);
>  #endif

I guess I have to ask to obvious stupid question: why not define
AVOID_CCMODE_COPIES in sparc.h?

Ian



More information about the Gcc-patches mailing list