projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cb7a25
)
(expand_expr, case CONSTRUCTOR): If TREE_READONLY, set
author
Richard Kenner
<kenner@gcc.gnu.org>
Sun, 10 Dec 1995 13:46:44 +0000
(08:46 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Sun, 10 Dec 1995 13:46:44 +0000
(08:46 -0500)
RTX_UNCHANGING_P in TARGET.
From-SVN: r10696
gcc/expr.c
patch
|
blob
|
history
diff --git
a/gcc/expr.c
b/gcc/expr.c
index
795ec85
..
7af6750
100644
(file)
--- a/
gcc/expr.c
+++ b/
gcc/expr.c
@@
-4539,6
+4539,13
@@
expand_expr (exp, target, tmode, modifier)
MEM_IN_STRUCT_P (target) = 1;
}
}
+
+ if (TREE_READONLY (exp))
+ {
+ target = copy_rtx (target);
+ RTX_UNCHANGING_P (target) = 1;
+ }
+
store_constructor (exp, target);
return target;
}