[Patch,AVR]: PR50566: Better log output with -mdeb/-mlog= [2/n]
Georg-Johann Lay
avr@gjlay.de
Thu Sep 29 15:26:00 GMT 2011
This is the second patch in this series.
Functions that formerly used fprintf/debug_rtx now use avr_edump and the use
sites of TARGET_ALL_DEBUG are mapped to respective flags of avr_log.
avr_log_vadump uses %b to print bool.
The patch adds outputs for the results of avr_rtx_costs and wraps the worker
function.
Ok to apply?
Johann
PR target/50566
* config/avr/avr-log.c (avr_log_vadump): Use %b to print bool.
* config/avr/avr.c (avr_rtx_costs_1): New static function, renamed
from avr_rtx_costs.
(avr_legitimate_address_p): Use avr_edump to print log information
filtered by avr_log.
(extra_constraint_Q): Ditto.
(avr_legitimize_address): Ditto.
(avr_rtx_costs): Ditto. Rewrite as wrapper for avr_rtx_costs_1.
(final_prescan_insn): Use avr_log.rtx_costs as filter.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: better-log-4.diff
Type: text/x-patch
Size: 7563 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110929/443e158e/attachment.bin>
More information about the Gcc-patches
mailing list