[PATCH] Fix gfortran ICE with a call to alternate return subroutine (take 2)

Steve Kargl sgk@troutmask.apl.washington.edu
Sat Jun 11 23:19:00 GMT 2005


On Mon, Jun 06, 2005 at 03:55:28PM -0400, Jakub Jelinek wrote:
> 
> http://gcc.gnu.org/ml/gcc-patches/2005-05/msg02179.html
> 
> now longer applies cleanly, so I'm posting an updated patch
> (tested today on both HEAD (i386-linux) and 4.0 branch
> ({i386,x86_64,ppc,ppc64,s390,s390x}-linux)).
> 
> Ok for HEAD and 4.0 once 4.0 branch reopens?
> 
> 2005-06-06  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* trans-expr.c (gfc_conv_function_call): Return int instead of
> 	void.  Use a local variable for has_alternate_specifier and
> 	return it.  Avoid modification of function type's return value
> 	in place, since it may be shared.
> 	* trans.h (has_alternate_specifier): Remove.
> 	(gfc_conv_function_call): Change return type.
> 	* trans-stmt.c (has_alternate_specifier): Remove.
> 	(gfc_trans_call): Add a local has_alternate_specifier variable,
> 	set it from gfc_conv_function_call return value.
> 
> 	* gfortran.dg/altreturn_1.f90: New test.
> 

Jakub,  I was going through my back log of email and noticed
Tobi has okay this commit, but it looks as if if has not been
applied.  Did I miss a commit or ChangeLog entry?


-- 
Steve



More information about the Fortran mailing list