summaryrefslogtreecommitdiff
path: root/gcc/config/avr/avr-log.c
diff options
context:
space:
mode:
authorgjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4>2011-09-29 16:24:57 +0000
committergjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4>2011-09-29 16:24:57 +0000
commitae86bb4726143f21675038d6b7977ba21035f8d9 (patch)
tree1d1f74506ecc51c8e605cf4724167644add18e1e /gcc/config/avr/avr-log.c
parent2f0e736f35f15ad7624f66562f8e2856b118f6f7 (diff)
downloadgcc-ae86bb4726143f21675038d6b7977ba21035f8d9.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179359 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/avr/avr-log.c')
-rw-r--r--gcc/config/avr/avr-log.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/config/avr/avr-log.c b/gcc/config/avr/avr-log.c
index 87cbd2357ac..7381d1edd39 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;