[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

-fno-bounds-check in combination with -W gives strange message



>Submitter-Id:	net
>Originator:	Patrik Hagglund <patha@softlab.ericsson.se>
>Organization:	The Debian project
>Confidential:	no
>Synopsis:	-fno-bounds-check in combination with -W gives strange message
>Severity:       non-critical
>Priority:       low
>Category:	java
>Class:		sw-bug
>Release:	3.0 (Debian GNU/Linux)
>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:
	



Reply to: