Commit 80965c18 by Richard Kenner Committed by Richard Kenner

emit-rtl.c (set_mem_attributes): Fix typo in last change.

	* emit-rtl.c (set_mem_attributes): Fix typo in last change.
	* print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.

From-SVN: r46465
parent 4cc30a9e
Wed Oct 24 12:41:19 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* emit-rtl.c (set_mem_attributes): Fix typo in last change.
* print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
2001-10-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2001-10-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings. * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
......
...@@ -1692,16 +1692,16 @@ set_mem_attributes (ref, t, objectp) ...@@ -1692,16 +1692,16 @@ set_mem_attributes (ref, t, objectp)
if (TYPE_SIZE_UNIT (type) && host_integerp (TYPE_SIZE_UNIT (type), 1)) if (TYPE_SIZE_UNIT (type) && host_integerp (TYPE_SIZE_UNIT (type), 1))
size = GEN_INT (tree_low_cst (TYPE_SIZE_UNIT (type), 1)); size = GEN_INT (tree_low_cst (TYPE_SIZE_UNIT (type), 1));
/* If T is not a type. Otherwise, we may be able to deduce some more /* If T is not a type, we may be able to deduce some more information about
information about the expression. */ the expression. */
if (TYPE_P (t)) if (! TYPE_P (t))
{ {
maybe_set_unchanging (ref, t); maybe_set_unchanging (ref, t);
if (TREE_THIS_VOLATILE (t)) if (TREE_THIS_VOLATILE (t))
MEM_VOLATILE_P (ref) = 1; MEM_VOLATILE_P (ref) = 1;
/* Now remove any NOPs: they don't change what the underlying object is. /* Now remove any NOPs: they don't change what the underlying object is.
Likewise for SAVE_EXPR. */ Likewise for SAVE_EXPR. */
while (TREE_CODE (t) == NOP_EXPR || TREE_CODE (t) == CONVERT_EXPR while (TREE_CODE (t) == NOP_EXPR || TREE_CODE (t) == CONVERT_EXPR
|| TREE_CODE (t) == NON_LVALUE_EXPR || TREE_CODE (t) == SAVE_EXPR) || TREE_CODE (t) == NON_LVALUE_EXPR || TREE_CODE (t) == SAVE_EXPR)
t = TREE_OPERAND (t, 0); t = TREE_OPERAND (t, 0);
......
...@@ -453,9 +453,12 @@ print_rtx (in_rtx) ...@@ -453,9 +453,12 @@ print_rtx (in_rtx)
case MEM: case MEM:
fputs (" [", outfile); fputs (" [", outfile);
fprintf (outfile, HOST_WIDE_INT_PRINT_DEC, MEM_ALIAS_SET (in_rtx)); fprintf (outfile, HOST_WIDE_INT_PRINT_DEC, MEM_ALIAS_SET (in_rtx));
if (MEM_DECL (in_rtx) && DECL_NAME (MEM_DECL (in_rtx))) if (MEM_DECL (in_rtx))
fprintf (outfile, " %s", fprintf (outfile, " %s",
IDENTIFIER_POINTER (DECL_NAME (MEM_DECL (in_rtx)))); DECL_NAME (MEM_DECL (in_rtx))
? IDENTIFIER_POINTER (DECL_NAME (MEM_DECL (in_rtx)))
: TREE_CODE (MEM_DECL (in_rtx)) == RESULT_DECL ? "<result>"
: "<anonymous>");
if (MEM_OFFSET (in_rtx)) if (MEM_OFFSET (in_rtx))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment