[fortran-exp, patch] rework some simplifiers of transformational intrinsics

Daniel Franke franke.daniel@gmail.com
Sat Jan 30 12:11:00 GMT 2010


Hi all.

Attached patch reworks the simplifiers of transformational intrinsics which 
assume a list implementation to access constructor elements directly.

Left to do in simplify.c: implement simplifiers for CSHIFT/EOSHIFT.

Regression tested on i686-pc-linux-gnu. No new regressions.
Ok for fortran-exp branch?

Cheers

	Daniel


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

	* simplify.c (compute_dot_product): Replaced usage of ADVANCE macro
	with direct access access to elements. Adjusted prototype, fixed all
	callers.
	(gfc_simplify_dot_product): Removed duplicate check for zero-sized
	array.
	(gfc_simplify_matmul): Removed usage of ADVANCE macro.
	(gfc_simplify_spread): Removed workaround, directly insert elements
	at a given array position.
	(gfc_simplify_transpose): Likewise.
	(gfc_simplify_pack): Replaced usage of ADVANCE macro with corresponding
	function calls.
	(gfc_simplify_unpack): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: direct-access.diff
Type: text/x-patch
Size: 9722 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100130/68bbffab/attachment.bin>


More information about the Fortran mailing list