summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-08 20:44:04 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-08 20:44:04 +0000
commit639e419174e2b963305e0c7ef8aa1bc647b76883 (patch)
tree39eb8d87fbed3679a31bbfe048c4fcafc6cdee9f /gcc
parenta7e1bb2457dfd5e4dac887d850573aded2a322b3 (diff)
downloadppe42-gcc-639e419174e2b963305e0c7ef8aa1bc647b76883.tar.gz
ppe42-gcc-639e419174e2b963305e0c7ef8aa1bc647b76883.zip
PR java/12894:
* jcf-parse.c (classify_zip_file): Only skip MANIFEST.MF file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73376 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/jcf-parse.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 4de89c56bee..6d5c29a19fe 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+2003-11-08 Tom Tromey <tromey@redhat.com>
+
+ PR java/12894:
+ * jcf-parse.c (classify_zip_file): Only skip MANIFEST.MF file.
+
2003-11-06 Andrew Haley <aph@redhat.com>
* expr.c (java_stack_swap): Make sure destination stack slots are
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index fa77efebb8b..016e9743b34 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -1172,10 +1172,9 @@ classify_zip_file (struct ZipDirectory *zdir)
".class", 6))
return 1;
- /* For now we drop the manifest and other information. Maybe it
- would make more sense to compile it in? */
+ /* For now we drop the manifest, but not other information. */
if (zdir->filename_length > 8
- && !strncmp (class_name_in_zip_dir, "META-INF/", 9))
+ && !strncmp (class_name_in_zip_dir, "META-INF/MANIFEST.MF", 20))
return 0;
/* Drop directory entries. */
OpenPOWER on IntegriCloud