diff options
author | Francois-Xavier Coudert <coudert@clipper.ens.fr> | 2006-05-05 13:08:23 +0200 |
---|---|---|
committer | François-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2006-05-05 11:08:23 +0000 |
commit | 1633cb7cb6b292ca0cfaa0311b2784927efe7990 (patch) | |
tree | 0f2a433855ba9689b3899ab64e40e7f90de20310 /libgfortran/m4 | |
parent | 4b5d3f3f419ba55d63b378e6730f6cb932aee549 (diff) | |
download | gcc-1633cb7cb6b292ca0cfaa0311b2784927efe7990.zip gcc-1633cb7cb6b292ca0cfaa0311b2784927efe7990.tar.gz gcc-1633cb7cb6b292ca0cfaa0311b2784927efe7990.tar.bz2 |
re PR libfortran/26985 (incorrect matmul result)
PR libfortran/26985
* m4/matmul.m4: Correct the condition for the memset call,
and remove the unneeded call to size0.
* generated/matmul_r4.c: Regenerate.
* generated/matmul_r8.c: Regenerate.
* generated/matmul_r10.c: Regenerate.
* generated/matmul_r16.c: Regenerate.
* generated/matmul_c4.c: Regenerate.
* generated/matmul_c8.c: Regenerate.
* generated/matmul_c10.c: Regenerate.
* generated/matmul_c16.c: Regenerate.
* generated/matmul_i4.c: Regenerate.
* generated/matmul_i8.c: Regenerate.
* generated/matmul_i16.c: Regenerate.
* gfortran.dg/matmul_2.f90: New test.
From-SVN: r113552
Diffstat (limited to 'libgfortran/m4')
-rw-r--r-- | libgfortran/m4/matmul.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgfortran/m4/matmul.m4 b/libgfortran/m4/matmul.m4 index f488f5e..526303c 100644 --- a/libgfortran/m4/matmul.m4 +++ b/libgfortran/m4/matmul.m4 @@ -195,8 +195,8 @@ sinclude(`matmul_asm_'rtype_code`.m4')dnl const rtype_name * restrict abase_n; rtype_name bbase_yn; - if (rystride == ycount) - memset (dest, 0, (sizeof (rtype_name) * size0((array_t *) retarray))); + if (rystride == xcount) + memset (dest, 0, (sizeof (rtype_name) * xcount * ycount)); else { for (y = 0; y < ycount; y++) |