This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
small libf2c cleanups
- To: egcs at cygnus dot com
- Subject: small libf2c cleanups
- From: Richard Henderson <rth at cygnus dot com>
- Date: Tue, 14 Oct 1997 19:44:18 -0700
- Reply-To: Richard Henderson <rth at cygnus dot com>
Two of the changes are basicly covered by autoconf. The signal_.c
change avoids casting a DImode pointer to SImode int on Alpha. I
have no idea what the function is supposed to return, but what it
had been doing made no sense to me.
r~
Tue Oct 14 19:40:34 1997 Richard Henderson <rth@cygnus.com>
* libF77/signal_.c (G77_signal_0): Make return type sig_pf as well.
* libI77/fio.h: Include <string.h> if STDC_HEADERS.
* libU77/chmod_.c: Likewise.
Index: libF77/signal_.c
===================================================================
RCS file: /cvs/cvsfiles/egcs/gcc/f/runtime/libF77/signal_.c,v
retrieving revision 1.1.1.1
diff -u -p -d -r1.1.1.1 signal_.c
--- signal_.c 1997/08/12 07:47:52 1.1.1.1
+++ signal_.c 1997/10/15 02:38:47
@@ -2,13 +2,13 @@
#include "signal1.h"
#ifdef KR_headers
-ftnint G77_signal_0 (sigp, proc) integer *sigp; sig_pf proc;
+sig_pf G77_signal_0 (sigp, proc) integer *sigp; sig_pf proc;
#else
-ftnint G77_signal_0 (integer *sigp, sig_pf proc)
+sig_pf G77_signal_0 (integer *sigp, sig_pf proc)
#endif
{
int sig;
sig = (int)*sigp;
- return (ftnint)signal(sig, proc);
+ return signal(sig, proc);
}
Index: libI77/fio.h
===================================================================
RCS file: /cvs/cvsfiles/egcs/gcc/f/runtime/libI77/fio.h,v
retrieving revision 1.1.1.1
diff -u -p -d -r1.1.1.1 fio.h
--- fio.h 1997/08/12 07:47:53 1.1.1.1
+++ fio.h 1997/10/15 02:38:47
@@ -4,6 +4,9 @@
/* ANSI C */
#include <stddef.h>
#endif
+#ifdef STDC_HEADERS
+#include <string.h>
+#endif
#ifndef SEEK_SET
#define SEEK_SET 0
Index: libU77/chmod_.c
===================================================================
RCS file: /cvs/cvsfiles/egcs/gcc/f/runtime/libU77/chmod_.c,v
retrieving revision 1.2
diff -u -p -d -r1.2 chmod_.c
--- chmod_.c 1997/10/01 07:43:19 1.2
+++ chmod_.c 1997/10/15 02:38:48
@@ -31,6 +31,9 @@ Boston, MA 02111-1307, USA. */
#else
# include <stdio.h>
#endif
+#if STDC_HEADERS
+# include <string.h>
+#endif
#include "f2c.h"