This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Clean up WORD_REGISTER_OPERATIONS & LOAD_EXTEND_OP tests
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Eric Botcazou <ebotcazou at adacore dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 4 Nov 2016 09:49:53 +0100
- Subject: Re: [patch] Clean up WORD_REGISTER_OPERATIONS & LOAD_EXTEND_OP tests
- Authentication-results: sourceware.org; auth=none
- References: <2944236.JHK1hthVPr@polaris>
On Thu, Nov 3, 2016 at 9:56 PM, Eric Botcazou <ebotcazou@adacore.com> wrote:
> Hi,
>
> WORD_REGISTER_OPERATIONS and LOAD_EXTEND_OP are partially used directly as
> preprocessor macros and partially tested in the code. This patch brings a bit
> of consistency into this by converting the remaining macro cases.
>
> Tested on SPARC/Solaris and x86-64/Linux, OK for the mainline?
Ok.
Richard.
>
> 2016-11-03 Eric Botcazou <ebotcazou@adacore.com>
>
> * defaults.h (LOAD_EXTEND_OP): Define if not already defined.
> * combine.c (LOAD_EXTEND_OP): Delete.
> (simplify_comparison): Fix comment on LOAD_EXTEND_OP.
> * cse.c (LOAD_EXTEND_OP): Delete.
> * fold-const.c (LOAD_EXTEND_OP): Likewise.
> * fwprop.c (free_load_extend): Remove #ifdef LOAD_EXTEND_OP/#endif.
> * postreload.c (LOAD_EXTEND_OP): Delete.
> * reload.c (push_reload): Remove #ifdef LOAD_EXTEND_OP/#endif.
> Convert conditional compilation based on WORD_REGISTER_OPERATIONS.
> (find_reloads): Likewise.
> * reload1.c (eliminate_regs_1): Likewise.
> * rtlanal.c (nonzero_bits1): Remove #ifdef LOAD_EXTEND_OP/#endif.
> (num_sign_bit_copies1): Likewise.
>
> --
> Eric Botcazou