summaryrefslogtreecommitdiffstats
path: root/gcc/java
Commit message (Collapse)AuthorAgeFilesLines
* * jvspec.c (lang_specific_pre_link): Re-arrange the linkerbothner2001-05-182-1/+20
| | | | | | | command line so the jvgenmain-generated main program comes first. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42270 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-05-02 Jeff Sturm <jsturm@one-point.com>apbianco2001-05-162-6/+11
| | | | | | | | * expr.c (build_class_init): Move MODIFY_EXPR outside of COND_EXPR. Remove variable `call'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42134 138bc75d-0d04-0410-961f-82ee72b054a4
* * class.c (build_utf8_ref): Don't generate identifier based ontromey2001-05-152-17/+6
| | | | | | | utf8const contents. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42110 138bc75d-0d04-0410-961f-82ee72b054a4
* * java-tree.def (JAVA_EXC_OBJ_EXPR): New.rth2001-05-136-9/+29
| | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42030 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-05-07 Alexandre Petit-Bianco <apbianco@redhat.com>apbianco2001-05-082-4/+15
| | | | | | | | | | | * 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 ) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41917 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-05-07 Alexandre Petit-Bianco <apbianco@redhat.com>apbianco2001-05-072-10/+18
| | | | | | | | | | | | | * 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 ) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41905 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-05-03 Mo DeJong <mdejong@redhat.com>apbianco2001-05-042-0/+6
| | | | | | | | | | * 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 ) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41818 138bc75d-0d04-0410-961f-82ee72b054a4
* cp:ghazi2001-05-023-27/+29
| | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41762 138bc75d-0d04-0410-961f-82ee72b054a4
* * Make-lang.in ($(srcdir)/java/gcj.info): Added `-I..'.tromey2001-05-013-43/+49
| | | | | | | | | (java/gcj.dvi): Added $(srcdir) to TEXINPUTS. * gcj.texi: Updated copyright text. Include fdl.texi. (Top): Link to new node. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41743 138bc75d-0d04-0410-961f-82ee72b054a4
* * parse.h (REGISTER_IMPORT): Use tree_cons instead of chainon.bothner2001-05-012-2/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41741 138bc75d-0d04-0410-961f-82ee72b054a4
* * parse.y (java_pop_parser_context): The TREE_VALUE of a link in thebothner2001-05-012-2/+7
| | | | | | | import_list contains the name, not the TREE_PURPOSE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41739 138bc75d-0d04-0410-961f-82ee72b054a4
* * jcf-io.c (read_zip_member): Cast to long in comparison withghazi2001-04-296-8/+23
| | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41671 138bc75d-0d04-0410-961f-82ee72b054a4
* * parse.y (java_expand_classes): Don't change ctxp_for_generationbothner2001-04-272-10/+13
| | | | | | | while iterating, since that could cause gc to lose stuff. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41640 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix method search wrt scope of inner classes to match JLS2.bothner2001-04-264-24/+56
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41604 138bc75d-0d04-0410-961f-82ee72b054a4
* * jcf-write.c (generate_bytecode_insns case SWITCH_EXPR):bothner2001-04-264-15/+36
| | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41601 138bc75d-0d04-0410-961f-82ee72b054a4
* * verify.c (verify_jvm_instructions): For field instructions,bothner2001-04-262-10/+48
| | | | | | | | check that field index is valid. For invoke instructions, check that method index is valid. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41600 138bc75d-0d04-0410-961f-82ee72b054a4
* * config-lang.in (target_libs): Copy from $libgcj_saved.aoliva2001-04-252-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41552 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/java:bryce2001-04-253-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41543 138bc75d-0d04-0410-961f-82ee72b054a4
* * collect2.c (main): Use concat in lieu of xmalloc/sprintf.ghazi2001-04-232-8/+7
| | | | | | | | | | | | | | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41495 138bc75d-0d04-0410-961f-82ee72b054a4
* Fixes to compile multiple .class files at once.bothner2001-04-215-78/+85
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41472 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/alpha/vms.h: Change OBJECT_SUFFIX and EXECUTABLE_SUFFIXdj2001-04-191-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41428 138bc75d-0d04-0410-961f-82ee72b054a4
* * config-lang.in (lang_dirs): Add in zlib.aoliva2001-04-121-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41280 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (ifcvt.o): Depend on toplev.h.ghazi2001-04-113-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41256 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-04-06 Tom Tromey <tromey@redhat.com>tromey2001-04-072-3/+22
| | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41178 138bc75d-0d04-0410-961f-82ee72b054a4
* * parse.y (analyze_clinit_body): Return true if the second operandtromey2001-04-062-4/+8
| | | | | | | of a METHOD_EXPR is nonzero. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41164 138bc75d-0d04-0410-961f-82ee72b054a4
* * Make-lang.in ($(srcdir)/java/parse-scan.c): Run bison from buildtromey2001-04-062-6/+11
| | | | | | | | directory. ($(srcdir)/java/parse.c): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41162 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-04-05 Alexandre Petit-Bianco <apbianco@redhat.com>apbianco2001-04-052-1/+11
| | | | | | | | | | | * 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) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41133 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-04-04 Alexandre Petit-Bianco <apbianco@redhat.com>apbianco2001-04-053-14/+53
| | | | | | | | | | | | | | | | * 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) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41129 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-04-04 Alexandre Petit-Bianco <apbianco@redhat.com>apbianco2001-04-052-2/+9
| | | | | | | | | | | | * 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) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41126 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-03-27 Andrew Haley <aph@cambridge.redhat.com>aph2001-04-052-0/+5
| | | | | | | * lang-options.h: Add flag_check_references. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41124 138bc75d-0d04-0410-961f-82ee72b054a4
* * java-tree.h (CONSTANT_VALUE_P): New macro.bothner2001-04-044-29/+57
| | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41094 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-03-30 Alexandre Petit-Bianco <apbianco@redhat.com>apbianco2001-04-042-17/+35
| | | | | | | | | | | | | | | | | | | * 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) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41089 138bc75d-0d04-0410-961f-82ee72b054a4
* include:zack2001-04-044-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41069 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-03-28 Hans Boehm <boehm@acm.org>apbianco2001-04-032-7/+14
| | | | | | | | | | | * 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) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41059 138bc75d-0d04-0410-961f-82ee72b054a4
* * expr.c (pop_type_0): Save the result of the firstzack2001-04-032-3/+15
| | | | | | | | lang_printable_name call in a scratch buffer, so it won't be clobbered by the second call. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41032 138bc75d-0d04-0410-961f-82ee72b054a4
* * expr.c (pop_type_0): Call `concat' rather than building theghazi2001-03-283-25/+24
| | | | | | | | | | | string manually. (pop_type): Add format specifier in call to `error'. * parse.y (patch_method_invocation): Avoid casting away const-ness. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40940 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-03-21 Alexandre Petit-Bianco <apbianco@redhat.com>apbianco2001-03-282-2/+9
| | | | | | | | | | | * 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) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40938 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-03-28 Jeffrey Oldham <oldham@codesourcery.com>oldham2001-03-282-0/+5
| | | | | | | * jvgenmain.c (do_mangle_classname): End string constant with '\0'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40936 138bc75d-0d04-0410-961f-82ee72b054a4
* IA-64 ABI Exception Handling.rth2001-03-2810-89/+82
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40924 138bc75d-0d04-0410-961f-82ee72b054a4
* * java-tree.h (throw_node): Define as a single member ofrth2001-03-287-28/+32
| | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40922 138bc75d-0d04-0410-961f-82ee72b054a4
* * decl.c (end_java_method): Do not save and restorerth2001-03-284-24/+12
| | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40921 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove flag_new_exceptions.rth2001-03-282-2/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40908 138bc75d-0d04-0410-961f-82ee72b054a4
* Make -fsjlj-exceptions a configure option.rth2001-03-283-2/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40905 138bc75d-0d04-0410-961f-82ee72b054a4
* * parse.y (source_end_java_method): Likewise.rth2001-03-282-4/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40904 138bc75d-0d04-0410-961f-82ee72b054a4
* * bb-reorder.c, dwarf2out.c, except.c, except.h, flow.c,rth2001-03-282-4/+9
| | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40902 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (SYSTEM_H): Define.ghazi2001-03-272-27/+31
| | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40883 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-common.h (DECL_NUM_STMTS): New macro.mmitchel2001-03-272-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * c-decl.c (duplicate_decls): Copy DECL_NUM_STMTS, not DECL_FRAME_SIZE. (pushdecl): Likewise. * c-semantics.c (add_stmt): Update DECL_NUM_STMTS. * integrate.c (expand_inline_function): Don't check DECL_FRAME_SIZE. * print-tree.c (print_node): Don't print it. * toplev.c (rest_of_compilation): Don't try to inline when flag_no_inline is on. * tree.h (DECL_FRAME_SIZE): Remove. (tree_decl): Adjust accordingly. * Makefile.in (optimize.o): Depend on params.h. (duplicate_decls): Copy DECL_NUM_STMTS, not DECL_FRAME_SIZE. (init_decl_processing): Set flag_no_inline when doing inlining-on-trees. * optimize.c: Include params.h. (struct inline_data): Improve documentation of FNS. Add FIRST_INLINED_FN, INLINED_STMTS, and CLONING_P. (INSNS_PER_STMT): New macro. (remap_block): Use CLONING_P. (inlinable_function_p): Don't inline big functions. (expand_call_inline): Keep track of how much inlining we've done. (optimize_function): Set FIRST_INLINED_FN. (maybe_clone_body): Set CLONING_P. * semantics.c (simplify_aggr_init_exprs_r): Fix typing problems in tree nodes. (genrtl_finish_function): Clear DECL_DEFER_OUTPUT before calling rest_of_compilation. Clear DECL_RTL for local variables afterwards. (clear_decl_rtl): New function. * com.c (duplicate_decls): Don't copy DECL_FRAME_SIZE. * parse.h (DECL_END_SOURCE_LINE): Don't rely on DECL_FRAME_SIZE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40859 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-03-26 Alexandre Petit-Bianco <apbianco@redhat.com>apbianco2001-03-262-1/+17
| | | | | | | | | | * parse.y (find_as_inner_class): Follow current package indications not to mistakingly load an unrelated class. (http://gcc.gnu.org/ml/gcc-patches/2001-03/msg01712.html) git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40851 138bc75d-0d04-0410-961f-82ee72b054a4
* * constants.c (PUTN): Use memcpy, not bcopy.ghazi2001-03-264-7/+13
| | | | | | | | | * lex.c (java_read_char): Use memmove, not bcopy. * parse.y (java_parser_context_resume): Use memcpy, not bcopy. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40836 138bc75d-0d04-0410-961f-82ee72b054a4
* ebothner2001-03-245-46/+61
| | | | | | | | | | | | | | | | | | | | * verify.c (verify_jvm_instructions): Replace 3 pop_type by POP_TYPE macro for better error pin-pointing. * java-tree.h: Fix typo in comment. * jcf-write.c (generate_bytecode_insns): Changes to TRY_FINALLY_EXPR. Don't include jsr/goto in exception range. Check if start and end of exception range are the same (also TRY_EXPR). Don't emit jsr after try_block if CAN_COMPLETE_NORMALLY is false. However, do emit the following goto even if try_block is empty. Defer freeing exception_decl until after the finalizer, to make sure the local isn't reused in the finalizer. Fixes PR java/1208. * parse.y (java_complete_lhs): If the try-clause is empty, just return the finally-clause and vice versa. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40801 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud