Re: [patch, fortran] Check bounds for matrix-vector multiplication

2017-05-01 Thread Steve Kargl
On Mon, May 01, 2017 at 07:21:03PM +0200, Thomas Koenig wrote: > Hi Steve, > > > Why the duplicate code? Seems like an OR is needed. > > You are quite right. > > Here's an updated patch: > > Index: frontend-passes.c > === > --- fr

Re: [patch, fortran] Check bounds for matrix-vector multiplication

2017-05-01 Thread Thomas Koenig
Hi Steve, Why the duplicate code? Seems like an OR is needed. You are quite right. Here's an updated patch: Index: frontend-passes.c === --- frontend-passes.c (Revision 247003) +++ frontend-passes.c (Arbeitskopie) @@ -3066,

Re: [patch, fortran] Check bounds for matrix-vector multiplication

2017-05-01 Thread Steve Kargl
On Mon, May 01, 2017 at 06:19:28PM +0200, Thomas Koenig wrote: > + if (m_case == A2B2) > + { > + a2 = get_array_inq_function (GFC_ISYM_SIZE, matrix_a, 2); > + b1 = get_array_inq_function (GFC_ISYM_SIZE, matrix_b, 1); > + test = runtime_error_ne (b1, a2, "Dimension