From 7c4b32bcdc8455d77f73eb56e8fec9ca74fe6be2 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 2 Nov 2007 20:02:35 +0000 Subject: re PR java/33765 (gcj internal compiler error when reading an empty file) PR java/33765: * jcf-parse.c (java_parse_file): Ignore ZIPEMPTYMAGIC files. * zipfile.h (ZIPEMPTYMAGIC): New define. From-SVN: r129860 --- gcc/java/jcf-parse.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/java/jcf-parse.c') diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c index a544163..ab2a385 100644 --- a/gcc/java/jcf-parse.c +++ b/gcc/java/jcf-parse.c @@ -1946,6 +1946,10 @@ java_parse_file (int set_yydebug ATTRIBUTE_UNUSED) #endif parse_zip_file_entries (); } + else if (magic == (JCF_u4) ZIPEMPTYMAGIC) + { + /* Ignore an empty input jar. */ + } else { gcc_unreachable (); -- cgit v1.1