[PATCH] Re: [lno] optimizing return statements

Andrew Pinski pinskia@physics.uc.edu
Fri Mar 19 08:14:00 GMT 2004


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 1.1.2.1038.2.3
diff -u -p -r1.1.2.1038.2.3 ChangeLog.tree-ssa
--- ChangeLog.tree-ssa	9 Mar 2004 07:20:35 -0000	1.1.2.1038.2.3
+++ 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  <rakdver@atrey.karlin.mff.cuni.cz>
+
+	* tree-cfg.c (tree_redirect_edge_and_branch_1): Allow to redirect
+	RETURN_EXPR branches.
+
  2004-02-26  Andrew Pinski  <pinskia@physics.uc.edu>

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


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: temp1.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20040319/667324c4/attachment.txt>


More information about the Gcc-patches mailing list