aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl-tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rtl-tests.c')
-rw-r--r--gcc/rtl-tests.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/rtl-tests.c b/gcc/rtl-tests.c
index 6b3ef76..43665ba 100644
--- a/gcc/rtl-tests.c
+++ b/gcc/rtl-tests.c
@@ -65,9 +65,8 @@ assert_rtl_dump_eq (const location &loc, const char *expected_dump, rtx x)
{
named_temp_file tmp_out (".rtl");
FILE *outfile = fopen (tmp_out.get_filename (), "w");
- flag_compact = true;
- print_rtl (outfile, x);
- flag_compact = false;
+ rtx_writer w (outfile, 0, false, true);
+ w.print_rtl (x);
fclose (outfile);
char *dump = read_file (SELFTEST_LOCATION, tmp_out.get_filename ());