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]

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;


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