This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran] add SIGNAL and ALARM intrinsics
- From: Jakub Jelinek <jakub at redhat dot com>
- To: FX Coudert <fxcoudert at gmail dot com>
- Cc: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>, gfortran <fortran at gcc dot gnu dot org>, patch <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 19 Nov 2005 14:57:15 -0500
- Subject: Re: [gfortran] add SIGNAL and ALARM intrinsics
- References: <4342362C.8000802@gmail.com> <20051013234416.GA23446@troutmask.apl.washington.edu> <4350D624.3050601@gmail.com> <20051016003107.GA20081@troutmask.apl.washington.edu> <435226F6.8080201@gmail.com> <20051119123310.GN31785@devserv.devel.redhat.com> <437F79F3.1090304@gmail.com> <20051119194844.GO31785@devserv.devel.redhat.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Sat, Nov 19, 2005 at 02:48:44PM -0500, Jakub Jelinek wrote:
> Then you should at least use *status = (long) signal (*number, handler);
> to shut up the warnings about the cast if that's intentional.
> With *status = (int) signal (*number, handler); it will warn:
> ../../../libgfortran/intrinsics/signal.c:52: warning: cast from pointer to integer of different size
> ../../../libgfortran/intrinsics/signal.c:73: warning: cast to pointer from integer of different size
> ../../../libgfortran/intrinsics/signal.c:73: warning: cast from pointer to integer of different size
> ../../../libgfortran/intrinsics/signal.c:75: warning: cast to pointer from integer of different size
Plus a comment in the source would help too I guess.
Jakub