]> gcc.gnu.org Git - gcc.git/commitdiff
integrate.c (copy_decl_for_inlining): Copy TREE_READONLY and TREE_THIS_VOLATILE.
authorJason Merrill <jason@casey.cygnus.com>
Mon, 1 May 2000 21:49:37 +0000 (21:49 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 1 May 2000 21:49:37 +0000 (17:49 -0400)
        * integrate.c (copy_decl_for_inlining): Copy TREE_READONLY and
        TREE_THIS_VOLATILE.

From-SVN: r33589

gcc/ChangeLog
gcc/integrate.c

index 0b1ed1bb46014b49f4d16bc157d8e2919b8b0796..f04e8cb2bfa2b41418d302f8881fec7d8da403ad 100644 (file)
@@ -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
index ffecfa44bd85024969807652d022259815e4af5a..d22dbfb7baf9ffec09676aa137819f321f010c92 100644 (file)
@@ -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
     {
This page took 0.08778 seconds and 5 git commands to generate.