Commit 8eec72ec by Jason Merrill Committed by Jason Merrill

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
parent e803d3b2
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> 2000-05-01 Richard Henderson <rth@cygnus.com>
* ifcvt.c (noce_emit_cmove): Conditionally compile call to * ifcvt.c (noce_emit_cmove): Conditionally compile call to
......
...@@ -333,6 +333,8 @@ copy_decl_for_inlining (decl, from_fn, to_fn) ...@@ -333,6 +333,8 @@ copy_decl_for_inlining (decl, from_fn, to_fn)
new PARM_DECL. */ new PARM_DECL. */
copy = build_decl (VAR_DECL, DECL_NAME (decl), TREE_TYPE (decl)); copy = build_decl (VAR_DECL, DECL_NAME (decl), TREE_TYPE (decl));
TREE_ADDRESSABLE (copy) = TREE_ADDRESSABLE (decl); TREE_ADDRESSABLE (copy) = TREE_ADDRESSABLE (decl);
TREE_READONLY (copy) = TREE_READONLY (decl);
TREE_THIS_VOLATILE (copy) = TREE_THIS_VOLATILE (decl);
} }
else else
{ {
......
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