emit-rtl.c (copy_rtx_if_shared): Add comment about its use of copy_rtx_if_shared_1.
authorAndrew Pinski <pinskia@physics.uc.edu>
Mon, 22 Dec 2003 19:52:30 +0000 (19:52 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Mon, 22 Dec 2003 19:52:30 +0000 (11:52 -0800)
        * emit-rtl.c (copy_rtx_if_shared): Add comment about its use of
        copy_rtx_if_shared_1.
        (copy_rtx_if_shared_1): Add comment about what the function does.

From-SVN: r74945

gcc/ChangeLog
gcc/emit-rtl.c

index a24bbad0cf33495e14022a7a25483c18ca1d396a..f167724f59141becee1e55c1d3d91230eca434e0 100644 (file)
@@ -1,5 +1,9 @@
 2003-12-22  Andrew Pinski  <pinskia@physics.uc.edu>
 
+       * emit-rtl.c (copy_rtx_if_shared): Add comment about its use of
+       copy_rtx_if_shared_1.
+       (copy_rtx_if_shared_1): Add comment about what the function does.
+
        * c-decl.c (finish_function): Change order of checks.
        (c_expand_body): Likewise.
 
index f42df2f0ba2011c7dc6efa36a07dab5607941799..6558fa73fe95030cf20d15ab6f4516780769f293 100644 (file)
@@ -2760,7 +2760,8 @@ copy_most_rtx (rtx orig, rtx may_share)
 }
 
 /* Mark ORIG as in use, and return a copy of it if it was already in use.
-   Recursively does the same for subexpressions.  */
+   Recursively does the same for subexpressions.  Uses
+   copy_rtx_if_shared_1 to reduce stack space.  */
 
 rtx
 copy_rtx_if_shared (rtx orig)
@@ -2769,6 +2770,9 @@ copy_rtx_if_shared (rtx orig)
   return orig;
 }
 
+/* Mark *ORIG1 as in use, and set it to a copy of it if it was already in
+   use.  Recursively does the same for subexpressions.  */
+
 static void
 copy_rtx_if_shared_1 (rtx *orig1)
 {