This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Remove SH_DIV_CALL2
- From: Oleg Endo <oleg dot endo at t-online dot de>
- To: Yoshinori Sato <ysato at users dot sourceforge dot jp>, Oleg Endo <olegendo at gcc dot gnu dot org>, gcc-patches at gcc dot gnu dot org
- Date: Sun, 01 May 2016 13:01:07 +0900
- Subject: Re: Remove SH_DIV_CALL2
- Authentication-results: sourceware.org; auth=none
- References: <87vb2y8mtk dot wl-ysato at users dot sourceforge dot jp>
On Sun, 2016-05-01 at 12:43 +0900, Yoshinori Sato wrote:
> Build failed on sh-*-linux and sh-*-netbsd.
> Please update.
Thanks for spotting it and for the patch.
I've committed it as r235688 on your behalf.
Cheers,
Oleg
>
> diff --git a/gcc/config/sh/linux.h b/gcc/config/sh/linux.h
> index 09e966b..6117b9d 100644
> --- a/gcc/config/sh/linux.h
> +++ b/gcc/config/sh/linux.h
> @@ -117,13 +117,6 @@ along with GCC; see the file COPYING3. If not
> see
> #define DBX_REGISTER_NUMBER(REGNO) \
> (((REGNO) == 16) ? 16 : SH_DBX_REGISTER_NUMBER (REGNO))
>
> -/* Since libgcc is compiled with -fpic for this target, we can't use
> - __sdivsi3_1 as the division strategy for -O0 and -Os. */
> -#undef SH_DIV_STRATEGY_DEFAULT
> -#define SH_DIV_STRATEGY_DEFAULT SH_DIV_CALL2
> -#undef SH_DIV_STR_FOR_SIZE
> -#define SH_DIV_STR_FOR_SIZE "call2"
> -
> /* Install the __sync libcalls. */
> #undef TARGET_INIT_LIBFUNCS
> #define TARGET_INIT_LIBFUNCS sh_init_sync_libfuncs
> diff --git a/gcc/config/sh/netbsd-elf.h b/gcc/config/sh/netbsd-elf.h
> index e658018..c5c75a4 100644
> --- a/gcc/config/sh/netbsd-elf.h
> +++ b/gcc/config/sh/netbsd-elf.h
> @@ -80,13 +80,6 @@ do
> \
> }
> \
> while (0)
>
> -/* Since libgcc is compiled with -fpic for this target, we can't use
> - __sdivsi3_1 as the division strategy for -O0 and -Os. */
> -#undef SH_DIV_STRATEGY_DEFAULT
> -#define SH_DIV_STRATEGY_DEFAULT SH_DIV_CALL2
> -#undef SH_DIV_STR_FOR_SIZE
> -#define SH_DIV_STR_FOR_SIZE "call2"
> -
> #undef SUBTARGET_OVERRIDE_OPTIONS
> #define SUBTARGET_OVERRIDE_OPTIONS
> \
> do
> \
>