aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
AgeCommit message (Collapse)AuthorFilesLines
2001-05-26toplev.c (debug_args, [...]): Mark descriptions for translation.Zack Weinberg1-19/+36
* toplev.c (debug_args, f_options, W_options): Mark descriptions for translation. (display_help): Translate descriptions on output. * cp/lang-options.h, f/lang-options.h, java/lang-options.h, objc/lang-options.h: Mark descriptions for translation. From-SVN: r42618
2001-05-25Standardize header guards.Richard Henderson6-15/+21
From-SVN: r42615
2001-05-23jv-scan.c (version): Update copyright year.Joseph Myers2-1/+5
gcc/java: * jv-scan.c (version): Update copyright year. libjava: * gij.cc (version): Update copyright year. From-SVN: r42505
2001-05-21jcf-parse.c (read_class): If class is from .class or .zip file and it's ↵Per Bothner2-10/+19
already been read... * jcf-parse.c (read_class): If class is from .class or .zip file and it's already been read, don't push/pop parser context. From-SVN: r42407
2001-05-18jvspec.c (lang_specific_pre_link): Re-arrange the linker command line so the ↵Per Bothner2-1/+20
jvgenmain-generated main program... * jvspec.c (lang_specific_pre_link): Re-arrange the linker command line so the jvgenmain-generated main program comes first. From-SVN: r42270
2001-05-15expr.c (build_class_init): Move MODIFY_EXPR outside of COND_EXPR.Jeff Sturm2-6/+11
2000-05-02 Jeff Sturm <jsturm@one-point.com> * expr.c (build_class_init): Move MODIFY_EXPR outside of COND_EXPR. Remove variable `call'. From-SVN: r42134
2001-05-15class.c (build_utf8_ref): Don't generate identifier based on utf8const contents.Tom Tromey2-17/+6
* class.c (build_utf8_ref): Don't generate identifier based on utf8const contents. From-SVN: r42110
2001-05-12java-tree.def (JAVA_EXC_OBJ_EXPR): New.Richard Henderson6-9/+29
* java-tree.def (JAVA_EXC_OBJ_EXPR): New. * expr.c (java_lang_expand_expr): Expand it. (process_jvm_instruction): Build JAVA_EXC_OBJ_EXPR instead of calling build_exception_object_ref. * parse.y (catch_clause_parameter): Likewise. (build_dot_class_method): Likewise. (try_reference_assignconv): Likewise. * check-init.c (check_init): Check JAVA_EXC_OBJ_EXPR not EXC_PTR_EXPR. * jcf-write.c (generate_bytecode_insns): Likewise. From-SVN: r42030
2001-05-08re PR java/2538 (latest gcj no longer compiles apache xerces parser due ↵Alexandre Petit-Bianco2-4/+15
problems with variable declarations and inner classes) 2001-05-07 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (build_unresolved_array_type): Set EXPR_WFL_QUALIFICATION on the newly created wfl. Fixes PR java/2538. Fixes PR java/2535. (http://gcc.gnu.org/ml/gcc-patches/2001-05/msg00438.html ) From-SVN: r41917
2001-05-07re PR java/2598 (Runtime crash regression accessing field from enclosing ↵Alexandre Petit-Bianco2-10/+18
class from inner class) 2001-05-07 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (fix_constructors): Removed unecessary assignment to local. Moved assignment to `this$<n>', fixed comments and indentation. (build_wfl_wrap): Fixed indentation. Fixes PR java/2598, java/2579 and java/2658. (http://gcc.gnu.org/ml/gcc-patches/2001-05/msg00412.html ) From-SVN: r41905
2001-05-03lex.c (java_new_lexer): Call iconv_close on temp handle used to check for ↵Mo DeJong2-0/+6
byte swap. 2001-05-03 Mo DeJong <mdejong@redhat.com> * lex.c (java_new_lexer): Call iconv_close on temp handle used to check for byte swap. (http://gcc.gnu.org/ml/java-patches/2001-q2/msg00185.html ) From-SVN: r41818
2001-05-02call.c: NULL_PTR -> NULL.Kaveh R. Ghazi3-27/+29
cp: * call.c: NULL_PTR -> NULL. * class.c: Likewise. * cvt.c: Likewise. * decl.c: Likewise. * decl2.c: Likewise. * except.c: Likewise. * init.c: Likewise. * rtti.c: Likewise. * search.c: Likewise. * tree.c: Likewise. * typeck.c: Likewise. * typeck2.c: Likewise. f: * com.c: NULL_PTR -> NULL. java: * decl.c: NULL_PTR -> NULL. * jcf-write.c: Likewise. From-SVN: r41762
2001-05-01Make-lang.in ($(srcdir)/java/gcj.info): Added `-I..'.Tom Tromey3-43/+49
* Make-lang.in ($(srcdir)/java/gcj.info): Added `-I..'. (java/gcj.dvi): Added $(srcdir) to TEXINPUTS. * gcj.texi: Updated copyright text. Include fdl.texi. (Top): Link to new node. From-SVN: r41743
2001-05-01* parse.h (REGISTER_IMPORT): Use tree_cons instead of chainon.Per Bothner2-2/+5
From-SVN: r41741
2001-05-01parse.y (java_pop_parser_context): The TREE_VALUE of a link in the ↵Per Bothner2-2/+7
import_list contains the name, not the TREE_PURPOSE. * parse.y (java_pop_parser_context): The TREE_VALUE of a link in the import_list contains the name, not the TREE_PURPOSE. From-SVN: r41739
2001-04-29jcf-io.c (read_zip_member): Cast to long in comparison with signed value.Kaveh R. Ghazi6-8/+23
* jcf-io.c (read_zip_member): Cast to long in comparison with signed value. * jvspec.c (lang_specific_driver): Initialize variables. * mangle.c (find_compression_record_match): Likewise. * typeck.c (build_null_signature): Provide static prototype. Mark parameter with ATTRIBUTE_UNUSED. * verify.c (verify_jvm_instructions): Initialize variable. From-SVN: r41671
2001-04-27parse.y (java_expand_classes): Don't change ctxp_for_generation while ↵Per Bothner2-10/+13
iterating... * parse.y (java_expand_classes): Don't change ctxp_for_generation while iterating, since that could cause gc to lose stuff. From-SVN: r41640
2001-04-26Fix method search wrt scope of inner classes to match JLS2.Per Bothner4-24/+56
From-SVN: r41604
2001-04-26jcf-write.c (generate_bytecode_insns case SWITCH_EXPR): Fix thinko: If a ↵Per Bothner4-15/+36
single case, use if_icmpeq, not ifeq. * jcf-write.c (generate_bytecode_insns case SWITCH_EXPR): Fix thinko: If a single case, use if_icmpeq, not ifeq. * constants.c (find_methodref_with_class_index): New function. (find_methodref_index): Use find_methodref_with_class_index. * java-tree.h (find_methodref_with_class_index): New declaration. * jcf-write.c (generate_bytecode_insns case CALL_EXPR): Don't change DECL_CONTEXT, instead use new find_methodref_with_class_index function. If context changed from interface to class, don't use invokeinterface. From-SVN: r41601
2001-04-26verify.c (verify_jvm_instructions): For field instructions, check that field ↵Per Bothner2-10/+48
index is valid. * verify.c (verify_jvm_instructions): For field instructions, check that field index is valid. For invoke instructions, check that method index is valid. From-SVN: r41600
2001-04-25* config-lang.in (target_libs): Copy from $libgcj_saved.Alexandre Oliva2-1/+5
From-SVN: r41552
2001-04-25decl.c (init_decl_processing): Add new class "protectionDomain" field.Bryce McKinlay3-0/+8
gcc/java: 2001-04-25 Bryce McKinlay <bryce@waitaki.otago.ac.nz> * decl.c (init_decl_processing): Add new class "protectionDomain" field. * class.c (make_class_data): Set initial value for "protectionDomain". libjava: 2001-04-25 Bryce McKinlay <bryce@albatross.co.nz> java.security merge and ClassLoader compliance fixes. * java/lang/Class.h (Class): Include ProtectionDomain.h. New protectionDomain field. (forName): Add initialize parameter. Fixes declaration to comply with JDK spec. * java/lang/natClass.cc (forName): Correct declaration of the three-arg variant. Honour "initialize" flag. (getProtectionDomain0): New method. * java/lang/Class.java: Fix forName() declaration. (getPackage): New method based on Classpath implementation. (getProtectionDomain0): New native method decl. (getProtectionDomain): New method. * java/lang/ClassLoader.java (getParent): Now final. (definedPackages): New field. (getPackage): New. (defineClass): New variant with protectionDomain argument. (definePackage): New. (getPackages): New. (findSystemClass): Now final. (getSystemResourceAsStream): Remove redundant "final" modifier. (getSystemResource): Remove redundant "final" modifier. (getResources): Now final. (protectionDomainPermission): New static field. (unknownProtectionDomain): Ditto. (defaultProtectionDomain): Ditto. (getSystemClassLoader): Now non-native. * java/util/ResourceBundle.java (tryGetSomeBundle): Use the correct arguments for Class.forName(). * java/lang/Package.java: New file. * gnu/gcj/runtime/VMClassLoader.java (getVMClassLoader): Removed. (instance): Static initialize singleton. (findClass): Override this, not findSystemClass. * java/lang/natClassLoader.cc (defineClass0): Set class's protectionDomain field as specified. (getSystemClassLoader): Removed. (findClass): Renamed from findSystemClass. Call the interpreter via URLClassLoader.findClass if loading class via dlopen fails. * java/security/*.java: java.security import/merge with Classpath. * java/security/acl/*.java: Likewise. * java/security/interfaces/*.java: Likewise. * java/security/spec/*.java: Likewise. * java/net/NetPermission.java: Likewise. * java/net/SocketPermission.java: Likewise. * gnu/java/security/provider/DefaultPolicy.java: Likewise. * Makefile.am: Add new classes. * Makefile.in: Rebuilt. * gcj/javaprims.h: CNI namespace rebuild. From-SVN: r41543
2001-04-23collect2.c (main): Use concat in lieu of xmalloc/sprintf.Kaveh R. Ghazi2-8/+7
* collect2.c (main): Use concat in lieu of xmalloc/sprintf. (write_c_file_stat): Likewise. * dbxout.c (dbxout_init): Likewise. * profile.c (output_func_start_profiler): Likewise. cp: * xref.c (GNU_xref_file): Use concat in lieu of xmalloc/sprintf. f: * com.c (ffecom_subscript_check_): Use concat in lieu of xmalloc/sprintf. java: * jvspec.c (lang_specific_driver): Fix memory allocation deficit, by using concat in lieu of xmalloc/sprintf. From-SVN: r41495
2001-04-20Fixes to compile multiple .class files at once.Per Bothner5-78/+85
From-SVN: r41472
2001-04-19vms.h: Change OBJECT_SUFFIX and EXECUTABLE_SUFFIX to TARGET_OBJECT_SUFFIX and...DJ Delorie1-4/+4
* config/alpha/vms.h: Change OBJECT_SUFFIX and EXECUTABLE_SUFFIX to TARGET_OBJECT_SUFFIX and TARGET_EXECUTABLE_SUFFIX. * config/i386/cygwin.h: Likewise. * config/i386/mingw32.h: Likewise. * config/vax/vms.h: Likewise. * config/i386/djgpp.h: Remove NO_AUTO_EXE_SUFFIX. * config/alpha/xm-vms.h: Change OBJECT_SUFFIX and EXECUTABLE_SUFFIX to HOST_OBJECT_SUFFIX and HOST_EXECUTABLE_SUFFIX. * config/i386/xm-cygwin.h: Likewise. * config/i386/xm-djgpp.h: Likewise. * config/i386/xm-mingw32.h: Likewise. * config/vax/xm-vms.h: Likewise. * mkdeps.c (deps_add_default_target): Use TARGET_OBJECT_SUFFIX instead of OBJECT_SUFFIX. * collect2.c (find_a_file): Look for files matching the extension HOST_EXECUTABLE_SUFFIX instead of EXECUTABLE_SUFFIX. * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Depend on TARGET_EXECUTABLE_SUFFIX. (find_a_file): Use HOST_EXECUTABLE_SUFFIX. (make_relative_prefix): Likewise. (convert_filename): Use TARGET_ suffixes throughout. Remove NO_AUTO_EXE_SUFFIX. (process_command): Likewise. (do_spec_1): Likewise. * java/lang.c (init_parse): Likewise. * gcc.texi : Document four new options matching the pattern (HOST|TARGET)_(OBJECT|EXECUTABLE)_SUFFIX. Remove documentation for deleted macros OBJECT_SUFFIX and EXECUTABLE_SUFFIX. Remove documentation for NO_AUTO_EXE_SUFFIX. From-SVN: r41428
2001-04-12* config-lang.in (lang_dirs): Add in zlib.Kelley Cook1-1/+1
From-SVN: r41280
2001-04-11Makefile.in (ifcvt.o): Depend on toplev.h.Kaveh R. Ghazi3-1/+8
* Makefile.in (ifcvt.o): Depend on toplev.h. * c-semantics.c: Include expr.h. * ifcvt.c: Include toplev.h. * expr.h (rtx_equal_p): Delete prototype. * rtl.h (exact_log2_wide, floor_log2_wide, permalloc, protect_from_queue, gen_jump, gen_beq, gen_bge, gen_ble, eliminate_constant_term, expand_complex_abs, find_single_use, make_tree, init_expr_once, init_optabs, supports_one_only): Likewise. * tree.h (exact_log2_wide, floor_log2_wide, expand_null_return, rest_of_type_compilation, emit_queue, do_pending_stack_adjust, expand_assignment, store_expr, emit_line_note_after, emit_line_note_force, split_specs_attrs, label_rtx): Likewise. * toplev.h (exact_log2_wide, floor_log2_wide): Add prototype. cp: * Make-lang.in (cp/semantics.o): Depend on $(EXPR_H). * semantics.c: Include expr.h. java: * Make-lang.in (java/boehm.o): Depend on toplev.h. * boehm.c: Include toplev.h. From-SVN: r41256
2001-04-07Fix for PR gcj/1404 and PR gcj/2332:Tom Tromey2-3/+22
2001-04-06 Tom Tromey <tromey@redhat.com> Alexandre Petit-Bianco <apbianco@redhat.com> Fix for PR gcj/1404 and PR gcj/2332: * parse.y (build_array_from_name): If we use the type_wfl then accumulate dimensions from the original type as well. (build_unresolved_array_type): Don't modify TYPE_OR_WFL in place. Co-Authored-By: Alexandre Petit-Bianco <apbianco@redhat.com> From-SVN: r41178
2001-04-06parse.y (analyze_clinit_body): Return true if the second operand of a ↵Tom Tromey2-4/+8
METHOD_EXPR is nonzero. * parse.y (analyze_clinit_body): Return true if the second operand of a METHOD_EXPR is nonzero. From-SVN: r41164
2001-04-06Make-lang.in ($(srcdir)/java/parse-scan.c): Run bison from build directory.Tom Tromey2-6/+11
* Make-lang.in ($(srcdir)/java/parse-scan.c): Run bison from build directory. ($(srcdir)/java/parse.c): Likewise. From-SVN: r41162
2001-04-05gcj.texi: Use `which-gcj' instead of `which-g77.'Alexandre Petit-Bianco2-1/+11
2001-04-05 Alexandre Petit-Bianco <apbianco@redhat.com> * gcj.texi: Use `which-gcj' instead of `which-g77.' (version-gcc): Initialized. (which-gcj): Likewise. (http://gcc.gnu.org/ml/gcc-patches/2001-04/msg00333.html) From-SVN: r41133
2001-04-05re PR java/1315 (Inner class initializer crash)Alexandre Petit-Bianco3-14/+53
2001-04-04 Alexandre Petit-Bianco <apbianco@redhat.com> * java-tree.h (struct lang_decl): New macro `DECL_FIXED_CONSTRUCTOR_P.' New field `fixed_ctor.' * parse.y (build_instance_initializer): New function. (add_instance_initializer): Use it. (java_fix_constructors): Set `current_class' before fix pass. (fix_constructors): Just return if already fixed. Move `super()' invokation ahead. Use `build_instance_initializer.' Fixes PR java/1315. (http://gcc.gnu.org/ml/gcc-patches/2001-04/msg00343.html) From-SVN: r41129
2001-04-05parse.y (resolve_qualified_expression_name): Pass field's DECL_CONTEXT to ↵Alexandre Petit-Bianco2-2/+9
`not_accessible_p.' 2001-04-04 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (resolve_qualified_expression_name): Pass field's DECL_CONTEXT to `not_accessible_p.' (not_accessible_p): Changed parameters order in `inherits_from_p' invokation. (http://gcc.gnu.org/ml/gcc-patches/2001-04/msg00326.html) From-SVN: r41126
2001-04-05lang-options.h: Add flag_check_references.Andrew Haley2-0/+5
2001-03-27 Andrew Haley <aph@cambridge.redhat.com> * lang-options.h: Add flag_check_references. From-SVN: r41124
2001-04-04java-tree.h (CONSTANT_VALUE_P): New macro.Per Bothner4-29/+57
* java-tree.h (CONSTANT_VALUE_P): New macro. * jcf-write.c (generate_classfile): Use CONSTANT_VALUE_P. * parse.y (maybe_build_class_init_for_field): New static function. (resolve_expression_name, resolve_field_access): Use maybe_build_class_init_for_field instead of build_class_init This does not do the init if the field is compile-time-constant. (resolve_field_access): Simplify. * parse.y (fold_constant_for_init): Merge test into switch. From-SVN: r41094
2001-04-04re PR java/1074 (jv-scan fails on ArrayClass.java)Alexandre Petit-Bianco2-17/+35
2001-03-30 Alexandre Petit-Bianco <apbianco@redhat.com> * parse-scan.y (array_type:): Rewritten. (type_declaration:): `empty_statement' replaces `SC_TK.' (class_member_declaration:): `empty statement' added. (method_body:): Simplified. (static_initializer:): Likewise. (primary_no_new_array:): Use `type_literals.' (type_literals:): New rule. (dims:): Set and update `bracket_count.' Fixes PR java/1074. Fixes PR java/2412. (http://gcc.gnu.org/ml/gcc-bugs/2001-03/msg00835.html, http://gcc.gnu.org/ml/gcc-bugs/2000-12/msg00384.html, http://gcc.gnu.org/ml/gcc-patches/2001-04/msg00258.html) From-SVN: r41089
2001-04-04ansidecl.h: All logic from gcc/gansidecl.h moved here.Zack Weinberg4-6/+9
include: * ansidecl.h: All logic from gcc/gansidecl.h moved here. gcc: * gansidecl.h: Delete file. * configure.in: Change all refs to gansidecl.h to use ansidecl.h. Adjust *_file_list so they know where ansidecl.h lives. * configure: Regenerate. * Makefile.in (intl.o): Don't depend on gansidecl.h. * defaults.h: s/gansidecl.h/ansidecl.h/ in comment. * ggc.h, config/fr30/fr30.h, config/mcore/mcore.c: Don't include gansidecl.h. * intl.c, main.c, version.c, fixinc/fixlib.h, fixinc/procopen.c, fixinc/server.c: Include ansidecl.h not gansidecl.h. gcc/java: * Make-lang.in (buffer.o, check-init.o, class.o): Don't depend on gansidecl.h. * buffer.c, jvgenmain.c: Don't include gansidecl.h. libiberty: * make-temp-file.c (try): Inline. From-SVN: r41069
2001-04-03boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): Set to use `build_int_2.'Alexandre Petit-Bianco2-7/+14
2001-03-28 Hans Boehm <boehm@acm.org> * boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): Set to use `build_int_2.' (get_boehm_type_descriptor): Set type on returned value to be a pointer length integer. (http://gcc.gnu.org/ml/java/2001-03/msg00444.html) From-SVN: r41059
2001-04-03expr.c (pop_type_0): Save the result of the first lang_printable_name call ↵Zack Weinberg2-3/+15
in a scratch buffer... * expr.c (pop_type_0): Save the result of the first lang_printable_name call in a scratch buffer, so it won't be clobbered by the second call. From-SVN: r41032
2001-03-28expr.c (pop_type_0): Call `concat' rather than building the string manually.Kaveh R. Ghazi3-25/+24
* expr.c (pop_type_0): Call `concat' rather than building the string manually. (pop_type): Add format specifier in call to `error'. * parse.y (patch_method_invocation): Avoid casting away const-ness. From-SVN: r40940
2001-03-28re PR java/2066 (Source parser segfault in resolve_package)Alexandre Petit-Bianco2-2/+9
2001-03-21 Alexandre Petit-Bianco <apbianco@redhat.com> * parse.y (qualify_ambiguous_name): Broaden `length' recognition. Help MODIFY_EXPR be resolved as expression names. Fixes PR java/2066. Fixes PR java/2400. (http://gcc.gnu.org/ml/gcc-patches/2001-03/msg01935.html) From-SVN: r40938
2001-03-28jvgenmain.c (do_mangle_classname): End string constant with '\0'.Jeffrey Oldham2-0/+5
2001-03-28 Jeffrey Oldham <oldham@codesourcery.com> * jvgenmain.c (do_mangle_classname): End string constant with '\0'. From-SVN: r40936
2001-03-28IA-64 ABI Exception Handling.Richard Henderson10-89/+82
From-SVN: r40924
2001-03-28java-tree.h (throw_node): Define as a single member of java_global_trees ↵Richard Henderson7-28/+32
instead of a separate array. * java-tree.h (throw_node): Define as a single member of java_global_trees instead of a separate array. (JTI_THROW_NODE): New. * decl.c (throw_node): Don't declare. (init_decl_processing): Init a scalar throw_node. Don't register it for gc. * check-init.c (check_init): Reference scalar throw_node. * expr.c (build_java_athrow): Likewise. * jcf-write.c (generate_bytecode_insns): Likewise. * parse.h (BUILD_THROW): Likewise. From-SVN: r40922
2001-03-28decl.c (end_java_method): Do not save and restore flag_non_call_exceptions.Richard Henderson4-24/+12
* decl.c (end_java_method): Do not save and restore flag_non_call_exceptions. * parse.y (source_end_java_method): Likewise. * lang.c (flag_exceptions): Don't declare. (java_init_options): Set flag_non_call_exceptions. Set flag_exceptions here ... (java_init): ... not here. From-SVN: r40921
2001-03-27Remove flag_new_exceptions.Richard Henderson2-2/+3
From-SVN: r40908
2001-03-27Make -fsjlj-exceptions a configure option.Richard Henderson3-2/+7
From-SVN: r40905
2001-03-27* parse.y (source_end_java_method): Likewise.Richard Henderson2-4/+5
From-SVN: r40904
2001-03-27bb-reorder.c, [...]: Rename asynchronous_exceptions to flag_non_call_exceptions.Richard Henderson2-4/+9
* bb-reorder.c, dwarf2out.c, except.c, except.h, flow.c, jump.c, toplev.c: Rename asynchronous_exceptions to flag_non_call_exceptions. * java/decl.c (end_java_method): Rename asynchronous_exceptions to flag_non_call_exceptions. From-SVN: r40902
2001-03-27Makefile.in (SYSTEM_H): Define.Kaveh R. Ghazi2-27/+31
* Makefile.in (SYSTEM_H): Define. Depend on $(SYSTEM_H), not system.h. * objc/Make-lang.in: Depend on $(SYSTEM_H), not system.h. cp: * Make-lang.in: Depend on $(SYSTEM_H), not system.h. f: * Make-lang.in: Depend on $(SYSTEM_H), not system.h. java: * Make-lang.in: Depend on $(SYSTEM_H), not system.h. From-SVN: r40883