When there is no MEM_EXPR but a MEM_OFFSET, the offset is concatenated with 
the alias set, which is confusing.

Tested on x86_64-suse-linux, applied on the mainline and 4.8 branch.


2013-11-22  Eric Botcazou  <ebotca...@adacore.com>

        * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.


-- 
Eric Botcazou
Index: print-rtl.c
===================================================================
--- print-rtl.c	(revision 205244)
+++ print-rtl.c	(working copy)
@@ -585,6 +585,8 @@ print_rtx (const_rtx in_rtx)
 
       if (MEM_EXPR (in_rtx))
 	print_mem_expr (outfile, MEM_EXPR (in_rtx));
+      else
+	fputc (' ', outfile);
 
       if (MEM_OFFSET_KNOWN_P (in_rtx))
 	fprintf (outfile, "+" HOST_WIDE_INT_PRINT_DEC, MEM_OFFSET (in_rtx));

Reply via email to