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: [addrmodes] Tame LEGITIMIZE_ADDRESS / Refactoring for mode-dependent addresses


On Thu, 24 Aug 2006, Paolo Bonzini wrote:
> At the same time I'm
> removing the last occurrences of GO_IF_LEGITIMATE_ADDRESS in
> machine-dependent code.
>
> In addition, defining LEGITIMIZE_ADDRESS is now optional.
(Sorry, can't quote attached patches in pine.)

Please, no "{}" or "do {} while (0)" definitions: when
necessary, empty works just as well.

When applicable, removing the macro as a mandatory definition
is, as you did right, but please no commented-out macro
definition.  If there's a comment that deserves keeping, append
to it something like:  ", but now handled by the default
definition/code, making this comment about LEGITIMIZE_EXISTENCE
historical" but please remove the macro definition completely,
don't comment it out.

This sweeping comment was for your changes as well as Mark Shinwell's
>          * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Change to no-op.
and any similar ones.

brgds, H-P
PS.  Thanks for your work!


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