This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
cast to pointer from integer of different size
- From: howarth at bromo dot msbb dot uc dot edu (Jack Howarth)
- To: fortran at gcc dot gnu dot org
- Date: Sun, 10 Sep 2006 13:45:47 -0400 (EDT)
- Subject: cast to pointer from integer of different size
One other set of warnings still remaining in the -m64 build of libgfortran
that should be looked at are the following...
/sw/src/fink.build/gcc4-4.1.999-20060910/darwin_objdir/./gcc/xgcc -B/sw/src/fink.build/gcc4-4.1.999-20060910/darwin_objdir/./gcc/ -B/sw/lib/gcc4/powerpc-apple-darwin8/bin/ -B/sw/lib/gcc4/powerpc-apple-darwin8/lib/ -isystem /sw/lib/gcc4/powerpc-apple-darwin8/include -isystem /sw/lib/gcc4/powerpc-apple-darwin8/sys-include -DHAVE_CONFIG_H -I. -I../../../../gcc-4.2-20060910/libgfortran -I. -iquote../../../../gcc-4.2-20060910/libgfortran/io -I../../../../gcc-4.2-20060910/libgfortran/../gcc -I../../../../gcc-4.2-20060910/libgfortran/../gcc/config -I../../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -O2 -g -O2 -m64 -c ../../../../gcc-4.2-20060910/libgfortran/intrinsics/signal.c -fno-common -DPIC -o .libs/signal.o
../../../../gcc-4.2-20060910/libgfortran/intrinsics/signal.c: In function 'signal_sub':
../../../../gcc-4.2-20060910/libgfortran/intrinsics/signal.c:52: warning: cast from pointer to integer of different size
../../../../gcc-4.2-20060910/libgfortran/intrinsics/signal.c: In function 'signal_sub_int':
../../../../gcc-4.2-20060910/libgfortran/intrinsics/signal.c:73: warning: cast to pointer from integer of different size
../../../../gcc-4.2-20060910/libgfortran/intrinsics/signal.c:73: warning: cast from pointer to integer of different size
../../../../gcc-4.2-20060910/libgfortran/intrinsics/signal.c:75: warning: cast to pointer from integer of different size
These lines are...
*status = (int) signal (*number, handler);
*status = (int) signal (*number, (void (*)(int)) *handler);
signal (*number, (void (*)(int)) *handler);
from the subroutine...
void
signal_sub (int *number, void (*handler)(int), int *status)
...for the first warning and from the subroutine...
void
signal_sub_int (int *number, int *handler, int *status)
..for the last three warnings on the second set of lines.
Any suggestions for fixing this for -m32 and -m64?
Jack