This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran, committed] Fix typos in rand.c and normalize.c
- From: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- To: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- Cc: GCC Fortran mailing list <fortran at gcc dot gnu dot org>,patch <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 30 Jun 2004 13:20:00 +0200
- Subject: Re: [gfortran, committed] Fix typos in rand.c and normalize.c
- References: <40E1F3A3.2000609@physik.uni-muenchen.de>
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);
}