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]

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


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);
 }


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