diff options
author | Jason Merrill <jason@casey.cygnus.com> | 2000-05-01 21:49:37 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2000-05-01 17:49:37 -0400 |
commit | 8eec72ec419d19a45752d865d78057c80563e579 (patch) | |
tree | 736b8a35e2ce750589a1fc71fc97a50f8ab7e7de /gcc | |
parent | e803d3b218c6f3861dd7081a63d057d3eec1b368 (diff) | |
download | gcc-8eec72ec419d19a45752d865d78057c80563e579.zip gcc-8eec72ec419d19a45752d865d78057c80563e579.tar.gz gcc-8eec72ec419d19a45752d865d78057c80563e579.tar.bz2 |
integrate.c (copy_decl_for_inlining): Copy TREE_READONLY and TREE_THIS_VOLATILE.
* integrate.c (copy_decl_for_inlining): Copy TREE_READONLY and
TREE_THIS_VOLATILE.
From-SVN: r33589
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/integrate.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0b1ed1b..f04e8cb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-05-01 Jason Merrill <jason@casey.cygnus.com> + + * integrate.c (copy_decl_for_inlining): Copy TREE_READONLY and + TREE_THIS_VOLATILE. + 2000-05-01 Richard Henderson <rth@cygnus.com> * ifcvt.c (noce_emit_cmove): Conditionally compile call to diff --git a/gcc/integrate.c b/gcc/integrate.c index ffecfa44..d22dbfb 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -333,6 +333,8 @@ copy_decl_for_inlining (decl, from_fn, to_fn) new PARM_DECL. */ copy = build_decl (VAR_DECL, DECL_NAME (decl), TREE_TYPE (decl)); TREE_ADDRESSABLE (copy) = TREE_ADDRESSABLE (decl); + TREE_READONLY (copy) = TREE_READONLY (decl); + TREE_THIS_VOLATILE (copy) = TREE_THIS_VOLATILE (decl); } else { |