aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/xref.h
AgeCommit message (Collapse)AuthorFilesLines
2003-01-09* All Files: Remove PARAMS macro.Kaveh R. Ghazi1-6/+6
From-SVN: r61133
2003-01-01Make-lang.in, [...]: Replace "GNU CC" with "GCC" in the copyright header.Steven Bosscher1-5/+5
* Make-lang.in, boehm.c, buffer.c, buffer.h, builtins.c, class.c, config-lang.in, constants.c, convert.h, decl.c, except.c, expr.c, java-except.h, java-tree.h, javaop.def, jcf-parse.c, jcf-write.c, jv-scan.c, jvgenmain.c, jvspec.c, keyword.gperf, keyword.h, lang-options.h, lang-specs.h, lang.c, lex.c, lex.h, mangle.c, mangle_name.c, parse-scan.y, parse.h, parse.y, typeck.c, verify.c, xref.c, xref.h: Replace "GNU CC" with "GCC" in the copyright header. * check-init.c, gjavah.c, javaop.h, jcf-depend.c, jcf-dump.c, jcf-io.c, jcf-path.c, jcf-reader.c, jcf.h, zextract.c, zipfile.h: These files are "part of GCC". Also say "GCC" not "GNU CC". From-SVN: r60747
2000-01-21buffer.h: PROTO -> PARAMS.Kaveh R. Ghazi1-7/+7
* buffer.h: PROTO -> PARAMS. * check-init.c: Likewise. * class.c: Likewise. * constants.c: Likewise. * convert.h: Likewise. * decl.c: Likewise. * except.c: Likewise. * expr.c: Likewise. * gjavah.c: Likewise. * java-except.h: Likewise. * java-tree.h: Likewise. * jcf-depend.c: Likewise. * jcf-dump.c: Likewise. * jcf-parse.c: Likewise. * jcf-path.c: Likewise. * jcf-reader.c: Likewise. * jcf-write.c: Likewise. * jcf.h: Likewise. * jv-scan.c: Likewise. * jvgenmain.c: Likewise. * jvspec.c: Likewise. * lang.c: Likewise. * lex.c: Likewise. * lex.h: Likewise. * parse-scan.y: Likewise. * parse.h: Likewise. * parse.y: Likewise. * typeck.c: Likewise. * verify.c: Likewise. * xref.c: Likewise. * xref.h: Likewise. * zextract.c: Likewise. * zipfile.h: Likewise. From-SVN: r31550
1999-08-10check-init.c (check_bool2_init, [...]): Add static prototypes.Kaveh R. Ghazi1-1/+1
* check-init.c (check_bool2_init, done_alternative): Add static prototypes. * class.c (add_interface_do, maybe_layout_super_class): Likewise. (add_method, build_utf8_ref, build_class_ref, append_gpp_mangled_type, layout_class_method): Constify a char*. * decl.c (push_promoted_type, make_binding_level): Add static prototypes. (push_promoted_type, pushdecl): Constify a char*. * except.c (find_handler_in_range, link_handler, check_start_handlers): Add static prototypes. * expr.c (process_jvm_instruction): Constify a char*. * gjavah.c (main): Constify a char*. * java-tree.h (verify_jvm_instructions, process_jvm_instruction): Constify a char*. * jcf-depend.c (free_entry, add_entry, munge, print_ents): Add static prototypes. (add_entry, jcf_dependency_set_target, jcf_dependency_add_target, munge, print_ents): Constify a char*. * jcf-dump.c (disassemble_method): Constify a char*. (print_constant_pool, print_exception_table): Add static prototypes. (print_constant, print_exception_table, main, disassemble_method): Constify a char*. * jcf-io.c (find_classfile, find_class): Likewise. * jcf-parse.c (JPOOL_UTF_DATA, find_in_current_zip): Likewise. (set_source_filename, predefined_filename_p): Add static prototypes. (set_source_filename, get_constant, get_class_constant, find_in_current_zip): Constify a char*. * jcf-path.c (free_entry, append_entry, add_entry, add_path): Add static prototypes. (add_entry, add_path, jcf_path_classpath_arg, jcf_path_CLASSPATH_arg, jcf_path_include_arg): Constify a char*. * jcf-reader.c (get_attribute, jcf_parse_preamble, jcf_parse_constant_pool, jcf_parse_class, jcf_parse_fields, jcf_parse_one_method, jcf_parse_methods, jcf_parse_final_attributes): Add static prototypes. (get_attribute): Constify a char*. * jcf.h (find_class, find_classfile, jcf_dependency_set_target, jcf_dependency_add_target, jcf_path_classpath_arg, jcf_path_CLASSPATH_arg, jcf_path_include_arg): Constify a char*. * jv-scan.c (main): Constify a char*. (gcc_obstack_init): Add prototype arguments. * jvgenmain.c (gcc_obstack_init): Likewise. (main): Constify a char*. * lang.c (put_decl_string, put_decl_node, java_dummy_print): Add static prototypes. (put_decl_string, lang_print_error): Constify a char*. (lang_init): Remove redundant extern prototype. * mangle.c (emit_unicode_mangled_name): Constify a char*. * typeck.c (convert_ieee_real_to_integer, parse_signature_type): Add static prototypes. (get_type_from_signature): Constify a char*. * verify.c (check_pending_block, type_stack_dup, start_pc_cmp ): Add static prototypes. (start_pc_cmp): Prefer PTR over GENERIC_PTR. (verify_jvm_instructions): Constify a char*. * xref.c (xref_flag_value): Likewise. * xref.h (xref_flag_value): Likewise. * zextract.c (makeword, makelong): Add static prototypes. (makeword, makelong): Constify a uch*. From-SVN: r28648
1999-05-14[multiple changes]Alexandre Petit-Bianco1-0/+1
Fri May 14 12:31:08 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * xref.c (xref_set_current_fp): New function, defined. * xref.h (xref_set_current_fp): New function, prototyped. Fri May 14 11:57:54 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * check-init.c (check_init): Take into account that LABELED_BLOCK_STMT can be empty. From-SVN: r26935
1999-05-13check-init.c (check_init): Removed code accepting to see things falling ↵Alexandre Petit-Bianco1-1/+2
through default:, when doing xrefs. Thu May 13 13:23:38 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * check-init.c (check_init): Removed code accepting to see things falling through default:, when doing xrefs. * java-tree.h (do_not_fold): New global variable, declared. * parse.y (do_not_fold): New global variable, defined. (java_complete_expand_method): Set `do_not_fold' to the value of `flag_emit_xref'. When doing xrefs: copy the thrown exceptions, and reinstall them after them have been purged; do not check for initializations; do not issue missing return errors. (java_complete_lhs): Do not attempt to patch INSTANCEOF_EXPR nodes when doing xrefs. (patch_binop): Skip the fold part when doing xrefs. (build_string_concatenation): Skip the concatenation part when doing xrefs. (patch_synchronized_statement): Do not generate a try-finally when doing xrefs. (patch_throw_statement): When doing xrefs, do not call BUILD_THROW and keep the location where the throw was seen. * typeck.c (convert): When `do_not_fold' is set, do not attempt any treatment on the converted node an simply return a NOP_EXPR of the targeted type. * xref.c (xref_get_data): New function, defined. * xref.h (xref_get_data): New function, declared. (XREF_GET_DATA): Use xref_get_data. From-SVN: r26926
1999-04-19lang.c (lang_decode_option): Fixed returned value when parsing `-fxref=...' ↵Alexandre Petit-Bianco1-0/+4
and `-Wall'. Mon Apr 19 14:44:48 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * lang.c (lang_decode_option): Fixed returned value when parsing `-fxref=...' and `-Wall'. * parse.y (source_end_java_method): Do not generate code when flag_emit_xref is set. (resolve_expression_name): Do not build static field access when flag_emit_xref is set. (resolve_field_access): No special treatement on `length' when flag_emit_xref is set. Do not build qualified static field access when flag_emit_xref is set. (patch_invoke): Keep the method DECL as operand 0 of the CALL_EXPR when flag_emit_xref is set. (patch_assignment): Do not generate array store runtime check when flag_emit_xref is set. * xref.c (xref_flag_value): Fixed function declaration indentation. (xset_set_data): New function. * xref.h (xref_set_data): Added prototype for new function. (typedef struct xref_flag_table): New field data. (XREF_GET_DATA): New macro. From-SVN: r26550
1999-04-19xref.h (enum): Removed trailing comma.Tom Tromey1-1/+1
* xref.h (enum): Removed trailing comma. * parse.y (resolve_qualified_expression_name): Added missing `break'. From-SVN: r26546
1999-03-27[multiple changes]Alexandre Petit-Bianco1-1/+1
Sat Mar 27 15:13:21 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.h (EXPR_WFL_GET_LINECOL): Set a line and column count using a WFL compound value. * parse.y (xref.h): Include. (maybe_create_class_interface_decl): Set DECL_SOURCE_LINE to the WFL compound value. (register_fields): Set WFL compound value to lineno if doing xrefs. (java_complete_expand_method): Call expand_xref if flag_emit_xref is set. * xref.c (system.h, jcf.h, parse.h, obstack.h): Include. * xref.h (expand_xref): Prototype renamed from xref_generate. Sat Mar 27 14:16:32 1999 Alexandre Petit-Bianco <apbianco@cygnus.com> * parse.h (BLOCK_CHAIN_DECL): New use GET_CURRENT_BLOCK. (GET_CURRENT_BLOCK): New macro. * parse.y (current_static_block): New global variable. (method_body:): Define action. (complete_method_declaration): Set current_function_decl to NULL when work on the current method is done. (declare_local_variables): Use GET_CURRENT_BLOCK. (java_method_add_stmt): Likewise. (java_complete_expand_method): Disable the use of `this' when expanding <clinit>. (enter_a_block): If no current method exist, use current_static_block to link static initializer blocks. (exit_block): Rewritten to use current_static_block when no current method decl exists. (lookup_name_in_blocks): Use GET_CURRENT_BLOCK. (patch_return): Forbid the use of `return' in static initializers. (patch_throw_statement): Fixed indentation. Issue specific error for uncaught thrown checked exception in static initializer blocks. Removed FIXME. From-SVN: r26018
1999-03-22Makefile.in: (JAVA_OBJS) Added entry xref.o.Alexandre Petit-Bianco1-0/+42
1999-03-22 Alexandre Petit-Bianco <apbianco@cygnus.com> * Makefile.in: (JAVA_OBJS) Added entry xref.o. (xref.o): New rule. * java-tree.h (flag_emit_xref): Declared extern. * lang.c: (xref.h): Included. (flag_emit_xref): New global variable. (lang_decode_option): Added support for -fxref. * xref.c: Created. * xref.h: Likewise. From-SVN: r25907