summaryrefslogtreecommitdiffstats
path: root/gcc/java
Commit message (Collapse)AuthorAgeFilesLines
* * jcf-parse.c (get_constant): Decode from IEEE no matterrth2002-09-212-30/+27
| | | | | | | what the target format. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57389 138bc75d-0d04-0410-961f-82ee72b054a4
* * ChangeLog: Follow spelling conventions.kazu2002-09-2112-55/+70
| | | | | | | | | | | | | | | | | * class.c: Likewise. * decl.c: Likewise. * expr.c: Likewise. * gjavah.c: Likewise. * java-tree.h: Likewise. * jcf-dump.c: Likewise. * jcf-parse.c: Likewise. * jvspec.c: Likewise. * lang.c: Likewise. * mangle.c: Likewise. * parse.y: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57378 138bc75d-0d04-0410-961f-82ee72b054a4
* * lex.c (java_read_unicode_collapsing_terminators): Handle casetromey2002-09-172-1/+6
| | | | | | | where \r appears at EOF. Fixes PR java/7950. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57258 138bc75d-0d04-0410-961f-82ee72b054a4
* Index: gcc/ChangeLoggeoffk2002-09-162-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-09-12 Geoffrey Keating <geoffk@apple.com> * ggc-common.c (ggc_mark_rtx_children_1): Update for changed name mangling. The following changes are merged from pch-branch: * doc/gty.texi (GTY Options): Document %a. * gengtype.c (do_scalar_typedef): New function. (process_gc_options): Handle `length' option. (set_gc_used_type): A pointer to an array of structures doesn't qualify as a pointer to a structure. (output_escaped_param): Add `%a' escape. (write_gc_structure_fields): Allow 'desc' on array of unions. (main): Define `uint8', `jword' and `JCF_u2' as scalars; use do_scalar_typedef. * gengtype.c (enum rtx_code): Make global. (rtx_format): Make global. (rtx_next): New. (gen_rtx_next): New. (write_rtx_next): New. (adjust_field_rtx_def): Skip fields marked by chain_next. (open_base_files): Delete redundant prototype. (write_enum_defn): New. (output_mangled_typename): Correct abort call. (write_gc_marker_routine_for_structure): Handle chain_next and chain_prev options. (finish_root_table): Don't output redundant \n. (main): Call gen_rtx_next, write_rtx_next, write_enum_defn. * c-tree.h (union lang_tree_node): Add chain_next option. * gengtype.h (NUM_PARAM): New definition. (struct type): For TYPE_PARAM_STRUCT, allow multiple parameters. * gengtype.c (find_param_structure): New. (adjust_field_type): Handle param<n>_is option. (process_gc_options): Detect use_params option. Update callers. (set_gc_used_type): Add 'param' parameter, update callers. Handle 'use_params' option. (open_base_files): Add splay-tree.h to list of files included. (output_mangled_typename): New. (write_gc_structure_fields): Update 'param' parameter to support multiple parameters. Change name mangling. Allow parameterized fields to have an apparent scalar type. Handle param<n>_is options, use_param option. (write_gc_marker_routine_for_structure): Update for change to name mangling. Better guess the output file for parameterized types. (write_gc_types): Update for change to name mangling. (write_gc_root): Update for change to name mangling. Handle (ignore) param<n>_is options. * doc/gty.texi (GTY Options): Add description of param<n>_is options, use_params option. * ggc.h (ggc_mark_rtx): Update for changed name mangling. * gengtype-lex.l: Produce token for param<n>_is. * gengtype-yacc.y: Parse param<n>_is. * gengtype.c (adjust_field_tree_exp): Don't name a variable 'rindex'. * rtl.c: Update comment describing rtx_format. * rtl.h (union rtunion): Separate definition and typedef. (struct rtx_def): Use gengtype to mark. * Makefile.in (gengtype.o): Also depend on rtl.def. * ggc.h (ggc_mark_rtx_children): Delete prototype. (ggc_mark_rtx): Change to alias of gengtype-generated routine. * ggc-common.c (ggc_mark_rtx_children): Delete. (ggc_mark_rtx_children_1): Delete. (gt_ggc_m_rtx_def): Delete. * gengtype.c (adjust_field_rtx_def): New. (adjust_field_type): Call adjust_field_rtx_def. (write_gc_structure_fields): Add 'default' case to switch if none is specified; remove unused code. * tree.h (struct tree_exp): Update for change to meaning of special. * gengtype.c (adjust_field_tree_exp): New function. (adjust_field_type): Handle `tree_exp' special here. (write_gc_structure_fields): Don't handle `tree_exp' special here. Handle new `dot' option. * gengtype.h: Make `info' a pointer-to-const. * gengtype-yacc.y (yacc_ids): Use xasprintf. * gengtype.c (write_gc_structure_fields): Remove implementation of `always' option, add `default' option. * doc/gty.texi (GTY Options): Remove documentation of `always', add `default'. Index: gcc/cp/ChangeLog 2002-09-12 Geoffrey Keating <geoffk@apple.com> * cp-tree.h (union lang_tree_node): Add chain_next option. Index: gcc/f/ChangeLog 2002-09-12 Geoffrey Keating <geoffk@apple.com> * com.c (union lang_tree_node): Add chain_next option. Index: gcc/java/ChangeLog 2002-09-12 Geoffrey Keating <geoffk@apple.com> * java-tree.h (union lang_tree_node): Add chain_next option. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57206 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/rth2002-09-164-53/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * real.c, real.h: Rewrite from scratch. * Makefile.in (simplify-rtx.o): Depend on TREE_H. (paranoia): New target. * builtins.c (fold_builtin_inf): Use new real.h interface. * c-common.c (builtin_define_with_hex_fp_value): Likewise. * c-lex.c (interpret_float): Likewise. * emit-rtl.c (gen_lowpart_common): Likewise. * optabs.c (expand_float): Use real_2expN. * config/ia64/ia64.md (divsi3, udivsi3): Likewise. * defaults.h (INTEL_EXTENDED_IEEE_FORMAT): New. (FLOAT_WORDS_BIG_ENDIAN): New. * cse.c (find_comparison_args): Don't pass FLOAT_STORE_FLAG_VALUE directly to REAL_VALUE_NEGATIVE. * loop.c (canonicalize_condition): Likewise. * simplify-rtx.c: Include tree.h. (simplify_unary_operation): Don't handle FIX and UNSIGNED_FIX with floating-point result modes. * toplev.c (backend_init): Call init_real_once. * fold-const.c (force_fit_type): Don't call CHECK_FLOAT_VALUE. * tree.c (build_real): Likewise. * config/alpha/alpha.c, config/vax/vax.c (float_strings, float_values, inited_float_values, check_float_value): Remove. * config/alpha/alpha.h, config/m68hc11/m68hc11.h, config/m88k/m88k.h, config/vax/vax.h (CHECK_FLOAT_VALUE): Remove. * doc/tm.texi (CHECK_FLOAT_VALUE): Remove. gcc/f/ * target.c (ffetarget_real1): Don't pass FFETARGET_ATOF_ directly to ffetarget_make_real1. (ffetarget_real2): Similarly. * target.h (ffetarget_cvt_r1_to_rv_, ffetarget_cvt_rv_to_r2_, ffetarget_cvt_r2_to_rv_): Use new real.h interface and simplify. gcc/java/ * jcf-parse.c (get_constant): Runtime check for IEEE format; use new real.h interface. * jcf-write.c (find_constant_index): Use new real.h interface. * lex.c (IS_ZERO): Use REAL_VALUES_EQUAL. contrib/ * paranoia.cc: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57198 138bc75d-0d04-0410-961f-82ee72b054a4
* s/Fix/Follow/kazu2002-09-151-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57177 138bc75d-0d04-0410-961f-82ee72b054a4
* * lang.c: Fix spelling conventions.kazu2002-09-152-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57175 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-11 Per Bothner <per@bothner.com>tromey2002-09-112-16/+15
| | | | | | | | | | | * parse.y (fold_constant_for_init): If a VAR_DECL, convert numerical constant to the type of the field. (java_complete_tree): Remove now-redundant code. * parse.y (fold_constant_for_init): 'null' is not a constant expr. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57036 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-03 Jesse Rosenstock <jmr@ugcs.caltech.edu>tromey2002-09-112-2/+9
| | | | | | | | | For PR java/5794: * verify.c (verify_jvm_instructions) [OPCODE_jsr]: Only push the return label if a ret instruction for the jsr has been reached. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57035 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-09-09 Ranjit Mathew <rmathew@hotmail.com>tromey2002-09-092-8/+8
| | | | | | | | * parse.y (DIR_SEPARATOR): Don't define. (check_class_interface_creation): Use IS_DIR_SEPARATOR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56973 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-08-28 Andrew Haley <aph@redhat.com>aph2002-09-053-4/+14
| | | | | | | | | | * verify.c (verify_jvm_instructions): Allow exception handler inside code that is being protected, but generate a warning. * except.c (link_handler): Initialize `expanded' in new eh_range. (binding_depth, is_class_level, current_pc): Declare extern. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56842 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcj.texi: Add chapter about system properties.mark2002-09-022-9/+245
| | | | | | | Fixed some typos. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56740 138bc75d-0d04-0410-961f-82ee72b054a4
* * parse.y (try_builtin_assignconv): Allow narrowing primitivetromey2002-08-262-2/+10
| | | | | | | conversion if RHS_TYPE is byte, short, or char. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56589 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcj.texi (Invoking gij): Document -cp and -classpath.tromey2002-08-222-0/+12
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56521 138bc75d-0d04-0410-961f-82ee72b054a4
* * Make-lang.in (java/jcf-path.o): Use $(datadir), nottromey2002-08-222-1/+4
| | | | | | | $(prefix)/share. For PR libgcj/7633. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56499 138bc75d-0d04-0410-961f-82ee72b054a4
* For PR java/6005 and PR java/7611:tromey2002-08-222-1/+19
| | | | | | | | * lang.c (LANG_HOOKS_CAN_USE_BITFIELDS_P): New define. (java_can_use_bit_fields_p): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56497 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcj.texi (Class Initialization): Mention class initialization oftromey2002-08-162-10/+16
| | | | | | | arrays. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56386 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-07-30 Andrew Haley <aph@cambridge.redhat.com>aph2002-08-167-13/+198
| | | | | | | | | | | | | | | | | | | | | | | | | | * Make-lang.in (java-tree-inline.o): New. (JAVA_OBJS): Add java-tree-inline.o. * parse.y (source_end_java_method): Call java_optimize_inline. (java_expand_method_bodies): Save method's tree in DECL_SAVED_TREE. (add_stmt_to_compound): Keep track of the number of statments. * lang.c (java_init): Enable flag_inline_trees. (java_post_options): If flag_inline_functions is on, enable flag_inline_trees instread. (decl_constant_value): New. (java_tree_inlining_walk_subtrees): New. * java-tree.h (DECL_NUM_STMTS): New macro. (java_optimize_inline): Declare. * expr.c (java_expand_expr): Allow a BLOCK to return a value. Handle a LABEL_EXPR. * decl.c (build_result_decl): If we already have a DECL_RESULT don't make another. (dump_function): New. (java_optimize_inline): New. (dump_function): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56377 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-08-13 Jesse Rosenstock <jmr@fulcrummicro.com>tromey2002-08-132-0/+12
| | | | | | | | | For PR java/7483: * parse.y (build_assertion): Invert return from desiredAssertionStatus. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56264 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-08-08 Bryce McKinlay <bryce@waitaki.otago.ac.nz>bryce2002-08-092-0/+9
| | | | | | | | * jcf-write.c (get_access_flags): Return correct access flags for private and protected inner classes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56146 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in (enable_coverage): New enable switch.nathan2002-08-082-0/+5
| | | | | | | | | | | | | | | | | | | | * configure: Rebuilt. * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables. (INTERNAL_CFLAGS): Append COVERAGE_FLAGS. (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS. (mostlyclean): Remove coverage files. * doc/install.texi: Document enable_coverage. * cp/Make-lang.in (c++.mostlyclean): Remove coverage files. * ada/Make-lang.in (ada.mostlyclean): Remove coverage files. * f/Make-lang.in (f.mostlyclean): Remove coverage files. * java/Make-lang.in (java.mostlyclean): Remove coverage files. * objc/Make-lang.in (objc.mostlyclean): Remove coverage files. * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage files. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56126 138bc75d-0d04-0410-961f-82ee72b054a4
* Index: ChangeLoggeoffk2002-08-053-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-08-05 Geoffrey Keating <geoffk@redhat.com> * attribs.c: Don't include obstack.h. * builtins.c: Likewise. * cfganal.c: Likewise. * cfgbuild.c: Likewise. * cfgcleanup.c: Likewise. * emit-rtl.c: Likewise. * loop.c: Likewise. * stmt.c: Likewise. Index: cp/ChangeLog 2002-08-05 Geoffrey Keating <geoffk@redhat.com> * class.c: Don't include obstack.h. (popclass): * decl2.c: Delete bogus comment. * error.c: Don't include obstack.h. * except.c: Likewise. (dump_type): Correct comment. * method.c: Don't include obstack.h. * tree.c: Likewise. Index: java/ChangeLog 2002-08-05 Geoffrey Keating <geoffk@redhat.com> * mangle_name.c: Don't include obstack.h twice. * xref.c: Don't include obstack.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56055 138bc75d-0d04-0410-961f-82ee72b054a4
* Index: ChangeLoggeoffk2002-08-048-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-08-04 Geoffrey Keating <geoffk@redhat.com> * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H). * collect2.h (permanent_obstack): Delete declaration. * collect2.c (permanent_obstack): Delete definition. (main): Don't initialise permanent_obstack. Use xstrdup instead. * expr.c: Don't include obstack.h. (permanent_obstack): Delete declaration. * function.c: Don't include obstack.h. (permanent_obstack): Delete declaration. * integrate.c: Don't include obstack.h. (function_maybepermanent_obstack): Delete declaration. * print-tree.c (debug_tree): Use x*alloc not permalloc. * sdbout.c (gen_fake_label): Use x*alloc not permalloc. * tlink.c (pfgets): Use xstrdup not permanent_obstack. * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree. * tree.h: Rename init_obstacks to init_ttree. Remove declarations of permalloc, expralloc, perm_calloc. * tree.c (permanent_obstack): Delete definition. (init_ttree): Rename from init_obstacks. (permalloc): Delete. (perm_calloc): Delete. (dump_tree_statistics): Don't print information about permanent_obstack. * varasm.c (assemble_start_function): Use xstrdup instead of permalloc/strcpy. (assemble_variable): Likewise. * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of permalloc. (unicosmk_add_extern): Likewise. * config/c4x/c4x.c (c4x_external_ref): Likewise. (c4x_global_label): Likewise. * config/frv/frv.c (frv_encode_section_info): Likewise. * config/i386/winnt.c (i386_pe_record_external_function): Likewise. (i386_pe_record_exported_symbol): Likewise. * config/mips/mips.c (mips_output_external): Likewise. (mips_output_external_libcall): Likewise. * config/pa/pa.c: (permanent_obstack): Delete declaration. (output_call): Use ggc_strdup instead of allocating on permanent_obstack. * config/romp/romp.c: Include ggc.h. (get_symref): Don't declare permanent_obstack, use ggc_strdup intead of permanent_obstack. * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat instead of permalloc. * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc instead of permalloc * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat instead of permalloc. * config/vax/vax.c (vms_check_external): Use xmalloc instead of permalloc. Index: cp/ChangeLog 2002-08-04 Geoffrey Keating <geoffk@redhat.com> * cvt.c (ocp_convert): Delete obsolete code. * parse.y (permanent_obstack): Delete declaration. * pt.c (permanent_obstack): Delete declaration. * repo.c (permanent_obstack): Delete declaration. (open_repo_file): Use xmalloc instead of permanent_obstack. (init_repo): Use xstrdup instead of permanent_obstack. Index: java/ChangeLog 2002-08-04 Geoffrey Keating <geoffk@redhat.com> * class.c: (permanent_obstack): Delete declaration. * constants.c: (permanent_obstack): Delete declaration. * except.c: (permanent_obstack): Delete declaration. * expr.c: (permanent_obstack): Delete declaration. * jcf-parse.c: (permanent_obstack): Delete declaration. (saveable_obstack): Delete declaration. * parse.h: (permanent_obstack): Delete declaration. * typeck.c: (permanent_obstack): Delete declaration. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56035 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.jsm282002-08-042-1/+5
| | | | | | | | | | | java: * gcj.texi (version-gcc): Increase to 3.3. f: * root.texi (version-gcc): Increase to 3.3. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56026 138bc75d-0d04-0410-961f-82ee72b054a4
* * lex.c (java_lex): Check for `e' or `E' after 0.tromey2002-07-232-2/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55664 138bc75d-0d04-0410-961f-82ee72b054a4
* * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't userth2002-07-222-0/+28
| | | | | | | | | | GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded. * lang.c (java_unsafe_for_reeval): New. (LANG_HOOKS_UNSAFE_FOR_REEVAL): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55636 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-lex.c (GET_ENVIRONMENT): Remove.neil2002-07-212-8/+7
| | | | | | | | | | | | | | | | | | * collect2.c (GET_ENV_PATH_LIST): Remove. (prefix_from_env): Use GET_ENVIRONMENT. * cppinit.c (GET_ENV_PATH_LIST): Remove. (init_standard_includes): Use GET_ENVIRONMENT. * defaults.h (GET_ENVIRONMENT): Define here if not already. * gcc.c (GET_ENV_PATH_LIST): Remove. (make_relative_prefix, process_command): Update. * protoize.c (GET_ENV_PATH_LIST): Remove. (do_processing): Update. java: * jcf-path.c (GET_ENV_PATH_LIST): Remove. (jcf_path_init): Use GET_ENVIRONMENT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55630 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-07-10 Roger Sayle <roger@eyesopen.com>sayle2002-07-112-3/+7
| | | | | | | | | | | | | | | Zack Weinberg <zack@codesourcery.com> * builtins.def: Make the argument types of abort and exit independent of the front-end. * java/builtins.c (initialize_builtins): Remove defines that handled C/C++ specific junk hereby removed from builtins.def. * gcc.c-torture/execute/20000217-1.c: Fix usage of "abort". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55385 138bc75d-0d04-0410-961f-82ee72b054a4
* * c-common.c (c_common_post_options): Update prototype;neil2002-07-072-2/+9
| | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55306 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/7099sayle2002-07-062-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55276 138bc75d-0d04-0410-961f-82ee72b054a4
* For PR libgcj/7073:tromey2002-07-022-1/+8
| | | | | | | | * parse.y (patch_incomplete_class_ref): Handle VOID_TYPE specially. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55167 138bc75d-0d04-0410-961f-82ee72b054a4
* * tree.h: Modify builtin_function interface to take an extrasayle2002-07-012-26/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55161 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-06-29 T.J. Mather <tjmather@maxmind.com>bryce2002-07-012-1/+5
| | | | | | | * gcj.texi: Fixed gcj invocation example so that it compiles. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55126 138bc75d-0d04-0410-961f-82ee72b054a4
* * parse.y (check_modifiers, declare_local_variables): Avoidghazi2002-06-272-4/+8
| | | | | | | incorrect hardcoded constant 10. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55017 138bc75d-0d04-0410-961f-82ee72b054a4
* * lex.c (java_init_lex): Avoid incorrect hardcoded constant 11.ghazi2002-06-273-3/+8
| | | | | | | * parse.y (mark_parser_ctxt): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55016 138bc75d-0d04-0410-961f-82ee72b054a4
* * lex.c (java_read_char): Avoid "comparison is always true"ghazi2002-06-262-2/+7
| | | | | | | warning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55014 138bc75d-0d04-0410-961f-82ee72b054a4
* * expr.c (JSR): Avoid undefined operation on PC.schwab2002-06-252-1/+9
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54987 138bc75d-0d04-0410-961f-82ee72b054a4
* cp:ghazi2002-06-212-1/+5
| | | | | | | | | * mangle.c (integer_type_codes): Const-ify. java: * decl.c (clear_binding_level): Const-ify. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54890 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-06-13 Akim Demaille <akim@epita.fr>tromey2002-06-132-6/+18
| | | | | | | | | * parse.y (class_declaration, interface_declaration): Make sure all their rules have an action, in order to avoid meaningless `$$ = $1' and their type clashes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54592 138bc75d-0d04-0410-961f-82ee72b054a4
* * jcf-write.c (generate_classfile): Use FIELD_SYNTHETIC.tromey2002-06-118-81/+205
| | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54516 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-06-10 Akim Demaille <akim@epita.fr>tromey2002-06-112-760/+765
| | | | | | | | | * parse.y (interface_type_list, class_member_declaration) (unary_expression_not_plus_minus): Remove duplicate %type. Whitespace changes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54510 138bc75d-0d04-0410-961f-82ee72b054a4
* * Make-lang.in (java/lang.o): Use LANGHOOKS_DEF_H.tromey2002-06-112-1/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54508 138bc75d-0d04-0410-961f-82ee72b054a4
* * parse.y (method_header): Give error message in all cases.tromey2002-06-112-3/+17
| | | | | | | Fixes PR java/6865. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54504 138bc75d-0d04-0410-961f-82ee72b054a4
* Don't use RTL inlining. Fix for PR java/6820.bryce2002-06-102-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54430 138bc75d-0d04-0410-961f-82ee72b054a4
* * gjavah.c (throwable_p): Accept argument as either a classname orbryce2002-06-102-10/+27
| | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54427 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-06-08 H.J. Lu (hjl@gnu.org)hjl2002-06-082-1/+5
| | | | | | | * jcf-path.c (jcf_path_init): Allocate 1 more byte for string. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54384 138bc75d-0d04-0410-961f-82ee72b054a4
* * jcf-write.c (perform_relocations): Optmize a goto to a goto.tromey2002-06-042-0/+35
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54264 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-06-04 Michael Koch <konqueror@gmx.de>tromey2002-06-042-1/+5
| | | | | | | * gcj.texi (Input Options): Fixed typo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54263 138bc75d-0d04-0410-961f-82ee72b054a4
* * java-tree.h, class.c, expr.c, jcf-parse.c, parse.y,zack2002-06-0410-181/+51
| | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54261 138bc75d-0d04-0410-961f-82ee72b054a4
* Merge from pch-branch up to tag pch-commit-20020603.geoffk2002-06-0415-480/+468
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54232 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud