This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] sh64-unknown-linux-gnu build failure
- From: Richard Sandiford <rsandifo at redhat dot com>
- To: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- Cc: gcc-patches at gcc dot gnu dot org, joern dot rennecke at st dot com, aoliva at redhat dot com
- Date: Thu, 02 Jun 2005 09:53:32 +0100
- Subject: Re: [PATCH] sh64-unknown-linux-gnu build failure
- References: <20050531.123033.05771775.kazu@cs.umass.edu><429CA3ED.9060003@st.com><20050601.064659.43023035.kkojima@rr.iij4u.or.jp><20050601.212126.90810711.kkojima@rr.iij4u.or.jp>
Kaz Kojima <kkojima@rr.iij4u.or.jp> writes:
> Although I suspect that there is another problem about this ICE,
> I've found that the .opt transition
>
> http://gcc.gnu.org/ml/gcc-patches/2005-05/msg01471.html
>
> changes TARGET_FPU_DOUBLE so to fail for SHmedia. The patch has
> the following hunk:
>
> --
> /* Nonzero if a double-precision FPU is available. */
> -#define TARGET_FPU_DOUBLE ((target_flags & SH4_BIT) || TARGET_SH2A_DOUBLE)
> +#define TARGET_FPU_DOUBLE (TARGET_SH4 || TARGET_SH2A_DOUBLE)
>
> /* Nonzero if an FPU is available. */
> #define TARGET_FPU_ANY (TARGET_SH2E || TARGET_FPU_DOUBLE)
>
> /* Nonzero if we should generate code using type 4 insns. */
> -#define TARGET_SH4 ((target_flags & SH4_BIT) && (target_flags & SH1_BIT))
> +#undef TARGET_SH4
> +#define TARGET_SH4 ((target_flags & MASK_SH4) != 0 && TARGET_SH1)
> --
Argh! Sorry for the breakage, and thanks for fixing it.
Richard