This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] Misc changes
- From: law at redhat dot com
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 23 Jun 2003 11:42:25 -0600
- Subject: [tree-ssa] Misc changes
- Reply-to: law at redhat dot com
The gimplify.c change is something Jason pointed out. Basically it saves us
from having to make a new MODIFY_EXPR. A minor savings.
The java/Make-lang.in simply adds missing dependencies -- which fixes building
with "make -n N".
* gimplify.c (gimplify_modify_expr): Don't create a new MODIFY_EXPR,
reuse the existing one.
* java/Make-lang.in (java-gimplify.o): Add dependencies.
Index: gimplify.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/gimplify.c,v
retrieving revision 1.1.2.59
diff -c -3 -p -r1.1.2.59 gimplify.c
*** gimplify.c 20 Jun 2003 05:58:00 -0000 1.1.2.59
--- gimplify.c 23 Jun 2003 16:07:54 -0000
*************** gimplify_modify_expr (expr_p, pre_p, pos
*** 1896,1903 ****
|| (flag_non_call_exceptions && could_trap_p (*from_p))))
{
tree tmp = get_initialized_tmp_var (*from_p, pre_p);
! *expr_p = build (MODIFY_EXPR, TREE_TYPE (TREE_OPERAND (*expr_p, 0)),
! TREE_OPERAND (*expr_p, 0), tmp);
}
if (want_value)
--- 1896,1902 ----
|| (flag_non_call_exceptions && could_trap_p (*from_p))))
{
tree tmp = get_initialized_tmp_var (*from_p, pre_p);
! TREE_OPERAND (*expr_p, 1) = tmp;
}
if (want_value)
Index: java/Make-lang.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/Make-lang.in,v
retrieving revision 1.88.2.12
diff -c -3 -p -r1.88.2.12 Make-lang.in
*** java/Make-lang.in 22 Jun 2003 20:25:50 -0000 1.88.2.12
--- java/Make-lang.in 23 Jun 2003 16:08:37 -0000
*************** java/xref.o: java/xref.c java/xref.h $(C
*** 336,341 ****
--- 336,343 ----
$(SYSTEM_H) coretypes.h $(TM_H)
java/zextract.o: java/zextract.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H)
\
java/zipfile.h
+ java/java-gimplify.o: java/java-gimplify.c $(CONFIG_H) $(SYSTEM_H) \
+ coretypes.h $(TM_H) $(JAVA_TREE_H) tree-simple.h toplev.h
# jcf-io.o needs $(ZLIBINC) added to cflags.
java/jcf-io.o: java/jcf-io.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \