This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to (almost) completly update frv port to use target hooks
- From: Richard Henderson <rth at redhat dot com>
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 4 Sep 2002 13:20:08 -0700
- Subject: Re: Patch to (almost) completly update frv port to use target hooks
- References: <200209041911.PAA07283@caip.rutgers.edu>
On Wed, Sep 04, 2002 at 03:11:02PM -0400, Kaveh R. Ghazi wrote:
> * frv-protos.h (frv_init_builtins, frv_expand_builtin,
> frv_select_section, frv_select_rtx_section,
> frv_encode_section_info, frv_unique_section): Delete.
> * frv.c: Update for target hooks.
> * frv.h (STRIP_NAME_ENCODING, SLOW_ZERO_EXTEND, SELECT_SECTION,
> SELECT_RTX_SECTION, ENCODE_SECTION_INFO, UNIQUE_SECTION,
> EASY_DIV_EXPR, MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Delete.
Ok.
This is a good first cut, but there are other things to fix.
This fragment
if (SDATA_NAME_P (XSTR (XEXP (DECL_RTL (decl), 0), 0))
&& size > 0
&& size <= g_switch_value)
should be the core of the small_data_p hook. With that,
select_section, select_rtx_section, and unique_section
do not need to be overridden.
r~