summaryrefslogtreecommitdiffstats
path: root/libgfortran/generated/matmul_i1.c
diff options
context:
space:
mode:
authortkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-09 22:34:43 +0000
committertkoenig <tkoenig@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-09 22:34:43 +0000
commit74f5e5c93d27c4093561b792572164dab8b27e6d (patch)
treed4f862e620d24da8c9d4a5c46013f07251cfcc85 /libgfortran/generated/matmul_i1.c
parent2c1a1b8d0bbb740b4458a8f59380478336e18135 (diff)
downloadppe42-gcc-74f5e5c93d27c4093561b792572164dab8b27e6d.tar.gz
ppe42-gcc-74f5e5c93d27c4093561b792572164dab8b27e6d.zip
2007-07-09 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libfortran/32336 * m4/matmul.m4: When the dimension of b is incorrect, raise a runtime error instead of a failed assertion. * generated/matmul_i1.c: Regenerated. * generated/matmul_i2.c: Regenerated. * generated/matmul_i4.c: Regenerated. * generated/matmul_i8.c: Regenerated. * generated/matmul_i16.c: Regenerated. * generated/matmul_r4.c: Regenerated. * generated/matmul_r8.c: Regenerated. * generated/matmul_r10.c: Regenerated. * generated/matmul_r16.c: Regenerated. 2007-07-09 Thomas Koenig <tkoenig@gcc.gnu.org> PR libfortran/32336 * gfortran.dg/matmul_5.f90: New test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126498 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/generated/matmul_i1.c')
-rw-r--r--libgfortran/generated/matmul_i1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgfortran/generated/matmul_i1.c b/libgfortran/generated/matmul_i1.c
index ce98de17950..ae035076bed 100644
--- a/libgfortran/generated/matmul_i1.c
+++ b/libgfortran/generated/matmul_i1.c
@@ -169,7 +169,8 @@ matmul_i1 (gfc_array_i1 * const restrict retarray,
xcount = a->dim[0].ubound + 1 - a->dim[0].lbound;
}
- assert(count == b->dim[0].ubound + 1 - b->dim[0].lbound);
+ if (count != b->dim[0].ubound + 1 - b->dim[0].lbound)
+ runtime_error ("dimension of array B incorrect in MATMUL intrinsic");
if (GFC_DESCRIPTOR_RANK (b) == 1)
{
OpenPOWER on IntegriCloud