Hello, This is the command and it's output: gcj -v --main=passwortGenerator -o PasswortGenerator PasswortGenerator.java Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.4/specs Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.4/../../../libgcj.spec rename spec lib to liborig Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux Thread model: posix gcc version 3.3.4 (Debian 1:3.3.4-6sarge1) /usr/lib/gcc-lib/i486-linux/3.3.4/jc1 PasswortGenerator.java -fhash-synchronization -fno-use-divide-subroutine -fuse-boehm-gc -fnon-call-exceptions -fkeep-inline-functions -quiet -dumpbase PasswortGenerator.java -auxbase PasswortGenerator -g1 -version -o /tmp/cc2WjUy4.s GNU Java version 3.3.4 (Debian 1:3.3.4-6sarge1) (i486-linux) compiled by GNU C version 3.3.4 (Debian 1:3.3.4-6sarge1). GGC heuristics: --param ggc-min-expand=47 --param ggc-min-heapsize=32127 Class path starts here: ./ /usr/share/java/libgcj-3.3.4.jar/ (system) (zip) PasswortGenerator.java: In class `passwortGenerator': PasswortGenerator.java: In method `passwortGenerator.main(java.lang.String[])': PasswortGenerator.java:11: internal compiler error: in emit_move_insn_1, at expr.c:3543 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-3.3/README.Bugs>. This is PasswortGenerator.java: class passwortGenerator { public static void main(String args[]) { System.out.println(" +-------------------------------------------+"); System.out.println(" | Passwort Generator von Jakob Breier, 2004 |"); System.out.println(" +-------------------------------------------+"); System.out.println("\nDenken Sie daran, dass Sie nur Passwoerter verwenden, die auf einem"); System.out.println("vertrauenswuerdigen Sytem erstellt wurden!"); for(int i=0;i<1000;1++) System.out.println(System.currentTimeMillis()); } public static String passwortErstellen() { String ergebnis=""; return ergebnis; } public static String zufallsAuswahl(String kompletteAuswahl[]) { String ergebnis=""; return ergebnis; } public static String positionenDurchmischen(String text) { String ergebnis=""; return ergebnis; } }
passwortGenerator.java again, reduced to that what is really necessary: class passwortGenerator { public static void main(String args[]) { for(int i=0;i<1000;1++) ; } } gcj --main=passwortGenerator -o PasswortGenerator PasswortGenerator.java PasswortGenerator.java: In class `passwortGenerator': PasswortGenerator.java: In method `passwortGenerator.main(java.lang.String[])': PasswortGenerator.java:5: internal compiler error: in emit_move_insn_1, at expr.c:3543 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-3.3/README.Bugs>.
Wrong code: for(int i=0;i<1000;1++) Should increment i and not 1. -->> for(int i=0;i<1000;i++)
(In reply to comment #2) > Wrong code: > for(int i=0;i<1000;1++) > > Should increment i and not 1. > -->> for(int i=0;i<1000;i++) Well, yes, I know, but the gcj output told me to "submit a full bug report" Did I do this wrong (I'm quite new to gcc and bugzilla).
You did nothing wrong, this should be rejected instead of ICEing.
Still fails to be rejected on the mainline but we have a different ICE now: gimplification failed: 1 <integer_cst 0x4135fb60 type <integer_type 0x4135d600 int> constant invariant 1> pr17668.java: In class `passwortGenerator': pr17668.java: In method `passwortGenerator.main(java.lang.String[])': pr17668.java:5: internal compiler error: gimplification failed Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions.
All gcj front end bugs have been fixed by the gcj-eclipse branch merge. I'm mass-closing the affected PRs. If you believe one of these was closed in error, please reopen it with a note explaining why. Thanks.