From: Peter Bergner Date: Wed, 17 Apr 2019 19:22:15 +0000 (+0000) Subject: ira-conflicts.c (print_allocno_conflicts): Always print something, even for allocno... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=38de8b39ef9202c742226c70484a19f6df84b7cb;p=gcc.git ira-conflicts.c (print_allocno_conflicts): Always print something, even for allocno's with no conflicts. gcc/ * ira-conflicts.c (print_allocno_conflicts): Always print something, even for allocno's with no conflicts. (print_conflicts): Print an extra newline. From-SVN: r270420 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2138006a8b5..3b01ff7cbf6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-04-17 Peter Bergner + + * ira-conflicts.c (print_allocno_conflicts): Always print something, + even for allocno's with no conflicts. + (print_conflicts): Print an extra newline. + 2019-04-17 Segher Boessenkool * auto-inc-dec.c (attempt_change): Set the alignment of the diff --git a/gcc/ira-conflicts.c b/gcc/ira-conflicts.c index 5bd6c0c3d7a..9a3e3811dbd 100644 --- a/gcc/ira-conflicts.c +++ b/gcc/ira-conflicts.c @@ -633,7 +633,12 @@ print_allocno_conflicts (FILE * file, bool reg_p, ira_allocno_t a) ira_object_conflict_iterator oci; if (OBJECT_CONFLICT_ARRAY (obj) == NULL) - continue; + { + fprintf (file, "\n;; total conflict hard regs:\n"); + fprintf (file, ";; conflict hard regs:\n\n"); + continue; + } + if (n > 1) fprintf (file, "\n;; subobject %d:", i); FOR_EACH_OBJECT_CONFLICT (obj, conflict_obj, oci) @@ -683,6 +688,7 @@ print_conflicts (FILE *file, bool reg_p) FOR_EACH_ALLOCNO (a, ai) print_allocno_conflicts (file, reg_p, a); + putc ('\n', file); } /* Print information about allocno or only regno (if REG_P) conflicts