From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Henderson To: egcs@cygnus.com Subject: small libf2c cleanups Date: Tue, 14 Oct 1997 21:03:00 -0000 Message-id: <19971014194418.35064@dot.cygnus.com> X-SW-Source: 1997-10/msg00558.html 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 * libF77/signal_.c (G77_signal_0): Make return type sig_pf as well. * libI77/fio.h: Include 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 #endif +#ifdef STDC_HEADERS +#include +#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 #endif +#if STDC_HEADERS +# include +#endif #include "f2c.h"