This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Trivial rl78 build fix
- From: Jeff Law <law at redhat dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 13 Jun 2018 08:47:15 -0600
- Subject: Trivial rl78 build fix
My tester flagged rl78 as failing to build due to a trivial error.
Specifically the rl78 backend was passing integer 0 as the flags
argument to print_rtl_with_bb. The argument should either be omitted
completely (there's an appropriate overload) or use TDF_NONE.
Fixed thusly. Verified the rl78 port builds again. Tester will do some
deeper testing overnight (libgcc, newlib). Installing on the trunk.
Jeff
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5b15216cdd5..e74509fa3f9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2018-06-13 Jeff Law <law@redhat.com>
+
+ * config/rl78/rl78.c (move_elim_pass): Use TDF_NONE rather than
+ integer 0 for argument to print_rtl_with_bb.
+ (rl78_reorg): Likewise.
+
2018-06-13 David Malcolm <dmalcolm@redhat.com>
* config/arc/arc.c (hwloop_optimize): Strengthen local "end_label"
diff --git a/gcc/config/rl78/rl78.c b/gcc/config/rl78/rl78.c
index 8346c9c31e0..03c78fc7549 100644
--- a/gcc/config/rl78/rl78.c
+++ b/gcc/config/rl78/rl78.c
@@ -228,7 +228,7 @@ move_elim_pass (void)
}
if (dump_file)
- print_rtl_with_bb (dump_file, get_insns (), 0);
+ print_rtl_with_bb (dump_file, get_insns (), TDF_NONE);
return 0;
}
@@ -4317,7 +4317,7 @@ rl78_reorg (void)
if (dump_file)
{
fprintf (dump_file, "\n================DEVIRT:=AFTER=ALLOC=PHYSICAL=REGISTERS================\n");
- print_rtl_with_bb (dump_file, get_insns (), 0);
+ print_rtl_with_bb (dump_file, get_insns (), TDF_NONE);
}
rl78_propogate_register_origins ();
@@ -4326,7 +4326,7 @@ rl78_reorg (void)
if (dump_file)
{
fprintf (dump_file, "\n================DEVIRT:=AFTER=PROPOGATION=============================\n");
- print_rtl_with_bb (dump_file, get_insns (), 0);
+ print_rtl_with_bb (dump_file, get_insns (), TDF_NONE);
fprintf (dump_file, "\n======================================================================\n");
}