aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/avr/avr-log.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/avr/avr-log.c')
-rw-r--r--gcc/config/avr/avr-log.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/config/avr/avr-log.c b/gcc/config/avr/avr-log.c
index 1cd7b028c06..aacaed04ef1 100644
--- a/gcc/config/avr/avr-log.c
+++ b/gcc/config/avr/avr-log.c
@@ -146,7 +146,13 @@ avr_log_vadump (FILE *file, const char *caller, va_list ap)
}
case 'T':
- print_node_brief (file, "", va_arg (ap, tree), 3);
+ {
+ tree t = va_arg (ap, tree);
+ if (NULL_TREE == t)
+ fprintf (file, "<NULL-TREE>");
+ else
+ print_node_brief (file, "", t, 3);
+ }
break;
case 'd':