This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, fortran] PR fortran/53732


Hello Mikael,

On 07/03/2012 09:56 PM, Mikael Morin wrote:
The patch below (which is the one posted on bugzilla) disables reduction handling if subscript is true, so that the reductions are handled from the outer call instead of from the subscript call.
I have finally convinced myself that it is always right, as if there is a reduction in a subscript, gfc_add_loop_ss_code will call gfc_conv_expr_descriptor which will create a temporary, and the reduction will be handled separatedly in a new loop initializing the temporary.


Regression tested on x86_64-unknown-freebsd9.0.
OK for trunk/4.7?

OK. Thanks for the patch. (I believe the patch is correct; I am not 100% sure that it is as the scalarizer tends to confuse me.)


Tobias



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]