[patch, fortran-exp] constructor cleanup

Daniel Franke franke.daniel@gmail.com
Fri Jan 8 22:27:00 GMT 2010


Hi all,

attached patch removes two functions that were implemented for constructors in 
list-style. The changes are simple and mainly straight forward find-and-
replace.

Regression tested on i686-pc-linux-gnu; there are no actual regressions, but a 
failure in initialization_20.f90. That testcase checks for an error message on 
constructors that are too big to be expanded. I'd like to keep the failure for 
now as a reminder to put that check back later on (there's a TODO in the 
appropriate place in the code).

Ok for fortran-exp?

Cheers

	Daniel


2010-01-08  Daniel Franke  <franke.daniel@gmail.com>

	* gfortran.h (gfc_start_constructor): Removed.
	(gfc_get_array_element): Removed.
	* array.c (gfc_start_constructor): Removed, use gfc_get_array_expr 
	instead. Updated all callers.
	(extract_element): Removed.
	(gfc_expand_constructor): Temporarily removed check for
	max-array-constructor. Will be re-introduced later if still required.
	(gfc_get_array_element): Removed, use gfc_constructor_lookup_expr
	instead. Updated all callers.
	* expr.c (find_array_section): Replaced manual lookup of elements
	by gfc_constructor_lookup.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: constructor-cleanup.diff
Type: text/x-patch
Size: 11706 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100108/0ba39e7d/attachment.bin>


More information about the Gcc-patches mailing list