On Jun  9, 2020, Richard Biener <richard.guent...@gmail.com> wrote:

> How about simply unconditionally doing dump_flags | TDF_SLIM here
> to have the whole mem_expr on one line.

SGTM

> OK with that change.

Thanks, here's what I'm installing.


slim up mem exprs to avoid line breaks in -fverbose-asm

From: Alexandre Oliva <ol...@adacore.com>

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.
---
 print-rtl.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git gcc/print-rtl.c gcc/print-rtl.c
index 611ea07..25265ef 100644
--- gcc/print-rtl.c
+++ gcc/print-rtl.c
@@ -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
 


-- 
Alexandre Oliva, freedom fighter    he/him    https://FSFLA.org/blogs/lxo/
Free Software Evangelist              Stallman was right, but he's left :(
GNU Toolchain Engineer           Live long and free, and prosper ethically

Reply via email to