Fix gfc_conv_expr_val

Paul Brook paul@codesourcery.com
Thu Aug 4 04:03:00 GMT 2005


gfc_conv_expr_val is supposed to translate an expression, and ensure that no 
cleanups are required after using the expression. It appears that this has 
been broken pretty much forever, and it instead just discards the cleanups.

The attached patch fixes this, and updates a few related comments.

Tested on i686-linux.
Applied to mainline and 4.0-branch.

Paul

2005-08-04  Paul Brook  <paul@codesourcery.com>

	* trans-expr.c (gfc_conv_expr, gfc_conv_expr_type): Update comments.
	(gfc_conv_expr_lhs): Fix assertion.
	(gfc_conv_expr_val): Merge post block.  Set se.expr to new value.
	* trans.h: Move and update comments.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: text/x-diff
Size: 3552 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20050804/78426ba0/attachment.bin>


More information about the Fortran mailing list