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] hookize PRINT_OPERAND{,_ADDRESS,_PUNCT_VALID_P}


On Sun, 30 May 2010, Nathan Froyd wrote:

> The patch below moves PRINT_OPERAND{,_ADDRESS,_PUNCT_VALID_P} into a
> target hook.  It also hookizes the x86 backend appropriately.

When converting a macro to a hook you need to update the documentation 
of that macro in tm.texi to document the hook instead (with a note 
remaining about the use of the macro on some ports, until all ports are 
converted and the macro poisoned in system.h).  (This doesn't apply for 
target macros that are undocumented, but these ones are documented.)  I 
note tm.texi also refers to PRINT_OPERAND_ADDRESS in the documentation of 
TARGET_LEGITIMATE_ADDRESS_P, and that also needs updating.

-- 
Joseph S. Myers
joseph@codesourcery.com


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