aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
AgeCommit message (Collapse)AuthorFilesLines
2002-07-07c-common.c (c_common_post_options): Update prototype; don't init backends if ↵Neil Booth2-2/+9
preprocessing only. * c-common.c (c_common_post_options): Update prototype; don't init backends if preprocessing only. * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update. * langhooks.h (struct lang_hooks): Update post_options to return a boolean. * toplev.c (parse_options_and_default_flags, do_compile, lang_independent_init): Update prototypes. Allow the front end to specify that there is no need to initialize the back end. (general_init): Move call to hex_init here... (toplev_main): ...from here. Pass flag for back end init suppression. java: * lang.c (java_post_options): Update prototype. From-SVN: r55306
2002-07-06re PR c++/7099 (G++ doesn't set the noreturn attribute on std::exit and ↵Roger Sayle2-1/+9
std::abort) PR c++/7099 * builtin-attrs.def: Define new attribute lists for use in builtins.def. * builtins.def [DEF_BUILTIN]: Modify to take an additional ATTRS argument, an enumerated value defined in builtin-attrs.def that represents the attribute list for the builtins. Modify all builtin functions to pass an appropriate attribute list. Specify "abort", "exit", "_exit" and "_Exit" builtins here with their required noreturn attributes. * tree.h (enum_builtin_function): Ignore the additional parameter to DEF_BUILTIN. * builtins.c (built_in_names): Likewise. * c-common.c: (builtin_function_2): Replace the "int noreturn_p" argument with a tree representing the functions attribute list. Pass this "attrs" argument to builtin_function. No longer handle the noreturn_p processing manually. (built_in_attributes): Move the definitions from builtin-attrs.def before c_common_nodes_and_builtins. (c_common_nodes_and_builtins): Handle the new ATTRS parameter in DEF_BUILTIN, passing it to both builtin_function and the changed builtin_function_2. * doc/extend.texi: Document __builtin_abort, __builtin_exit, __builtin__exit and __builtin__Exit. * java/builtins.c (initialize_builtins): Ignore the additional parameter to DEF_BUILTIN. Handle more C/C++ specific junk in the builtins.def file. From-SVN: r55276
2002-07-02For PR libgcj/7073:Tom Tromey2-1/+8
* parse.y (patch_incomplete_class_ref): Handle VOID_TYPE specially. From-SVN: r55167
2002-07-01tree.h: Modify builtin_function interface to take an extra argument ATTRS...Roger Sayle2-26/+36
* tree.h: Modify builtin_function interface to take an extra argument ATTRS, which is a tree representing an attribute list. * c-decl.c (builtin_function): Accept additional parameter. * objc/objc-act.c (builtin_function): Likewise. * f/com.c (builtin_function): Likewise. * java/decl.c (builtin_function): Likewise. * ada/utils.c (builtin_function): Likewise. * cp/decl.c (builtin_function): Likewise. (builtin_function_1): Likewise. * c-common.c (c_common_nodes_and_builtins): Pass an additional NULL_TREE argument to builtin_function. (builtin_function_2): Likewise. * cp/call.c (build_java_interface_fn_ref): Likewise. * objc/objc-act.c (synth_module_prologue): Likewise. * java/decl.c (java_init_decl_processing): Likewise. * f/com.c (ffe_com_init_0): Likewise. * config/alpha/alpha.c (alpha_init_builtins): Pass an additional NULL_TREE argument builtin_function. * config/arm/arm.c (def_builtin): Likewise. * config/c4x/c4x.c (c4x_init_builtins): Likewise. * config/i386/i386.c (def_builtin): Likewise. * config/ia64/ia64.c (def_builtin): Likewise. * config/rs6000/rs6000.c (def_builtin): Likewise. From-SVN: r55161
2002-07-01gcj.texi: Fixed gcj invocation example so that it compiles.T.J. Mather2-1/+5
2002-06-29 T.J. Mather <tjmather@maxmind.com> * gcj.texi: Fixed gcj invocation example so that it compiles. From-SVN: r55126
2002-06-27parse.y (check_modifiers, [...]): Avoid incorrect hardcoded constant 10.Kaveh R. Ghazi2-4/+8
* parse.y (check_modifiers, declare_local_variables): Avoid incorrect hardcoded constant 10. From-SVN: r55017
2002-06-27lex.c (java_init_lex): Avoid incorrect hardcoded constant 11.Kaveh R. Ghazi3-3/+8
* lex.c (java_init_lex): Avoid incorrect hardcoded constant 11. * parse.y (mark_parser_ctxt): Likewise. From-SVN: r55016
2002-06-26lex.c (java_read_char): Avoid "comparison is always true" warning.Kaveh R. Ghazi2-2/+7
* lex.c (java_read_char): Avoid "comparison is always true" warning. From-SVN: r55014
2002-06-25* expr.c (JSR): Avoid undefined operation on PC.Andreas Schwab2-1/+9
From-SVN: r54987
2002-06-21mangle.c (integer_type_codes): Const-ify.Kaveh R. Ghazi2-1/+5
cp: * mangle.c (integer_type_codes): Const-ify. java: * decl.c (clear_binding_level): Const-ify. From-SVN: r54890
2002-06-13parse.y (class_declaration, [...]): Make sure all their rules have an action...Akim Demaille2-6/+18
2002-06-13 Akim Demaille <akim@epita.fr> * parse.y (class_declaration, interface_declaration): Make sure all their rules have an action, in order to avoid meaningless `$$ = $1' and their type clashes. From-SVN: r54592
2002-06-11jcf-write.c (generate_classfile): Use FIELD_SYNTHETIC.Tom Tromey8-81/+205
* jcf-write.c (generate_classfile): Use FIELD_SYNTHETIC. * parse-scan.y (statement_without_trailing_substatement): Added assert_statement. (assert_statement): New rule. * java-tree.h (struct lang_type) [assertions]: New field. (TYPE_USES_ASSERTIONS): New macro. (CLASS_USES_ASSERTIONS): Likewise. (FIELD_SYNTHETIC): New define. * lex.c (java_lval;): Added ASSERT_TK. * parse.y (ASSERT_TK): Added. (statement_without_trailing_substatement): Added assert_statement. (assert_statement): New rule. (build_assertion): New function. (maybe_generate_pre_expand_clinit): Create and initialize $assertionsDisabled. (lookup_package_type): Removed decl. * keyword.h: Rebuilt. * keyword.gperf (assert): New token. From-SVN: r54516
2002-06-112002-06-10 Akim Demaille <akim@epita.fr>Akim Demaille2-760/+765
* parse.y (interface_type_list, class_member_declaration) (unary_expression_not_plus_minus): Remove duplicate %type. Whitespace changes. From-SVN: r54510
2002-06-11* Make-lang.in (java/lang.o): Use LANGHOOKS_DEF_H.Tom Tromey2-1/+3
From-SVN: r54508
2002-06-11re PR java/6865 (gcj: segmentation fault on incorrect input)Tom Tromey2-3/+17
* parse.y (method_header): Give error message in all cases. Fixes PR java/6865. From-SVN: r54504
2002-06-10Don't use RTL inlining. Fix for PR java/6820.Bryce McKinlay2-0/+38
* lang.c (LANG_HOOKS_POST_OPTIONS): Define. (flag_really_inline): New. (java_decode_option): Set flag_really_inline if -finline-functions is seen. (java_post_options): New function. Turn off inlining unless flag_really_inline is set. From-SVN: r54430
2002-06-10gjavah.c (throwable_p): Accept argument as either a classname or signature ↵Bryce McKinlay2-10/+27
fragment. * gjavah.c (throwable_p): Accept argument as either a classname or signature fragment. Create null-terminated classname string for super when calling itself recursively. (decode_signature_piece): Skip first character from class name signature when calling throwable_p. From-SVN: r54427
2002-06-08jcf-path.c (jcf_path_init): Allocate 1 more byte for string.H.J. Lu2-1/+5
2002-06-08 H.J. Lu (hjl@gnu.org) * jcf-path.c (jcf_path_init): Allocate 1 more byte for string. From-SVN: r54384
2002-06-04* jcf-write.c (perform_relocations): Optmize a goto to a goto.Tom Tromey2-0/+35
From-SVN: r54264
2002-06-04gcj.texi (Input Options): Fixed typo.Michael Koch2-1/+5
2002-06-04 Michael Koch <konqueror@gmx.de> * gcj.texi (Input Options): Fixed typo. From-SVN: r54263
2002-06-04java-tree.h, [...]: Remove all #if JAVA_USE_HANDLES blocks...Zack Weinberg10-181/+51
* java-tree.h, class.c, expr.c, jcf-parse.c, parse.y, typeck.c, verify.c: Remove all #if JAVA_USE_HANDLES blocks, all mention of CLASS_TO_HANDLE_TYPE or HANDLE_TO_CLASS_TYPE, and all now-pointless local variables. Rename other local variables to reflect their not being handles. * java-tree.h, jcf-dump.c, jcf-io.c: Remove all #if JCF_USE_STDIO blocks. * parse.y: Add missing semicolon at end of rule. From-SVN: r54261
2002-06-04Merge from pch-branch up to tag pch-commit-20020603.Geoffrey Keating15-480/+468
From-SVN: r54232
2002-06-02re PR java/5913 (Core dump for String constant instanceof)Tom Tromey2-0/+14
Fix for PR java/5913: * parse.y (patch_binop): Call patch_string on op1. From-SVN: r54174
2002-06-02Fix for PR java/1343, PR java/6336:Tom Tromey3-71/+166
* parse.y (make_nested_class_name): Remove extraneous `else'; fix formatting. Changed return type. (anonymous_class_counter): Moved to top of file. (maybe_make_nested_class_name): Append number to class name for function-local classes. From-SVN: r54173
2002-05-28tree.h: Forward-declare struct realvaluetype.Zack Weinberg6-3/+12
* tree.h: Forward-declare struct realvaluetype. (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not contain it. (TREE_REAL_CST_PTR): New accessor. (TREE_REAL_CST): Update. * real.h: Include machmode.h. (realvaluetype): Make it struct realvaluetype, not a typedef. (build_real): Prototype here. * tree.c: Include real.h. (build_real): Allocate the REAL_VALUE_TYPE as a separate object in GC memory, set TREE_REAL_CST_PTR to point to it. (build_real_from_int_cst): Use build_real. * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a REAL_CST. * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c, fold-const.c, print-tree.c, real.c, cp/mangle.c, cp/tree.c, f/bld.c, f/com.c, f/expr.c, f/target.c, java/decl.c, java/jcf-parse.c, java/parse.y, java/typeck.c: Include real.h. * Makefile.in, cp/Make-lang.in, f/Make-lang.in, java/Make-lang.in: Update dependency lists. From-SVN: r53959
2002-05-19configure.in (AC_CHECK_FUNCS): Add checks for scandir and alphasort.Mark Mitchell6-17/+229
* configure.in (AC_CHECK_FUNCS): Add checks for scandir and alphasort. * config.in: Regenerated. * configure: Regenerated. From-SVN: r53633
2002-05-16Makefile.in: Allow for PWDCMD to override hardcoded pwd.Rainer Orth2-1/+5
* Makefile.in: Allow for PWDCMD to override hardcoded pwd. * config-ml.in: Likewise. * configure: Likewise. * configure.in: Likewise. boehm-gc: * acinclude.m4: Allow for PWDCMD to override hardcoded pwd. * aclocal.m4: Regenerate. * configure: Regenerate. config: * acinclude.m4: Allow for PWDCMD to override hardcoded pwd. contrib: * test_installed: Allow for PWDCMD to override hardcoded pwd. * test_summary: Likewise. gcc: * Makefile.in: Allow for PWDCMD to override hardcoded pwd. * configure.in: Likewise. * fixinc/check.tpl: Likewise. * fixinc/fixinc.dgux: Likewise. * fixinc/fixinc.svr4: Likewise. * fixinc/fixinc.winnt: Likewise. * fixinc/fixincl.sh: Likewise. * fixproto: Likewise. * configure: Regenerate. gcc/ada: * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd. * Makefile.in: Likewise. gcc/f: * Make-lang.in: Allow for PWDCMD to override hardcoded pwd. gcc/java: * Make-lang.in: Allow for PWDCMD to override hardcoded pwd. gcc/po: * exgettext: Allow for PWDCMD to override hardcoded pwd. gcc/treelang: * Make-lang.in: Allow for PWDCMD to override hardcoded pwd. libf2c: * Makefile.in: Allow for PWDCMD to override hardcoded pwd. * aclocal.m4: Likewise. * configure: Regenerate. libjava: * acinclude.m4: Allow for PWDCMD to override hardcoded pwd. * configure.in: Likewise. * aclocal.m4: Regenerate. * configure: Regenerate. libobjc: * aclocal.m4: Allow for PWDCMD to override hardcoded pwd. * configure: Regenerate. libstdc++-v3: * Makefile.am: Allow for PWDCMD to override hardcoded pwd. * acinclude.m4: Likewise. * docs/html/Makefile: Likewise. * aclocal.m4: Regenerate. * configure: Regenerate. * Makefile.in: Regenerate. zlib: * configure.in: Allow for PWDCMD to override hardcoded pwd. * configure: Regenerate. * ChangeLog: Move entries to ChangeLog.gcj. From-SVN: r53523
2002-05-14jcf-write.c (write_classfile): Unlink the temporary file if it cannot be ↵Mark Mitchell2-5/+12
renamed. * jcf-write.c (write_classfile): Unlink the temporary file if it cannot be renamed. Use concat to build up the name of the temporary file From-SVN: r53439
2002-05-08jcf-write.c (write_classfile): Write the file to a temporary file and then ↵Mark Mitchell2-3/+20
rename it. * java/jcf-write.c (write_classfile): Write the file to a temporary file and then rename it. * libjava/Makefile.am (all_java_source_files): New variable. (all_java_class_files): Likewise. .java.class: New rule. (CLEANFILES): Remove tmp-list. * libjava/Makefile.in: Regenerated. From-SVN: r53298
2002-05-08* gjavah.c (throwable_p): Use xstrdup, not strdup.Tom Tromey2-2/+4
From-SVN: r53279
2002-05-08re PR java/1200 (gcjh -jni doesn't respect class hierarchy)Tom Tromey2-11/+119
Fix for PR java/1200: * gjavah.c (throwable_p): New function. (decode_signature_piece): Use it. A `WeakReference' isn't the same as a `jweak'. Include hashtab.h. (gcjh_streq): New function. From-SVN: r53275
2002-05-07* parse.y (finish_for_loop): Fix if statement.Andreas Jaeger2-4/+8
From-SVN: r53263
2002-05-07re PR java/5941 (incorrect "Unreachable statement" error)Tom Tromey3-2/+42
Fix for PR java/5941: * parse.y (finish_for_loop): Set SUPPRESS_UNREACHABLE_ERROR for loop update expression. (java_complete_lhs): Use SUPPRESS_UNREACHABLE_ERROR. * java-tree.h (SUPPRESS_UNREACHABLE_ERROR): New macro. From-SVN: r53247
2002-05-04For PR java/6519:Mark Wielaard2-2/+9
* parse.y (build_string_concatenation): Return just op1 only when op2 is null and op1 is a STRING_CST, otherwise always construct a StringBuffer. From-SVN: r53158
2002-04-27For PR java/6382:Tom Tromey2-3/+85
* parse.y (string_convert_int_cst): New function. (merge_string_cste): Use it. From-SVN: r52835
2002-04-25c-common.h (c_common_parse_file): Update.Neil Booth4-14/+12
* c-common.h (c_common_parse_file): Update. * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove. * c-lex.c (YYDEBUG): Get from c-lex.h. (c_common_parse_file): Update. * c-lex.h (YYDEBUG, yydebug): New. * c-parse.in (YYDEBUG): Get from c-lex.h. (c_set_yydebug): Remove. * c-tree.h (c_set_yydebug): Remove. * langhooks-def.h (lhd_do_nothing_i): New. (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove. (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update. * langhooks.c (lhd_do_nothing_i): New. (lhd_set_yydebug): Remove. * langhooks.h (struct lang_hooks): Update. * toplev.c (set_yydebug): New. (compile_file): Update call to parse_file hook. (decode_d_option): Update. ada: * misc.c (gnat_parse_file): Update. cp: * cp-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove. * cp-tree.h (cxx_set_yydebug): Die. * lex.c (YYDEBUG): Get from c-lex.h. (cxx_set_yydebug): Remove. * parse.y: Include c-lex.h. (YYDEBUG): Get from c-lex.h. f: * com.h (ffe_parse_file): Update. * lex.c (ffe_parse_file): Update. java: * java-tree.h (java_parse_file): Update. (java_set_yydebug): Remove. * jcf-parse.c (yydebug): Remove. (java_set_yydebug): Die. (java_parse_file): Update. * lang.c (LANG_HOOKS_SET_YYDEBUG): Remove. objc: * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove. From-SVN: r52753
2002-04-25For PR java/6425:Tom Tromey2-1/+9
* parse.y (qualify_ambiguous_name) [case CALL_EXPR]: Always choose EXPR_WFL_QUALIFICATION of qual_wfl. From-SVN: r52751
2002-04-24expr.c (PRE_JSR): Call NOTE_LABEL for return address.Per Bothner3-8/+9
* expr.c (PRE_JSR): Call NOTE_LABEL for return address. * java-tree.h (BCODE_RETURN_TARGET): Removed - never set. (BCODE_TARGET): Remove BCODE_RETURN_TARGET. From-SVN: r52735
2002-04-23Fix typos for 2002-03-08 entry.Per Bothner1-2/+2
From-SVN: r52703
2002-04-23For PR java/6314:Tom Tromey3-22/+24
* jvspec.c (lang_specific_driver): Use --resource, not -R. Also recognize `-fcompile-resource='. * gcj.texi (Invoking gcj): Use --resource, not -R. Expanded text a bit. From-SVN: r52690
2002-04-22re PR java/2791 (Bogus "class `foo' already defined ..." error from jc1)Alexandre Petit-Bianco2-3/+5
* jcf-parse.c: (yyparse): Don't prepend "./" to relative paths. Fixes PR java/2791. From-SVN: r52636
2002-04-22jcf-write.c (push_long_const): lo, hi: New variables.Andrew Haley3-9/+24
2002-04-19 Andrew Haley <aph@redhat.com> * jcf-write.c (push_long_const): lo, hi: New variables. Use rshift_double to extract the high part of a 64-bit long. Use WORD_TO_INT to extract the low part. * jcf-parse.c (get_constant): CONSTANT_Integer: Use an unsigned HOST_WIDE_INT for num. Use JPOOL_UINT to get it. CONSTANT_Double: Use JPOOL_UINT to get both halve of a double. From-SVN: r52618
2002-04-18c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.Neil Booth2-12/+4
* c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine. * c-tree.h (c_incomplete_type_error): New. * c-typeck.c (require_complete_type, build_component_ref): Update. (incomplete_type_error): Rename. * langhooks-def.h (lhd_incomplete_type_error): New. (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New. (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update. * langhooks.c (lhd_incomplete_type_error): New. * langhooks.h (struct lang_hooks_for_types): New hook. * tree.c (size_in_bytes): Use new hook. * tree.h (incomplete_type_error): Remove. ada: * gigi.h (incomplete_type_error): Remove. * utils.c (incomplete_type_error): Remove. cp: * call.c (build_new_method_call): Update. * cp-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine. * cp-tree.h (cxx_incomplete_type_error): New. * decl.c (grokdeclarator, grokparms): Update. * decl2.c (check_classfn): Update. * pt.c (tsubst): Update. * typeck.c (complete_type_or_else, expr_sizeof, decay_conversion): Update. * typeck2.c (incomplete_type_error): Rename. (add_exception_specifier): Update. f: * com.c (incomplete_type_error): Remove. java: * typeck.c (incomplete_type_error): Remove. objc: * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine. From-SVN: r52480
2002-04-18class.c (make_class_data): Set DECL_ALIGN on static class data, for hash ↵Bryce McKinlay4-4/+16
synchronization. * class.c (make_class_data): Set DECL_ALIGN on static class data, for hash synchronization. * expr.c (java_expand_expr): Set DECL_ALIGN on static array objects. * decl.c (java_init_decl_processing): Don't set TYPE_ALIGN for class_type_node. From-SVN: r52448
2002-04-17jcf-write.c (generate_bytecode_insns): Only write const_0 if not negative zero.Mark Wielaard2-1/+7
* jcf-write.c (generate_bytecode_insns): Only write const_0 if not negative zero. From-SVN: r52427
2002-04-17re PR java/6294 (private inner interface is flagged illegal)Bryce McKinlay2-2/+8
Fix for PR java/6294: * parse.h (INNER_INTERFACE_MODIFIERS): Allow ACC_PRIVATE for inner interfaces. From-SVN: r52411
2002-04-15re PR java/6085 (gcj SEGVs on complicated inner class structures)Bryce McKinlay2-18/+13
Fix for PR java/6085: * parse.y (patch_method_invocation): Always use build_access_to_thisn to get enclosing "this" argument for inner-class constructor invocation. Pass correct arguments to build_access_to_thisn. From-SVN: r52318
2002-04-12Add --extdirs support.Anthony Green9-20/+183
From-SVN: r52227
2002-04-08For PR libgcj/5303:Tom Tromey4-3/+162
* .cvsignore: Added rmic.1 and rmiregistry.1. * gcj.texi (Top): Link to new nodes. (Invoking rmic): New node. (Invoking rmiregistry): Likewise. * Make-lang.in (java.generated-manpages): Added rmic.1 and rmiregistry.1. (java.maintainer-clean): Likewise. ($(srcdir)/java/rmic.1): New target. ($(srcdir)/java/rmiregistry.1): Likewise. (java.install-man): Handle rmic.1 and rmiregistry.1. From-SVN: r52035
2002-04-08gcj.texi (Invocation): Update JvAttachCurrentThread documentation.Bryce McKinlay2-9/+49
* gcj.texi (Invocation): Update JvAttachCurrentThread documentation. Add note about handling uncaught exceptions. Add an exception handler to example. From-SVN: r52022