OSDN Git Service

* expr.c (expand_expr): Don't mark memory for non-constants as
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Dec 2001 07:51:59 +0000 (07:51 +0000)
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Dec 2001 07:51:59 +0000 (07:51 +0000)
constant.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48338 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/expr.c

index 82365dd..6af9545 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-27  Geoff Keating  <geoffk@redhat.com>
+
+       * expr.c (expand_expr): Don't mark memory for non-constants as
+       constant.
+
 Thu Dec 27 20:39:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
        * integrate.c (copy_rtx_and_substitute, case MEM): If inlining
index 92a01dc..98a56cd 100644 (file)
@@ -8492,10 +8492,7 @@ expand_expr (exp, target, tmode, modifier)
                {
                  /* If this object is in a register, it can't be BLKmode.  */
                  tree inner_type = TREE_TYPE (TREE_OPERAND (exp, 0));
-                 tree nt = build_qualified_type (inner_type,
-                                                 (TYPE_QUALS (inner_type)
-                                                  | TYPE_QUAL_CONST));
-                 rtx memloc = assign_temp (nt, 1, 1, 1);
+                 rtx memloc = assign_temp (inner_type, 1, 1, 1);
 
                  if (GET_CODE (op0) == PARALLEL)
                    /* Handle calls that pass values in multiple