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] Clean up WORD_REGISTER_OPERATIONS & LOAD_EXTEND_OP tests


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


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