diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2003-12-22 19:52:30 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2003-12-22 11:52:30 -0800 |
commit | ff954f39fbeef326d649a13e40b0d3184118e135 (patch) | |
tree | 91d4c3620e4655c700462c8e8f7962bd230cc5b4 | |
parent | 67e053df03acad3c07fbe35b8c8659b6bc4f24dc (diff) | |
download | gcc-ff954f39fbeef326d649a13e40b0d3184118e135.zip gcc-ff954f39fbeef326d649a13e40b0d3184118e135.tar.gz gcc-ff954f39fbeef326d649a13e40b0d3184118e135.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/emit-rtl.c | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a24bbad..f167724 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index f42df2f..6558fa7 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) { |