diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2011-09-29 16:24:57 +0000 |
---|---|---|
committer | Georg-Johann Lay <gjl@gcc.gnu.org> | 2011-09-29 16:24:57 +0000 |
commit | ab758510b21e7cbb0d08ba6a6b63bb8f9ee1a121 (patch) | |
tree | 1d1f74506ecc51c8e605cf4724167644add18e1e /gcc/config/avr/avr-log.c | |
parent | 39ffb1f923eeab711e43949d0fc289fe36fed2e2 (diff) | |
download | gcc-ab758510b21e7cbb0d08ba6a6b63bb8f9ee1a121.zip gcc-ab758510b21e7cbb0d08ba6a6b63bb8f9ee1a121.tar.gz gcc-ab758510b21e7cbb0d08ba6a6b63bb8f9ee1a121.tar.bz2 |
re PR target/50566 ([avr]: Add support for better logging similar to -mdeb)
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.
From-SVN: r179359
Diffstat (limited to 'gcc/config/avr/avr-log.c')
-rw-r--r-- | gcc/config/avr/avr-log.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/config/avr/avr-log.c b/gcc/config/avr/avr-log.c index 87cbd23..7381d1e 100644 --- a/gcc/config/avr/avr-log.c +++ b/gcc/config/avr/avr-log.c @@ -42,6 +42,7 @@ == known %-codes == + b: bool r: rtx t: tree T: tree (brief) @@ -132,7 +133,7 @@ avr_log_set_caller_f (const char *caller) return avr_log_fdump_f; } -/* Worker function implementing the %-codes and forwarning to +/* Worker function implementing the %-codes and forwarding to respective print/dump function. */ static void @@ -190,6 +191,10 @@ avr_log_vadump (FILE *file, const char *fmt, va_list ap) fprintf (file, "%x", va_arg (ap, int)); break; + case 'b': + fprintf (file, "%s", va_arg (ap, int) ? "true" : "false"); + break; + case 'c': fputc (va_arg (ap, int), file); break; |