From ff954f39fbeef326d649a13e40b0d3184118e135 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Mon, 22 Dec 2003 19:52:30 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 4 ++++ gcc/emit-rtl.c | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a24bbad0cf3..f167724f591 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2003-12-22 Andrew Pinski + * 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. diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index f42df2f0ba2..6558fa73fe9 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -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) {