java-tree.h (JAVA_FILE_P, ZIP_FILE_P): Remove unused macros.
authorPer Bothner <per@bothner.com>
Thu, 30 Sep 2004 23:25:27 +0000 (16:25 -0700)
committerPer Bothner <bothner@gcc.gnu.org>
Thu, 30 Sep 2004 23:25:27 +0000 (16:25 -0700)
commitcb3a14307a07a4f9d719f229caff8c47aed42624
tree0b4854ccef6da28990a8faf1935840149a357ba1
parent6744f40032f27c47186a71c87342efbb07663f5b
java-tree.h (JAVA_FILE_P, ZIP_FILE_P): Remove unused macros.

* java-tree.h (JAVA_FILE_P, ZIP_FILE_P):  Remove unused macros.
* jcf-parse.c (java_parse_file): Don't set input_filename.
Use IS_A_COMMAND_LINE_FILENAME_P to check for duplicate filenames.
Create a list of TRANSLATION_UNIT_DECL.
(current_file_list):  Is now a TRANSLATION_UNIT_DECL chain.  The
reason is so we can set a DECL_SOURCE_LOCATION for each file.
(java_parse_file):  Don't set unused ZIP_FILE_P, JAVA_FILE_P..
Create line-map LC_ENTER/LC_LEAVE entries for archive itself.
(file_start_location):  New static.
(set_source_filename):  Avoid extra access to input_filename macro.
Concatenate new name with class's package prefix.
(set_source_filename, give_name_to_class): Update.
(give_name_to_class):  Set class's "line 0" input_location here.
(parse_class_file):  Set input_location as a unit.

* jcf-parse.c (load_class): Sanity test if missing inner class file.

From-SVN: r88366
gcc/java/ChangeLog
gcc/java/java-tree.h
gcc/java/jcf-parse.c