RTEMS patch sweep: bogus implicit int32 in libm
Ralf Corsepius
ralf.corsepius@rtems.org
Fri Feb 25 05:23:00 GMT 2005
On Thu, 2005-02-24 at 14:04 -0500, Jeff Johnston wrote:
> Patch checked in, thanks. I modified it slightly to use __uint32_t for all the
> ints you replaced (as opposed to __int32_t).
Thanks,
another similar patch is attached below.
It is supposed to fix these warnings/bugs:
/users/rtems/src/rpms/BUILD/rtems-4.7-h8300-rtems4.7-gcc-newlib-gcc4.0.0newlib1.13.0/build/gcc/xgcc -B/users/rtems/src/rpms/BUILD/rtems-4.7-h8300-rtems4.7-gcc-newlib-gcc4.0.0newlib1.13.0/build/gcc/ -nostdinc -B/users/rtems/src/rpms/BUILD/rtems-4.7-h8300-rtems4.7-gcc-newlib-gcc4.0.0newlib1.13.0/build/h8300-rtems4.7/h8300h/newlib/ -isystem /users/rtems/src/rpms/BUILD/rtems-4.7-h8300-rtems4.7-gcc-newlib-gcc4.0.0newlib1.13.0/build/h8300-rtems4.7/h8300h/newlib/targ-include -isystem /users/rtems/src/rpms/BUILD/rtems-4.7-h8300-rtems4.7-gcc-newlib-gcc4.0.0newlib1.13.0/gcc-4.0.0/newlib/libc/include -B/opt/rtems-4.7/h8300-rtems4.7/bin/ -B/opt/rtems-4.7/h8300-rtems4.7/lib/ -isystem /opt/rtems-4.7/h8300-rtems4.7/include -isystem /opt/rtems-4.7/h8300-rtems4.7/sys-include -mh -DPACKAGE=\"newlib\" -DVERSION=\"1.13.0\" -I. -I../../../../../../gcc-4.0.0/newlib/libm/math -I../../../../../../gcc-4.0.0/newlib/libm/math/../common -O2 -DHAVE_GETTIMEOFDAY -DMALLOC_PROVIDED -DEXIT_PROVIDED -DMISSING_SYSCALL_NAMES -DSIGNAL_PROVIDED -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_OPENDIR -DNO_EXEC -DHAVE_FCNTL -fno-builtin -O2 -g -O2 -mh -c ../../../../../../gcc-4.0.0/newlib/libm/math/ef_j0.c
../../../../../../gcc-4.0.0/newlib/libm/math/ef_j0.c: In function '__ieee754_j0f':
../../../../../../gcc-4.0.0/newlib/libm/math/ef_j0.c:68: warning: left shift count >= width of type
../../../../../../gcc-4.0.0/newlib/libm/math/ef_j0.c: In function '__ieee754_y0f':
../../../../../../gcc-4.0.0/newlib/libm/math/ef_j0.c:154: warning: left shift count >= width of type
/users/rtems/src/rpms/BUILD/rtems-4.7-h8300-rtems4.7-gcc-newlib-gcc4.0.0newlib1.13.0/build/gcc/xgcc -B/users/rtems/src/rpms/BUILD/rtems-4.7-h8300-rtems4.7-gcc-newlib-gcc4.0.0newlib1.13.0/build/gcc/ -nostdinc -B/users/rtems/src/rpms/BUILD/rtems-4.7-h8300-rtems4.7-gcc-newlib-gcc4.0.0newlib1.13.0/build/h8300-rtems4.7/h8300h/newlib/ -isystem /users/rtems/src/rpms/BUILD/rtems-4.7-h8300-rtems4.7-gcc-newlib-gcc4.0.0newlib1.13.0/build/h8300-rtems4.7/h8300h/newlib/targ-include -isystem /users/rtems/src/rpms/BUILD/rtems-4.7-h8300-rtems4.7-gcc-newlib-gcc4.0.0newlib1.13.0/gcc-4.0.0/newlib/libc/include -B/opt/rtems-4.7/h8300-rtems4.7/bin/ -B/opt/rtems-4.7/h8300-rtems4.7/lib/ -isystem /opt/rtems-4.7/h8300-rtems4.7/include -isystem /opt/rtems-4.7/h8300-rtems4.7/sys-include -mh -DPACKAGE=\"newlib\" -DVERSION=\"1.13.0\" -I. -I../../../../../../gcc-4.0.0/newlib/libm/math -I../../../../../../gcc-4.0.0/newlib/libm/math/../common -O2 -DHAVE_GETTIMEOFDAY -DMALLOC_PROVIDED -DEXIT_PROVIDED -DMISSING_SYSCALL_NAMES -DSIGNAL_PROVIDED -DREENTRANT_SYSCALLS_PROVIDED -DHAVE_OPENDIR -DNO_EXEC -DHAVE_FCNTL -fno-builtin -O2 -g -O2 -mh -c ../../../../../../gcc-4.0.0/newlib/libm/math/ef_j1.c
../../../../../../gcc-4.0.0/newlib/libm/math/ef_j1.c: In function '__ieee754_j1f':
../../../../../../gcc-4.0.0/newlib/libm/math/ef_j1.c:69: warning: left shift count >= width of type
../../../../../../gcc-4.0.0/newlib/libm/math/ef_j1.c: In function '__ieee754_y1f':
../../../../../../gcc-4.0.0/newlib/libm/math/ef_j1.c:140: warning: left shift count >= width of type
IMO, this patch is a bit arguable, as explicitly casting these consts to
(__int32_t) could be more portable (What will happen on 64bit targets?)
than using "L"-constants.
Ralf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: newlib-CVS-rtems-rc-20050225-1.diff
Type: text/x-patch
Size: 941 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20050225/40fa27e4/attachment.bin>
More information about the Newlib
mailing list