[gfortran, committed] Fix typos in rand.c and normalize.c

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Wed Jun 30 15:21:00 GMT 2004


This was wrong. This was caught by the gcc regression tester, it seems
like other linkers look closer at what they're linking. Fixed by
appended patch.

- Tobi

Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libgfortran/ChangeLog,v
retrieving revision 1.44
diff -u -p -r1.44 ChangeLog
--- ChangeLog   29 Jun 2004 22:52:57 -0000      1.44
+++ ChangeLog   30 Jun 2004 11:18:06 -0000
@@ -1,3 +1,7 @@
+2004-06-30  Tobias Schlueter  <tobias.shclueter@physik.uni-muenchen.de>
+
+       * intrinsic/rand.c: Add prefix to call to 'irand'.
+
 2004-06-29  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
        Paul Brook  <paul@codesourcery.com>

cvs diff: Diffing generated
cvs diff: Diffing intrinsics
Index: intrinsics/rand.c
===================================================================
RCS file: /cvs/gcc/gcc/libgfortran/intrinsics/rand.c,v
retrieving revision 1.3
diff -u -p -r1.3 rand.c
--- intrinsics/rand.c   29 Jun 2004 22:52:58 -0000      1.3
+++ intrinsics/rand.c   30 Jun 2004 11:18:06 -0000
@@ -82,5 +82,5 @@ prefix(irand) (GFC_INTEGER_4 *i)
 GFC_REAL_4
 prefix(rand) (GFC_INTEGER_4 *i)
 {
-  return normalize_r4_i4 (irand (i) - 1, GFC_RAND_M1 - 1);
+  return normalize_r4_i4 (prefix (irand) (i) - 1, GFC_RAND_M1 - 1);
 }



More information about the Gcc-patches mailing list