[Patch,AVR]: PR50566: Better log output with -mdeb/-mlog= [4/n]

Georg-Johann Lay avr@gjlay.de
Fri Sep 30 14:58:00 GMT 2011


This is the patch to add log output to LEGITIMIZE_RELOAD_ADDRESS.

The code is moved from macro in avr.h to a new function in avr.c.

Functionality is the same, but IMO it's more convenient to have it as function
than as a quite long macro.

Ok for trunk?

	PR target/50566
	* config/avr/avr-protos.h (avr_legitimize_reload_address): New
	prototype.
	* config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Copy worker code
	from here...
	* config/avr/avr.c (avr_legitimize_reload_address) ...to this new
	function.  Log if avr_log.legitimize_reload_address.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: better-log-lra.diff
Type: text/x-patch
Size: 6968 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110930/2234933b/attachment.bin>


More information about the Gcc-patches mailing list