diff mbox

Add missing space in MEM attributes printing

Message ID 461765721.Kt5dWQJvvC@polaris
State New
Headers show

Commit Message

Eric Botcazou Nov. 22, 2013, 11:18 a.m. UTC
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  <ebotcazou@adacore.com>

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

Patch

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));