📄 changelog
字号:
* Makefile.in (parse.o): Depend on $(CONFIG_H) and $(srcdir)/../system.h. (class.o): Depend on $(PARSE_H) and $(srcdir)/../output.h. (jcf-parse.o): Depend on $(srcdir)/../toplev.h. (jcf-write.o): Likewise. (jv-scan.o): Depend on $(CONFIG_H) and $(srcdir)/../system.h. (mangle.o): Depend on $(srcdir)/../toplev.h. (parse-scan.o): Depend on $(CONFIG_H) and $(srcdir)/../system.h. (zextract.o): Depend on $(CONFIG_H) and $(srcdir)/../system.h. * class.c: Include output.h and parse.h. (mangled_classname): Add the `const' keyword to a char*. (find_named_method): Hide unused function definition. (build_utf8_ref): Change type of variable `c' to unsigned char. Use ISALPHA/ISDIGIT instead of isalpha/isdigit. (build_class_ref): Add the `const' keyword to a char*. (layout_class_method): Remove unused variable `buf'. * decl.c (find_local_variable): Remove unused variable `rtl'. (pushdecl): Likewise for variables `different_binding_level' and `oldglobal'. (pushlevel): Mark parameter `unused' with ATTRIBUTE_UNUSED. (maybe_build_cleanup): Likewise for parameter `decl'. * except.c (expand_start_java_handler): Mark parameter `range' with ATTRIBUTE_UNUSED. * expr.c: Include except.h. (pop_type): Remove unused variable `i'. (pop_value): Likewise for variables `n_words' and `i'. (expand_java_arrayload): Likewise for variable `convert'. (java_lang_expand_expr): Likewise for variables `op0', `type', `mode', `unsignedp', `node' and `elements'. (expand_byte_code): Likewise for variables `prev_eh_ranges' and `eh_ranges'. (process_jvm_instruction): Add a `const' qualifier to a char*. * gjavah.c (output_directory): Add the `const' keyword to a char*. (temp_directory): Likewise. (print_c_decl): Likewise. (print_method_info): Likewise. (decode_signature_piece): Likewise. (print_mangled_classname): Likewise. * java-except.h: Provide prototypes for maybe_start_try, maybe_end_try and add_handler. * java-tree.h (mangled_classname): Add the `const' keyword to a char*. (parse_error_context): Likewise. Also add ATTRIBUTE_PRINTF_2. (pushdecl_top_level, alloc_class_constant, unicode_mangling_length, init_expr_processing, push_super_field, init_class_processing, can_widen_reference_to, class_depth, verify_jvm_instructions, maybe_pushlevels, maybe_poplevels, process_jvm_instruction, set_local_type, merge_type_state, push_type, load_type_state, add_interface, find_in_current_zip, append_gpp_mangled_classtype, emit_unicode_mangled_name): Add prototypes. * jcf-dump.c (print_constant): Add the `const' keyword to a char*. (print_signature_type): Use ISDIGIT, not isdigit. (print_signature): Remove unused variable `j'. * jcf-io.c (jcf_filbuf_from_stdio): Cast the result of `fread' to int when comparing against one. * jcf-parse.c: Include toplev.h. * jcf-write.c: Likewise. Don't include <string.h> or <sys/stat.h>. (localvar_free): Remove unused variable `i'. (generate_bytecode_conditional): Likewise for variable `kind'. * jv-scan.c: Include config.h and system.h. Remove redundant OS header and gansidecl.h includes. (warning): Add the `const' keyword to a char*. Also add ATTRIBUTE_PRINTF_1 to the prototype. Check ANSI_PROTOTYPES, not __STDC__, when determining whether to use ANSI-isms. (fatal): Likewise. Also add ATTRIBUTE_UNUSED. (xmalloc): Don't redundantly prototype here. (main): Remove unused parameter `envp'. Also fix the arguments passed to function `fatal' to match the format specifier. * lang.c (java_tree_code_name): Add the `const' keyword to a char*. * mangle.c: Include toplev.h. (emit_unicode_mangled_name): Declare parameter `len'. * parse.y (parse_warning_context): Add the `const' keyword to a char*. Also add ATTRIBUTE_PRINTF_2 to the prototype. Check `ANSI_PROTOTYPES' not `__STDC__' for whether to use ANSI-isms. (issue_warning_error_from_context): Add the `const' keyword to a char*. (parse_error_context): Likewise. Also check `ANSI_PROTOTYPES' not `__STDC__' for whether to use ANSI-isms. * typeck.c (incomplete_type_error): Mark parameters `value' and `type' with ATTRIBUTE_UNUSED. (parse_signature_type): Use ISDIGIT, not isdigit. * verify.c (check_pending_block): Add the `const' keyword to a char*. (verify_jvm_instructions): Likewise. Remove unused variables `field_name' and `default_val'. * zextract.c: Include config.h and system.h. Remove redundant OS header includes. * zipfile.h: Prototype `read_zip_archive'.Thu Jan 21 16:00:06 1999 Andrew Haley <aph@cygnus.com> * typeck.c (convert): Allow conversions to void type: some optimizations in gcc do this.Thu Jan 21 15:21:49 1999 Andrew Haley <aph@cygnus.com> * typeck.c (convert_ieee_real_to_integer): New function. (convert): When not using fast-math and using hardware fp, convert an IEEE NaN to zero. 1999-01-18 Andrew Haley <aph@cygnus.com> * parse.y (patch_binop): Do a type conversion from signed to unsigned and then back to signed when a ">>>" is found.Sun Jan 17 22:34:22 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * java-tree.h: (check_for_initialization): Added prototype. * lex.c (java_parse_doc_section): `\n' breaks the `*/' string. * parse.y (do_resolve_class): Removed unused locals. (read_import_dir): Likewise. (resolve_qualified_expression_name): Array creation expressions are valid primary expressions. (qualify_ambiguous_name): Likewise. (patch_synchronized_statement): Removed unused local.Sun Jan 17 21:55:42 1999 Jeffrey A Law (law@cygnus.com) * Makefile.in (zextract.o): Add dependencies. * Makefile.in: Do not put ^Ls at the start of a line.Fri Jan 15 20:16:20 1999 Per Bothner <bothner@cygnus.com> * expr.c (process_jvm_instruction): Coerce to correct Throwable sub-type the result of the call that gets the exception value. * parse.y (java_complete_expand_methods): If flags_syntax_only, don't call finish_class. * parse.y (java_check_regular_methods): If METHOD_PRIVATE, clear found before continuing. * verify.c (verify_jvm_instructions): On an array load, allow and handle top of stack to be TYPE_NULL. * gjavah.c (generate_access): Translate Java package private or protected access to C++ public, but with a comment.1999-01-13 Andrew Haley <aph@cygnus.com> * expr.c (generate_name): Name prefix changed to avoid clashes with assembler temp labels. * parse.y (patch_synchronized_statement): Set TREE_SIDE_EFFECTS on MODIFY_EXPR. Without this, code for the assignement may not be generated at all and the synchronized statement will read an uninitialized variable. Wed Jan 13 01:24:54 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * class.c (maybe_layout_super_class): Fixed returned value. * lex.c: Added 1999 to the copyright. (java_init_lex): Initialize java_lang_imported. * lex.h: Added 1999 to the copyright. * parse.h: Added 1999 to the copyright. (REGISTER_IMPORT): Fixed typo in trailing macro. (CURRENT_OSB): New macro. (struct parser_ctxt): New fields osb_depth, osb_limit. * parse.y (java_lang_id): New global variable. (type_import_on_demand_declaration): Don't import java.lang.* twice. (array_creation_expression:): Use CURRENT_OSB. (dims:): Uses a stack to keep track of array dimensions. (cast_expression:): Use CURRENT_OSB. (find_expr_with_wfl): Return NULL if node found doesn't meet the conditions. (register_fields): Fixed typos in comment. (check_method_redefinition): Fixed comment indentation. (java_check_regular_methods): Set saved found wfl to NULL after having reinstalled it in the previously found DECL_NAME.Sun Jan 10 13:36:14 1999 Richard Henderson <rth@cygnus.com> * gjavah.c (java_float_finite): Use a union to do type punning. (java_double_finite): Likewise.Sat Jan 9 11:25:00 1999 Per Bothner <bothner@cygnus.com> * parse.y (build_new_array_init): Don't set EXPR_WFL_LINECOL on CONSTRUCTOR (since that trashes TREE_CST_RTL). (patch_new_array_init): Clear TREE_CONSTANT also if INDIRECT_REF. (register_fields): Set TREE_STATIC on NEW_ARRAY_INIT, not on CONSTRUCTOR (which causes expand_expr to call output_constant_def). * expr.c (java_lang_expand_expr): Check TREE_STATIC of NEW_ARRAY_INIT.Fri Jan 8 15:48:03 1999 Per Bothner <bothner@cygnus.com> * check-init.c (check_init): If compiling to native, we don't see THROW_EXPR. Instead, look for a call to throw_node (_Jv_Throw).1999-01-08 Tom Tromey <tromey@cygnus.com> * parse-scan.y (variable_declarator_id): Set or increment bracket_count. (bracket_count): New global. (formal_parameter): Handle case where bracket pairs trail variable declarator id.1999-01-07 Andrew Haley <aph@viagra.cygnus.co.uk> * jcf-parse.c (yyparse): variable len changed from a char to an int to prevent overflow.Wed Jan 6 17:19:46 1999 Per Bothner <bothner@cygnus.com> * java-tree.h: Declare read_class. * jcf-parse.c (read_class): New function. (load_class): Now just call read_class. * java-tree.h (java_parse_abort_on_error): Only return if new errors. * jcf-parse.c (parse_source_file): Declare save_error_count, which is needed by java_parse_abort_on_error macro, * parse.y (java_layout_classes, java_expand_classes): Likewise. * parse.y (register_fields): Set TREE_STATIC flag of NEW_ARRAY_INIT constructor, if initializing a static field. (patch_new_array_init): Set TREE_CONSTANT if it is. * expr.c (java_lang_expand_expr): For a static array constructor of primitive elements, allocate the array itself statically. Disabled until we can set the vtable field statically. * check-init.c: New file. Checks for definite assignment. * Makefile.in (JAVA_OBJS): Add check-init.o. * parse.y (java_complete_expand_method): Call check_for_initialization. * parse.h (BLOCK_EXPR_DECLS, BLOCK_EXPR_BODY): Moved to java-tree.h.Wed Jan 6 14:53:10 1999 Graham <grahams@rcp.co.uk> * parse.y : include system.h instead of including standard headers directly with the exception of <dirent.h>.Wed Jan 6 16:20:06 1999 Per Bothner <bothner@cygnus.com> * lex.h: Moved static function declarations to lex.c, to shut up some -Wall warnings. * lex.c: Static function declarations moved here. * jcf-dump.c: Small fixes to shut up -Wall warnings.Tue Jan 5 22:15:40 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * Make-lang.in ($(GCJ).o): Depend on prefix.h.Tue Dec 22 11:25:19 1998 Per Bothner <bothner@cygnus.com> * expr.c (process_jvm_instruction): Do load_type_state after JSR. * verify.c (verify_jvm_instructions): Fix off-by-one error. * jcf-write.c (CHECK_PUT): Add (void) cast to avoid -Wall warnings. (localvar_alloc): Change return type to void, (emit_unop): Remove unused variable size. * jcf-write.c (struct jcf_block): Add new union. (PENDING_CLEANUP_PC, PENDING_EXIT_PC, UNDEFINED_PC): New macros. (call_cleanups): New functions. (struct jcf_partial): New fields num_finalizers and return_value_decl. (generate_bytecode_insns): Support CLEANUP_POINT_EXPR and WITH_CLEANUP_EXPR. Handle cleanups in RETURN_EXPR and EXIT_BLOCK_EXPR. * lang.c (lang_init): Call using_eh_for_cleanups. * parse.y (java_complete_lhs): For SYNCHRONIZED_EXPR, defer completing operands to patch_synchronized_statement. Support CLEANUP_POINT_EXPR, WITH_CLEANUP_EXPR. (patch_synchronized_statement): Re-write suing CLEANUP_POINT_EXPR and WITH_CLEANUP_EXPR instead of TRY_EXPR. Sun Dec 20 16:15:44 1998 John F. Carr <jfc@mit.edu> * Make-lang.in: Comment out control-Ls; they upset some makes.1998-12-18 Tom Tromey <tromey@cygnus.com> * parse.y (check_class_interface_creation): Use DIR_SEPARATOR consistently.1998-12-17 Tom Tromey <tromey@cygnus.com> * parse.y (DIR_SEPARATOR): New define. (check_class_interface_creation): Use it. * parse-scan.y (report_main_declaration): Recognize `java.lang.String' in argument to main.Wed Dec 16 16:18:59 1998 Per Bothner <bothner@cygnus.com> * parse.y (create_interface): Remove bogus test.Wed Dec 16 14:42:19 1998 Per Bothner <bothner@cygnus.com> * jcf-parse.c (get_constant): Set TREE_TYPE for string constants. (HANDLE_CONSTANTVALUE): If flag_emit_class_files, call get_constant.1998-12-16 Tom Tromey <tromey@cygnus.com> * parse-scan.y (qualified_name): Use correct sprintf format.1998-12-15 Tom Tromey <tromey@cygnus.com> * gjavah.c (print_field_info): Changed how most negative number is printed.Mon Dec 14 18:49:29 1998 Per Bothner <bothner@cygnus.com> * parse.y (fold_constant_for_init): New function. (resolve_expression_name): Don't replace static final constant-initialized fields by its value. (java_complete_lhs): New. Same as java_complete_tree, except does not replace static final constant-initialized fields by their values. (register_fields): If there is an initializer, set DECL_INITIAL and MODIFY_EXPR_FROM_INITIALIZATION_P. (java_complete_tree): For MODIFY_EXPR, use java_complete_lhs for lhs. Only call patch_initialized_static_field if MODIFY_EXPR_FROM_INITIALIZATION_P. (patch_initialized_static_field): If not valid constant, clear DECL_INITIAL. * parse.y (lookup_field_wrapper): Fix thinko. * parse.y (java_complete_tree): In EXPR_WITH_FILE_LOCATION, set and restore global lineno.1998-12-14 Tom Tromey <tromey@cygnus.com> * gjavah.c (print_field_info): If v
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -