This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR middle-end/23199
- From: Ian Lance Taylor <ian at airs dot com>
- To: Eric Botcazou <ebotcazou at libertysurf dot fr>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 17 Oct 2005 21:17:30 -0700
- Subject: Re: [PATCH] Fix PR middle-end/23199
- References: <200510180141.25818.ebotcazou@libertysurf.fr>
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