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] Fix PR 66111


Hello,

Le 12/05/2015 22:07, Thomas Koenig a Ãcrit :
> Hello world,
> 
> this patch fixes a regression from the inline matmul patch by
> not inlining a case that is not yet handled, namely vector
> subscripts.
> 
> Regression-tested.  OK for trunk?
> 
OK with...
> 
> Index: frontend-passes.c
> ===================================================================
> --- frontend-passes.c	(Revision 222984)
> +++ frontend-passes.c	(Arbeitskopie)
> @@ -2752,6 +2771,10 @@ inline_matmul_assign (gfc_code **c, int *walk_subt
>        || matrix_b->expr_type != EXPR_VARIABLE)
>      return 0;
>  
> +  if (has_dimen_vector_ref (expr1) ||
> +      has_dimen_vector_ref (matrix_a) || has_dimen_vector_ref (matrix_b))
> +    return 0;
> +

...the operator || at the beginning of the line.

Thanks.

Mikael


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