slim up mem exprs to avoid line breaks in -fverbose-asm
authorAlexandre Oliva <oliva@adacore.com>
Thu, 11 Jun 2020 02:58:23 +0000 (23:58 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Thu, 11 Jun 2020 02:58:23 +0000 (23:58 -0300)
An asm operand with a "VIEW_CONVERT_EXPR<struct {
  [...]
}>" will output the definition of the struct as asm code.  Oops.

Enable TDF_SLIM in print_mem_expr to avoid such line breaks.

for  gcc/ChangeLog

* print-rtl.c (print_mem_expr): Enable TDF_SLIM in dump_flags.

gcc/print-rtl.c

index 611ea07..25265ef 100644 (file)
@@ -183,7 +183,8 @@ void
 print_mem_expr (FILE *outfile, const_tree expr)
 {
   fputc (' ', outfile);
-  print_generic_expr (outfile, CONST_CAST_TREE (expr), dump_flags);
+  print_generic_expr (outfile, CONST_CAST_TREE (expr),
+                     dump_flags | TDF_SLIM);
 }
 #endif