This is the mail archive of the gcc-patches@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: [PATCH] Fix PR middle-end/23199


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


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