libjava compile warnings, top ones for sparc64-linux in current 3.3

Christian Joensson c.christian.joensson@telia.com
Sun Mar 23 08:07:00 GMT 2003


When bootstrap/building gcc 3.3 (CVS branch Fri Mar 21 10:06:33 UTC
2003) and friends on sparc64-linux, I get the following java/libjava
warnings:

     19	libjava/java/lang/mprec.c
     12	libjava/gnu/java/nio/natSocketChannelImpl.cc
      9	java/lang/Integer.h
      8	libjava/java/lang/strtod.c
      8	libjava/java/lang/dtoa.c
      6	libjava/java/lang/e_exp.c
      4	libjava/java/lang/w_exp.c
      2	libjava/verify.cc
      2	libjava/prims.cc
      2	libjava/jni.cc
      2	libjava/java/net/natNetworkInterface.cc
      2	libjava/java/lang/e_rem_pio2.c
      2	libjava/java/lang/e_asin.c
      2	libjava/gnu/java/nio/natFileChannelImpl.cc
      2	libjava/gnu/gcj/runtime/natSharedLibLoader.cc
      2	libjava/gnu/gcj/io/shs.cc
      2	include/java-signal.h
      1	gcc/java/jvspec.c

Now, looking at the compile of the top two files, we see the
following:

/usr/local/src/gcc-binutils/branch/objdir/gcc/xgcc -B/usr/local/src/gcc-binutils/branch/objdir/gcc/ -B/usr/local/gcc-binutils/sparc64-linux/bin/ -B/usr/local/gcc-binutils/sparc64-linux/lib/ -isystem /usr/local/gcc-binutils/sparc64-linux/include -L/usr/local/src/gcc-binutils/branch/objdir/ld -DHAVE_CONFIG_H -I. -I/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava -I./include -I./gcj -I/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava -Iinclude -I/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/include -I/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/../boehm-gc/include -DGC_LINUX_THREADS=1 -D_REENTRANT=1 -DSILENT=1 -DNO_SIGNALS=1 -DNO_EXECUTE_PERMISSION=1 -DALL_INTERIOR_POINTERS=1 -DJAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1 -DATOMIC_UNCOLLECTABLE=1 -I/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/libltdl -I/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/libltdl -I/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/.././libjava/../gcc -I/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/../zlib -I/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/../libffi/include -I../libffi/include -W -Wall -O2 -g -c /usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c  -fPIC -DPIC -o java/lang/.libs/mprec.o
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c: In function `_Jv_mult':
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c:388: warning: suggest parentheses around assignment used as truth value
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c: In function `_Jv_lshift':
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c:491: warning: suggest parentheses around arithmetic in operand of |
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c:495: warning: suggest parentheses around assignment used as truth value
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c: In function `_Jv_b2d':
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c:721: warning: suggest parentheses around + or - inside shift
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c:721: warning: suggest parentheses around + or - inside shift
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c:724: warning: suggest parentheses around + or - inside shift
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c:724: warning: suggest parentheses around + or - inside shift
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c:724: warning: suggest parentheses around + or - inside shift
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c:730: warning: suggest parentheses around + or - inside shift
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c:730: warning: suggest parentheses around + or - inside shift
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c:732: warning: suggest parentheses around + or - inside shift
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c: In function `_Jv_d2b':
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c:815: warning: suggest parentheses around assignment used as truth value
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c:817: warning: suggest parentheses around assignment used as truth value
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c:820: warning: suggest parentheses around + or - inside shift
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c:820: warning: suggest parentheses around arithmetic in operand of |
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c:821: warning: suggest parentheses around + or - inside shift
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c:828: warning: suggest parentheses around + or - inside shift
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c:828: warning: suggest parentheses around arithmetic in operand of |
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/java/lang/mprec.c:830: warning: suggest parentheses around + or - inside shift


/usr/local/src/gcc-binutils/branch/objdir/gcc/xgcc -shared-libgcc -B/usr/local/src/gcc-binutils/branch/objdir/gcc/ -nostdinc++ -L/usr/local/src/gcc-binutils/branch/objdir/sparc64-linux/32/libstdc++-v3/src -L/usr/local/src/gcc-binutils/branch/objdir/sparc64-linux/32/libstdc++-v3/src/.libs -B/usr/local/gcc-binutils/sparc64-linux/bin/ -B/usr/local/gcc-binutils/sparc64-linux/lib/ -isystem /usr/local/gcc-binutils/sparc64-linux/include -L/usr/local/src/gcc-binutils/branch/objdir/ld -m32 -DHAVE_CONFIG_H -I. -I/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava -I./include -I./gcj -I/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava -Iinclude -I/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/include -I/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/../boehm-gc/include -DGC_LINUX_THREADS=1 -D_REENTRANT=1 -DSILENT=1 -DNO_SIGNALS=1 -DNO_EXECUTE_PERMISSION=1 -DALL_INTERIOR_POINTERS=1 -DJAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1 -DATOMIC_UNCOLLECTABLE=1 -I/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/libltdl -I/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/libltdl -I/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/.././libjava/../gcc -I/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/../zlib -I/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/../libffi/include -I../libffi/include -fno-rtti -fnon-call-exceptions -fdollars-in-identifiers -Wswitch-enum -I/usr/X11R6/include -W -Wall -D_GNU_SOURCE -DPREFIX=\"/usr/local/gcc-binutils\" -g -O2 -D_GNU_SOURCE -m32 -MD -MT gnu/java/nio/natSocketChannelImpl.lo -MF gnu/java/nio/natSocketChannelImpl.pp -c /usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/gnu/java/nio/natSocketChannelImpl.cc  -fPIC -DPIC -o gnu/java/nio/.libs/natSocketChannelImpl.o
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/gnu/java/nio/natSocketChannelImpl.cc: In
   function `static jint 
   gnu::java::nio::SocketChannelImpl::SocketConnect(__java_int, 
   java::net::InetAddress*, __java_int)':
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/gnu/java/nio/natSocketChannelImpl.cc:96: warning: unused
   parameter `jint fd'
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/gnu/java/nio/natSocketChannelImpl.cc:96: warning: unused
   parameter `java::net::InetAddress*addr'
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/gnu/java/nio/natSocketChannelImpl.cc:96: warning: unused
   parameter `jint port'
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/gnu/java/nio/natSocketChannelImpl.cc: In
   function `static jint 
   gnu::java::nio::SocketChannelImpl::SocketBind(__java_int, 
   java::net::InetAddress*, __java_int)':
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/gnu/java/nio/natSocketChannelImpl.cc:104: warning: unused
   parameter `jint fd'
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/gnu/java/nio/natSocketChannelImpl.cc:104: warning: unused
   parameter `java::net::InetAddress*addr'
/usr/local/src/gcc-binutils/branch/gcc-binutils/libjava/gnu/java/nio/natSocketChannelImpl.cc:104: warning: unused
   parameter `jint port'


Well, just FYI...

Cheers,

/ChJ



More information about the Java mailing list