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 to (almost) completly update frv port to use target hooks


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~


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