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] sh64-unknown-linux-gnu build failure


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


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