This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: PR libfortran/25305: [4.0 regression]: libfortran failed fma3d in SPEC CPU 2K
- From: "H. J. Lu" <hjl at lucon dot org>
- To: gcc-patches at gcc dot gnu dot org
- Cc: fortran at gcc dot gnu dot org, jvdelisle at gcc dot gnu dot org
- Date: Wed, 7 Dec 2005 23:42:15 -0800
- Subject: PATCH: PR libfortran/25305: [4.0 regression]: libfortran failed fma3d in SPEC CPU 2K
http://gcc.gnu.org/ml/gcc-patches/2005-11/msg00874.html
caused fma3d in SPEC CPU 2K to fail. It has this change:
@ -293,7 +292,7 @@ write_block (int length)
{
char *dest;
- if (!is_internal_unit() && current_unit->bytes_left < length)
+ if (current_unit->bytes_left < length)
{
generate_error (ERROR_EOR, NULL);
return NULL;
which wasn't even mentioned in ChangeLog. Reverting it fixed this
regression.
H.J.
----
2005-12-07 H.J. Lu <hongjiu.lu@intel.com>
PR libfortran/25305
* io/transfer.c (write_block): Reverted the change in revision
106838.
--- libgfortran/io/transfer.c.foo 2005-12-07 23:27:26.000000000 -0800
+++ libgfortran/io/transfer.c 2005-12-07 23:27:58.000000000 -0800
@@ -292,7 +292,7 @@ write_block (int length)
{
char *dest;
- if (current_unit->bytes_left < length)
+ if (!is_internal_unit() && current_unit->bytes_left < length)
{
generate_error (ERROR_EOR, NULL);
return NULL;