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] LBOUND/UBOUND/SHAPE assumed rank support


Hello Mikael,

thanks for your patch series, which not only implements missing parts of the assumed-rank support but also fixes some buglets such as the set_loop_bounds setting or the shape setting for assumed ranks. The patch is okay.

Tobias

On 08/02/2012 04:17 PM, Mikael Morin wrote:
Hello,

as promised, I submit the patch (split to 5 pieces) adding support for
assumed rank actual arguments to the LBOUND/UBOUND/SHAPE intrinsics in
the non-scalar case (without the DIM argument).

Patch 1: Disable shape setting and simplification for assumed rank.
Patch 2: Move and rename get_rank_from_desc to gfc_conv_descriptor_rank.
Patch 3: Fix set_loop_bounds #1 (optional).
Patch 4: Fix set_loop_bounds #2.
Patch 5: Properly setup the scalarizer in the {l,u}bound(assumed_rank)
cases.

More details in the patch files.

Regression tested on x86_64-unknown-linux-gnu. OK for trunk?

Mikael







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