This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Minor fixes to MEM stuff
- To: gcc-patches at gcc dot gnu dot org
- Subject: Minor fixes to MEM stuff
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Wed, 24 Oct 01 12:44:57 EDT
This fixes a typo that causes a performance problem and also improves
the display of MEM_DECL.
Not fully tested since bootstraps are broken for other reasons (cfg, sched).
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.
*** emit-rtl.c 2001/10/23 18:51:02 1.215
--- emit-rtl.c 2001/10/24 14:54:34
*************** set_mem_attributes (ref, t, objectp)
*** 1693,1699 ****
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
! information about the expression. */
! if (TYPE_P (t))
{
maybe_set_unchanging (ref, t);
--- 1693,1699 ----
size = GEN_INT (tree_low_cst (TYPE_SIZE_UNIT (type), 1));
! /* If T is not a type, we may be able to deduce some more information about
! the expression. */
! if (! TYPE_P (t))
{
maybe_set_unchanging (ref, t);
*** print-rtl.c 2001/10/17 09:31:36 1.70
--- print-rtl.c 2001/10/24 14:55:40
*************** print_rtx (in_rtx)
*** 454,460 ****
fputs (" [", outfile);
fprintf (outfile, HOST_WIDE_INT_PRINT_DEC, MEM_ALIAS_SET (in_rtx));
! if (MEM_DECL (in_rtx) && DECL_NAME (MEM_DECL (in_rtx)))
fprintf (outfile, " %s",
! IDENTIFIER_POINTER (DECL_NAME (MEM_DECL (in_rtx))));
if (MEM_OFFSET (in_rtx))
--- 454,463 ----
fputs (" [", outfile);
fprintf (outfile, HOST_WIDE_INT_PRINT_DEC, MEM_ALIAS_SET (in_rtx));
! if (MEM_DECL (in_rtx))
fprintf (outfile, " %s",
! 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))