This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Re: [lno] optimizing return statements

On Mar 12, 2004, at 07:06, Paolo Carlini wrote:

Falk Hueffner wrote:

This breaks bootstrapping on Alpha

Same on x86:

./xgcc -B./ -B/usr/local/gcc-lno/i686-pc-linux-gnu/bin/ -isystem /usr/local/gcc-lno/i686-pc-linux-gnu/include -isystem /usr/local/gcc-lno/i686-pc-linux-gnu/sys-include -L/home/paolo/Gcc/cvs-dirs/lno-branch-build/gcc/../ld -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../lno-branch/gcc/gcc -I../../lno-branch/gcc/gcc/. -I../../lno-branch/gcc/gcc/../include -I../../lno-branch/gcc/gcc/../libbanshee/libcompat -I../../lno-branch/gcc/gcc/../libbanshee -I../../lno-branch/gcc/gcc/../libbanshee/points-to -DL_cmpdi2 -c ../../lno-branch/gcc/gcc/libgcc2.c -o libgcc/./_cmpdi2.o
../../lno-branch/gcc/gcc/libgcc2.c: In function `__cmpdi2':
../../lno-branch/gcc/gcc/libgcc2.c:1068: internal compiler error: in tree_redirect_edge_and_branch, at tree-cfg.c:3742

The problem was I was excepting every thing on the tree-ssa to be also on the lno branch.

So I did a mini merge from the tree-ssa for the support for this optimization.

Thanks, Andrew Pinski

Index: ChangeLog.tree-ssa
RCS file: /cvs/gcc/gcc/gcc/Attic/ChangeLog.tree-ssa,v
retrieving revision
diff -u -p -r1.1.2.1038.2.3 ChangeLog.tree-ssa
--- ChangeLog.tree-ssa	9 Mar 2004 07:20:35 -0000
+++ ChangeLog.tree-ssa	12 Mar 2004 15:27:23 -0000
@@ -8,6 +8,11 @@
 	* tree-ssa-phiopt.c (conditional_replacement): Do not create
 	non-gimple code.

+2004-02-26  Zdenek Dvorak  <>
+	* tree-cfg.c (tree_redirect_edge_and_branch_1): Allow to redirect
+	RETURN_EXPR branches.
 2004-02-26  Andrew Pinski  <>

* tree-ssa-phiopt.c (tree_ssa_phiopt): Split into ...

Attachment: temp1.diff.txt
Description: Text document

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]