[gcc(refs/users/aoliva/heads/testme)] slim up mem exprs to avoid line breaks in -fverbose-asm
Alexandre Oliva
aoliva@gcc.gnu.org
Wed Jun 10 21:24:29 GMT 2020
https://gcc.gnu.org/g:bc3a7f7bb3ae31a9034fe3893f0f7b00f2ab8729
commit bc3a7f7bb3ae31a9034fe3893f0f7b00f2ab8729
Author: Alexandre Oliva <oliva@adacore.com>
Date: Tue Jun 9 23:51:11 2020 -0300
slim up mem exprs to avoid line breaks in -fverbose-asm
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.
Diff:
---
gcc/print-rtl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c
index 611ea079c37..25265efc71b 100644
--- a/gcc/print-rtl.c
+++ b/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
More information about the Gcc-cvs
mailing list