This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Another trivial patch (typos +minor reorganisation)
- From: Theodore Papadopoulo <Theodore dot Papadopoulo at sophia dot inria dot fr>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 31 Jan 2003 16:13:39 +0100
- Subject: Another trivial patch (typos +minor reorganisation)
ChangeLog:
2002-01-30 Theo Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
* tree-inline.c (remap_block,expand_call_inline): Correct
typo in comment and minor code reorganisation.
Index: gcc/tree-inline.c
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/tree-inline.c,v
retrieving revision 1.42
diff -c -3 -p -r1.42 tree-inline.c
*** gcc/tree-inline.c 29 Jan 2003 10:52:08 -0000 1.42
--- gcc/tree-inline.c 30 Jan 2003 15:13:58 -0000
*************** remap_block (block, decls, id)
*** 265,278 ****
/* Remap the variable. */
new_var = remap_decl (old_var, id);
! /* If we didn't remap this variable, so we can't mess with
its TREE_CHAIN. If we remapped this variable to
something other than a declaration (say, if we mapped it
to a constant), then we must similarly omit any mention
of it here. */
! if (!new_var || !DECL_P (new_var))
! ;
! else
{
TREE_CHAIN (new_var) = BLOCK_VARS (new_block);
BLOCK_VARS (new_block) = new_var;
--- 265,276 ----
/* Remap the variable. */
new_var = remap_decl (old_var, id);
! /* If we didn't remap this variable, we can't mess with
its TREE_CHAIN. If we remapped this variable to
something other than a declaration (say, if we mapped it
to a constant), then we must similarly omit any mention
of it here. */
! if (new_var && DECL_P (new_var))
{
TREE_CHAIN (new_var) = BLOCK_VARS (new_block);
BLOCK_VARS (new_block) = new_var;
*************** expand_call_inline (tp, walk_subtrees, d
*** 1081,1087 ****
/* Recurse, but letting recursive invocations know that we are
inside the body of a TARGET_EXPR. */
! if (TREE_CODE (*tp) == TARGET_EXPR)
{
#ifndef INLINER_FOR_JAVA
int i, len = first_rtl_op (TARGET_EXPR);
--- 1079,1085 ----
/* Recurse, but letting recursive invocations know that we are
inside the body of a TARGET_EXPR. */
! if (TREE_CODE (t) == TARGET_EXPR)
{
#ifndef INLINER_FOR_JAVA
int i, len = first_rtl_op (TARGET_EXPR);
*************** expand_call_inline (tp, walk_subtrees, d
*** 1096,1102 ****
{
if (i == 2)
++id->in_target_cleanup_p;
! walk_tree (&TREE_OPERAND (*tp, i), expand_call_inline, data,
id->tree_pruner);
if (i == 2)
--id->in_target_cleanup_p;
--- 1094,1100 ----
{
if (i == 2)
++id->in_target_cleanup_p;
! walk_tree (&TREE_OPERAND (t, i), expand_call_inline, data,
id->tree_pruner);
if (i == 2)
--id->in_target_cleanup_p;
*************** walk_tree (tp, func, data, htab_)
*** 1656,1662 ****
case BLOCK:
case RECORD_TYPE:
case CHAR_TYPE:
! /* None of thse have subtrees other than those already walked
above. */
break;
--- 1654,1660 ----
case BLOCK:
case RECORD_TYPE:
case CHAR_TYPE:
! /* None of these have subtrees other than those already walked
above. */
break;
--------------------------------------------------------------------
Theodore Papadopoulo
Email: Theodore.Papadopoulo@sophia.inria.fr Tel: (33) 04 92 38 76 01
--------------------------------------------------------------------