emit-rtl.c (copy_rtx_if_shared): Add comment about its use of copy_rtx_if_shared_1.

* 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
This commit is contained in:
Andrew Pinski 2003-12-22 19:52:30 +00:00 committed by Andrew Pinski
parent 67e053df03
commit ff954f39fb
2 changed files with 9 additions and 1 deletions

View 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.

View 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)
{