java/3492: -fno-bounds-check in combination with -W gives strange message
Matthias Klose
doko@klose.in-berlin.de
Sat Jun 30 03:46:00 GMT 2001
>Number: 3492
>Category: java
>Synopsis: -fno-bounds-check in combination with -W gives strange message
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jun 30 03:46:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Patrik Hagglund <patha@softlab.ericsson.se>
>Release: 3.0 (Debian GNU/Linux)
>Organization:
The Debian project
>Environment:
System: Debian GNU/Linux (testing/unstable)
Architecture: i686
host: i386-linux
build: i386-linux
target: i386-linux
configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,objc --prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux
>Description:
[ Reported to the Debian BTS as report #102353.
Please CC 102353-quiet@bugs.debian.org on replies.
Log of report can be found at http://bugs.debian.org/102353 ]
> Hello.java << EOF
public class Hello {
public static void main(String[] args) {
System.out.println("Hello!");
}
}
EOF
gcj -W -fno-bounds-check --main=Hello Hello.java
jc1: warning: Ignoring command line option '-fno-bounds-check'
jc1: warning: (It is valid for Fortran but not the selected language)
The comments in gcc/toplev.c indicates that -fno-check-bounds can
be used instead, but that doesn't work at all.
Omitting -W or replacing -W with -Wall suppresses the warning.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Java-prs
mailing list