aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
AgeCommit message (Collapse)AuthorFilesLines
2002-03-08re PR java/5812 (GCJ 3.0.2 segfaults on class file from Sun JDK 1.3 compiler)Per Bothner2-11/+17
Fix for PR java/5812. * expr.c (build_java_jsr): Take pc arguments, and do lookup_label gere instead of in JSR macro. Likewise with load_type_state call. Do the latter on if the return_pc has been verified (the jsr returns). (JSR): No just call build_java_jsr. From-SVN: r50455
2002-03-07Make-lang.in (JAVA_TARGET_INSTALL_NAME): Define.Jeff Sturm2-0/+9
* java/Make-lang.in (JAVA_TARGET_INSTALL_NAME): Define. (java.install-common): Link native driver to JAVA_TARGET_INSTALL_NAME. From-SVN: r50411
2002-03-05builtins.c (cos_builtin): method_return_type ATTRIBUTE_UNUSEDDavid Billinghurst2-3/+9
2002-03-05 David Billinghurst <David.Billinghurst@riotinto.com> * builtins.c(cos_builtin): method_return_type ATTRIBUTE_UNUSED * builtins.c(sin_builtin): Likewise * builtins.c(sqrt_builtin): Likewise From-SVN: r50304
2002-03-03emit-rtl.c, [...]: Remove all #ifndef REAL_ARITHMETIC blocks...Zack Weinberg4-23/+7
* emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c, print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c, tree.c, config/m68k/m68k.c, f/com.c, f/target.h, java/expr.c, java/jcf-parse.c, java/lex.c: Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef REAL_ARITHMETIC blocks unconditional. Delete some further #ifdef blocks predicated on REAL_ARITHMETIC. * flags.h, toplev.c: Delete remaining references to flag_pretend_float. * doc/invoke.texi: Remove documentation of -fpretend-float. * doc/tm.texi: Describe the various REAL_* macros as provided by real.h, not by the target configuration files. * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h, config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h, config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h, config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h, config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h, config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h, config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h, config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h, config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Do not define, undefine, or mention in comments any of REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF, REAL_VALUE_ISNAN, REAL_VALUE_ISINF, REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE, REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL, REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS, REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX, REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT, REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE, REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT. From-SVN: r50263
2002-03-03attribs.c (init_attributes, [...]): Use ARRAY_SIZE in lieu of explicit ↵Kaveh R. Ghazi5-5/+12
sizeof/sizeof. * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in lieu of explicit sizeof/sizeof. * i386.c (override_options, ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise. * mips.c (mips_add_gc_roots): Likewise. * mmix.c (mmix_output_condition): Likewise. * rs6000.c (rs6000_override_options, altivec_expand_builtin, altivec_init_builtins): Likewise. * sparc.c (mark_ultrasparc_pipeline_state): Likewise. * cppexp.c (Nsuff, parse_number): Likewise. * cppinit.c (builtin_array_end): Likewise. * gcc.c (n_default_compilers, process_command): Likewise. * genpreds.c (output_predicate_decls): Likewise. * ggc-page.c (NUM_EXTRA_ORDERS): Likewise. * lcm.c (N_ENTITIES): Likewise. * stor-layout.c (set_sizetype): Likewise. ada: * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in lieu of explicit sizeof/sizeof. cp: * decl.c (cxx_init_decl_processing): Use ARRAY_SIZE in lieu of explicit sizeof/sizeof. * decl2.c (cxx_decode_option): Likewise. * lex.c (init_reswords, REDUCE_LENGTH, TOKEN_LENGTH): Likewise. java: * class.c (init_class_processing): Use ARRAY_SIZE in lieu of explicit sizeof/sizeof. * decl.c (java_init_decl_processing): Likewise. * jcf-parse.c (init_jcf_parse): Likewise. * parse.y (init_src_parse): Likewise. From-SVN: r50255
2002-03-03Make --CLASSPATH by a synonym for --classpath and -classpath.Per Bothner9-76/+101
Implement --bootclasspath. From-SVN: r50247
2002-03-02Fix for PR java/5758, java/5632:Alexandre Petit-Bianco3-9/+41
2002-02-28 Alexandre Petit-Bianco <apbianco@redhat.com> Fix for PR java/5758, java/5632: * jcf-parse.c (load_class): Renamed local variable, consider `.' an inner-class separator too. * parse.y (do_resolve_class): New local `decl_result.' Progressively build a name for what can have been loaded. From-SVN: r50228
2002-02-28* expr.c (build_java_arraystore_check): Fix formatting.Bryce McKinlay2-3/+7
From-SVN: r50167
2002-02-28expr.c (java_array_data_offset): Removed function.Bryce McKinlay9-130/+163
* expr.c (java_array_data_offset): Removed function. (JAVA_ARRAY_LENGTH_OFFSET): Removed macro. (build_java_array_length_access): Obtain "length" value using a COMPONENT_REF, instead of INDIRECT_REF and arithmetic. (build_java_arrayaccess): Correct comment. Access "data" using a COMPONENT_REF, and return an ARRAY_REF instead of an INDIRECT_REF. (build_java_arraystore_check): New function. (expand_java_arraystore): Use build_java_arraystore_check. * parse.y (patch_assignment): Simplify code to insert a store check when lvalue is an ARRAY_REF. Use build_java_arraystore_check. * check-init.c (check_init): Update to reflect that an array length access is now a COMPONENT_REF. * gcj.texi (Code Generation): Improve documentation of -fno-bounds-check. Add documentation for -fno-store-check. * java-tree.h (flag_store_check): Declare. (build_java_arraystore_check): Declare. * lang.c (flag_store_check): Initialize to 1. (lang_f_options): Add store-check option. * jvspec.c: Don't pass store-check option to jvgenmain. * lang-options.h: Add help string for -fno-store-check. From-SVN: r50129
2002-02-28Makefile.in (integrate.o): Update.Neil Booth4-5/+21
* Makefile.in (integrate.o): Update. * c-decl.c (copy_lang_decl): Rename. * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine. * integrate.c: Include langhooks.h. (copy_decl_for_inlining): Update to use langhook. * langhooks-def.h (lhd_do_nothing_t, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New. (LANG_HOOKS_INITIALIZER): Update. * langhooks.c (lhd_do_nothing_t): New. * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl. * tree.h (copy_lang_decl): Remove. ada: * misc.c (copy_lang_decl): Remove. cp: * class.c (build_clone): Update. * cp-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine. * cp-tree.h (cxx_dup_lang_specific_decl): New. * lex.c (copy_lang_decl): Rename cxx_dup_lang_specific_decl. (copy_decl): Update. * method.c (make_thunk): Update. f: * com.c (copy_lang_decl): Delete. java: * decl.c (copy_lang_decl): Rename java_dup_lang_specific_decl. * java-tree.h (java_dup_lang_specific_decl): New. * lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine. objc: * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine. From-SVN: r50122
2002-02-27c-common.c, [...]: Delete code implementing -traditional mode.Zack Weinberg3-5/+6
* c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in, c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h, cppmacro.c, objc/lang-specs.h, objc/objc-act.c, builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c, gcc.c, toplev.c: Delete code implementing -traditional mode. * ada/misc.c, ch/ch-tree.h, ch/decl.c, cp/decl2.c, f/com.c, f/lex.c, f/top.c, java/builtins.c, java/decl.c: Delete traditional-mode-related code copied from the C front end but not used, or used only to permit the compiler to link. * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi, doc/invoke.texi, doc/standards.texi, doc/trouble.texi: Document removal of -traditional mode for compilation, and remove documentation only relevant to that mode. * config/nextstep.h, config/ptx4.h, config/svr4.h, config/convex/convex.h, config/d30v/d30v.h, config/i386/dgux.h, config/i386/osf1elf.h, config/i386/osfelf.h, config/i386/osfrose.h, config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h, config/m68k/hp310.h, config/m88k/dgux.h, config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c, config/m88k/m88k.h, config/m88k/openbsd.h, config/mips/abi64.h, config/mips/osfrose.h, config/mips/svr4-5.h, config/mips/svr4-t.h, config/sparc/sol2-sld-64.h, config/sparc/sol2.h, config/stormy16/stormy16.h: Remove all references to -traditional from target specs. Delete all mention of the no-longer-necessary TRADITIONAL_RETURN_FLOAT macro. Also delete a couple of commented-out definitions of DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring to -traditional. * system.h: Poison TRADITIONAL_RETURN_FLOAT. * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro. * testsuite/gcc.c-torture/execute/920730-1t.c, testsuite/gcc.c-torture/execute/920730-1t.x, testsuite/gcc.dg/ext-glob.c: Delete test cases, only relevant to -traditional. From-SVN: r50110
2002-02-23re PR java/2369 (--main should check the following symbol)Tom Tromey2-0/+51
Fix for PR java/2369: * jvspec.c (verify_class_name): New function. (lang_specific_driver): Call it. (JAVA_START_CHAR_P): New macro. (JAVA_PART_CHAR_P): Likewise. From-SVN: r49981
2002-02-22class.c: Change vtable to be more compatible with g++ v3 abi.Per Bothner2-4/+30
* class.c: Change vtable to be more compatible with g++ v3 abi. (get_dispatch_table): Prepend offset-to-top (always 0) and type_info pointer (currently unimplemented hence NULL) to vtable. Specifically, prepend offset-to-top and typeinfo ptr (currently null). (make_class_data): Variable dtable_start_offset is sizeof 2 pointers. Adjust vtable pointers by dtable_start_offse - i.e. skip new words. (build_dtable_decl): Add declarations for new fields. From-SVN: r49978
2002-02-22parse.y (patch_method_invocation): Set CAN_COMPLETE_NORMALLY on call to ↵Per Bothner2-1/+7
finit$ (otherwise generate_bytecode_insns... * parse.y (patch_method_invocation): Set CAN_COMPLETE_NORMALLY on call to finit$ (otherwise generate_bytecode_insns drops it). However, we don't need to set it on the COMPOUND_EXPR - the caller does that. From-SVN: r49966
2002-02-20gcj.texi: Option `--classpath' becomes `--CLASSPATH.'Option `--CLASSPATH' ↵Nic Ferrier1-0/+15
becomes... * gcj.texi: Option `--classpath' becomes `--CLASSPATH.'Option `--CLASSPATH' becomes `--classpath.' * gjavah.c: Likewise. * jcf-dump.c: Likewise. * lang-options.h: Likewise. * lang.c: Likewise. * jcf-path.c: Updated comment. (jcf_path_classpath_arg): Renamed `jcf_path_CLASSPATH_arg.' (jcf_path_CLASSPATH_arg): Renamed `jcf_path_classpath_arg.' * jcf.h (jcf_path_CLASSPATH_arg): Ditto. (jcf_path_CLASSPATH_arg): Ditto. (classpath_u): Updated leading comment. From-SVN: r49922
2002-02-20gcj.texi: Option `--classpath' becomes `--CLASSPATH.'Option `--CLASSPATH' ↵Nic Ferrier7-70/+79
becomes... * gcj.texi: Option `--classpath' becomes `--CLASSPATH.'Option `--CLASSPATH' becomes `--classpath.' * gjavah.c: Likewise. * jcf-dump.c: Likewise. * lang-options.h: Likewise. * lang.c: Likewise. * jcf-path.c: Updated comment. (jcf_path_classpath_arg): Renamed `jcf_path_CLASSPATH_arg.' (jcf_path_CLASSPATH_arg): Renamed `jcf_path_classpath_arg.' * jcf.h (jcf_path_CLASSPATH_arg): Ditto. (jcf_path_CLASSPATH_arg): Ditto. (classpath_u): Updated leading comment. From-SVN: r49918
2002-02-20builtins.c (check_for_builtin): New function.Per Bothner5-32/+29
* builtins.c (check_for_builtin): New function. (build_call_or_builtin): Remove. * java-tree.h: Update accordingly. * expr.c (expand_invoke): Use build + check_for_builtin instead of build_call_or_builtin. * parse.y (patch_invoke): Likewise. This avoids needlessly creating a new CALL_EXPR node, which means we don't lose the CALL_USING_SUPER flag (which had caused jcf-write to incorrectly emit invokevirtual). From-SVN: r49909
2002-02-18java-tree.h (TYPE_STRICTFP): New macro.Tom Tromey8-13/+54
* java-tree.h (TYPE_STRICTFP): New macro. (struct lang_type) [strictfp]: New field. (CLASS_STRICTFP): New macro. (METHOD_STRICTFP): New macro. (struct lang_decl) [strictfp]: New field. * parse.y (method_header): Disallow strictfp constructor or abstract method. (STRICT_TK): Move before MODIFIER_TK. * parse.h (CLASS_MODIFIERS): Added ACC_STRICT. (METHOD_MODIFIERS): Likewise. (INTERFACE_MODIFIERS): Likewise. * jcf-write.c (get_access_flags): Likewise. * class.c (set_class_decl_access_flags): Recognize ACC_STRICT. (add_method_1): Likewise. (get_access_flags_from_decl): Likewise. * jcf-dump.c (print_access_flags): Print in standard order. Also, recognize strictfp flag. * jcf.h (ACC_STRICT): New define. From-SVN: r49834
2002-02-11class.c (build_utf8_ref): Move declaration of decl_sizeDavid Billinghurst2-13/+20
2002-02-12 David Billinghurst <Davod.Billinghurst@riotinto.com> * class.c(build_utf8_ref): Move declaration of decl_size From-SVN: r49688
2002-02-07gcj.texi (Input Options): --CLASSPATH does not suppress system path.Tom Tromey2-1/+6
* gcj.texi (Input Options): --CLASSPATH does not suppress system path. From-SVN: r49588
2002-02-04output.h (SECTION_OVERRIDE): Define.Anthony Green2-1/+20
2002-02-04 Anthony Green <green@redhat.com> * output.h (SECTION_OVERRIDE): Define. * varasm.c (named_section): Obey SECTION_OVERRIDE. java: 2002-02-04 Anthony Green <green@redhat.com> * class.c (build_utf8_ref): Put UTF-8 constants into merged sections if available. From-SVN: r49469
2002-02-04* parse.y (java_expand_classes): Fix typo in static field loop.Bryce McKinlay2-0/+5
From-SVN: r49468
2002-02-02class.c (add_field): Mark static fields external.Richard Henderson4-16/+48
* class.c (add_field): Mark static fields external. (build_class_ref): Remove redundant set. * parse.y (java_expand_classes): Mark static fields of classes to be compiled as local. * jcf-parse.c (parse_class_file): Likewise. From-SVN: r49458
2002-02-01added change for gcj manual.Nic Ferrier1-0/+4
From-SVN: r49418
2002-02-01* gcj.texi (About CNI): New node.Nic Ferrier1-1/+870
From-SVN: r49417
2002-02-01re PR java/5080 (gcc/java/jcf-parse.c:908: `LC_CTYPE' undeclared (first use ↵Craig Rodrigues3-8/+11
in this function)) 2002-02-01 Craig Rodrigues <rodrigc@gcc.gnu.org> PR java/5080 * jcf-parse.c : Check for HAVE_LOCALE_H before using setlocale() with LC_CTYPE as a parameter. * jv-scan.c: Same. From-SVN: r49410
2002-01-31gccbug.in: Follow GNU Coding Standards for --version.Joseph Myers4-8/+13
gcc: * gccbug.in: Follow GNU Coding Standards for --version. Use GCC version rather than GNATS version in --version output. gcc/f: * g77spec.c (lang_specific_driver): Follow GNU Coding Standards for --version. gcc/java: * gjavah.c (version), jcf-dump.c (version), jv-scan.c (version): Follow GNU Coding Standards for --version. libjava: * gnu/gcj/convert/Convert.java: Only include one copyright year in --version output. From-SVN: r49372
2002-01-28expr.c (build_jni_stub): Ensure storage for `meth' is generated.Tom Tromey3-3/+17
* expr.c (build_jni_stub): Ensure storage for `meth' is generated. * parse.y (java_complete_expand_methods): Set current_function_decl before building JNI stub. From-SVN: r49286
2002-01-27reverted accidental checkinTom Tromey2-10/+3
From-SVN: r49272
2002-01-27builtins.c (sqrt_builtin): Use BUILT_IN_SQRT, not BUILT_IN_SQRTF.Andreas Tobler4-4/+16
2002-01-26 Andreas Tobler <a.tobler@schweiz.ch> * gcc/java/builtins.c (sqrt_builtin): Use BUILT_IN_SQRT, not BUILT_IN_SQRTF. From-SVN: r49271
2002-01-22decl.c (java_init_decl_processing): Use add_predefined_file.Tom Tromey8-41/+451
* decl.c (java_init_decl_processing): Use add_predefined_file. Predefine RawData.java. (predef_filenames): Removed. (java_init_decl_processing): Don't register predef_filenames. * jcf-parse.c (add_predefined_file): New function. (predefined_filename_p): Rewrote. (predefined_filename_p): No longer static. * decl.c (java_init_decl_processing): Call initialize_builtins. * Make-lang.in (JAVA_OBJS): Added builtins.o. (java/builtins.o): New target. * builtins.c: New file. * parse.y (patch_invoke): Use build_call_or_builtin. * java-tree.h (build_call_or_builtin): Declare. (initialize_builtins): Declare. (java_set_exception_lang_code): Removed unused declaration. (PREDEF_FILENAMES_SIZE): Removed. (java_tree_index): Added JTI_PREDEF_FILENAMES. (predef_filenames): New define. (add_predefined_file): Declare. (predefined_filename_p): Declare. * expr.c (expand_invoke): Use build_call_or_builtin. From-SVN: r49091
2002-01-22* parse.y (patch_switch_statement): Fix format specifier.Kaveh R. Ghazi2-2/+6
From-SVN: r49084
2002-01-16More for PR java/5365:Tom Tromey2-3/+16
* gjavah.c (print_stub_or_jni): Cause exception to be thrown by default. (process_file): Generate include for java.lang.UnsupportedOperationExceptions. From-SVN: r48928
2002-01-16* .cvsignore: Add man pages.Andreas Jaeger2-11/+21
From-SVN: r48911
2002-01-16re PR java/5365 (gcjh -stubs does not include correct files)Tom Tromey2-3/+16
Fix for PR java/5365: * gjavah.c (process_file): Turn class name into a file name. From-SVN: r48891
2002-01-16For PR libgcj/5303:Tom Tromey1-2/+14
* Make-lang.in (java.install-man): Handle jv-convert man page. (java.generated-manpages): Added jv-convert.1. (java.uninstall): Remove jv-convert.1. (java.maintainer-clean): Likewise. ($(srcdir)/java/jv-convert.1): New target. * gcj.texi (Top): Link to jv-convert node. (Individual utilities): Likewise. (Invoking jv-convert): New node. From-SVN: r48889
2002-01-14gcj.texi: Fix whitespace and formatting errors in the synopsis of the man pages.Matthias Klose2-9/+14
* gcj.texi: Fix whitespace and formatting errors in the synopsis of the man pages. Update copyright. From-SVN: r48850
2002-01-14For PR libgcj/5303:Tom Tromey2-0/+74
* Make-lang.in (java.install-man): Handle jv-convert man page. (java.generated-manpages): Added jv-convert.1. (java.uninstall): Remove jv-convert.1. (java.maintainer-clean): Likewise. ($(srcdir)/java/jv-convert.1): New target. * gcj.texi (Top): Link to jv-convert node. (Individual utilities): Likewise. (Invoking jv-convert): New node. From-SVN: r48844
2002-01-12jcf-parse.c (get_constant): Don't swap lo/hi for big endian targets when ↵Jeff Sturm2-1/+15
HOST_BITS_PER_WIDE_INT >= 64. * jcf-parse.c (get_constant): Don't swap lo/hi for big endian targets when HOST_BITS_PER_WIDE_INT >= 64. Co-Authored-By: Martin Kahlert <martin.kahlert@infineon.com> From-SVN: r48786
2002-01-06Fix date in last entry.Graham Stott1-1/+1
From-SVN: r48578
2002-01-06class.c (compile_resource_file): Update copyright date.Graham Stott1-0/+7
* class.c (compile_resource_file): Update copyright date. Constify filename parameter. (java-tree.h): Update copyright date. (compile_resource_file): Constify filename parameter. From-SVN: r48577
2002-01-03class.c (compile_resource_file): Update copyright date.Graham Stott2-4/+5
* class.c (compile_resource_file): Update copyright date. Constify filename parameter. java-tree.h: Update copyright date. (compile_resource_file): Constify filename parameter. From-SVN: r48503
2002-01-03jcf-parse.c: Update copyright date.Graham Stott1-0/+5
* gcc/jcf-parse.c: Update copyright date. (yyparse): Constify resource_filename. From-SVN: r48500
2002-01-03tree.h: Update copyright date.Graham Stott1-2/+3
* tree.h: Update copyright date. (IS_EXPR_CODE_CLASS): Add parenthesis. (TREE_SET_CODE): Add whitespace. (TREE_CHECK): Add parenthesis. (TREE_CLASS_CODE): Add parenthesis and wrap long line. (CST_OR_CONSTRUCTOR_CHECK): (EXPR_CHECK): Add parenthis, whitespace and wrap line. (TREE_SYMBOL_REFERENCED): Whitespace. (INT_CST_LT): Likewise. (INT_CST_LT_UNSIGNED): Likewise. (tree_real_cst): Unwrap comment. (tree_string): Likewise. (tree_complex): Likewise. (IDENTIFIER_POINTER): correct cast. (SAVE_EXPR_CONTEXT): Whitespace. (EXPR_WFL_FILENAME_NODE): Likewise. (EXPR_WFL_FILENAME): Remove parenthesis. (DECL_ORIGIN): Add parenthesis. (DECL_FROM_INLINE): Use NULL_TREE. (build_int_2): Whitespace. (build_type_variant): Add parenthesis. * gcc/jcf-parse.c: Update copyright date. (yyparse): Constify resource_filename. From-SVN: r48498
2002-01-02gcc.c (default_compilers): Const-ify.Kaveh R. Ghazi2-1/+5
* gcc.c (default_compilers): Const-ify. * mips-tdump.c (stab_names): Likewise. * mips-tfile.c (map_coff_types, map_coff_storage, map_coff_sym_type, map_coff_derived_type, stabs_symbol, pseudo_ops_t, pseudo_ops): Likewise. * protoize.c (default_include): Likewise f: * com.c (clear_binding_level): Const-ify. (ffecom_arglist_expr_): Likewise. * info.c (ffeinfo_types_): Don't needlessly zero init. * lex.c (ffelex_hash_kludge): Const-ify. java: * parse.y (src_parse_roots): Don't needlessly zero init. libiberty: * cp-demangle.c (long_options): Const-ify. * cplus-dem.c (long_options): Likewise. From-SVN: r48485
2002-01-01parse.y (dump_java_tree): New function.Tom Tromey3-2/+37
* parse.y (dump_java_tree): New function. (source_end_java_method): Call it. (end_class_declaration): Likewise. * lang.c (java_decode_option): Call dump_switch_p. From-SVN: r48439
2001-12-29gen-table.pl: Don't process characters after \uffff.Tom Tromey2-4/+14
* gen-table.pl: Don't process characters after \uffff. Added comment pointing to input file. From-SVN: r48359
2001-12-28gen-table.pl: Const-ify output.Kaveh R. Ghazi3-5/+16
* gen-table.pl: Const-ify output. Document the location of a suitable unicode input file. * chartables.h: Regenerate. From-SVN: r48354
2001-12-27collect2.c (is_ctor_dtor): Const-ify.Kaveh R. Ghazi7-47/+56
* collect2.c (is_ctor_dtor): Const-ify. * m88k-protos.c (output_file_start): Likewise. * m88k.c (m88k_lang_independent_options, output_options, output_file_start): Likewise. * fix-header.c (files_to_ignore, std_include_entry, include_entry, std_include_table, main): Likewise. * protoize.c (longopts): Likewise. * regclass.c (int_reg_class_contents): Likewise. * toplev.c (dump_file, f_options, W_options): Make static. (lang_independent_options, f_options, W_options): Const-ify. * tree-dump.c (dump_file_info): Likewise. * unroll.c (_factor): Make static. java: * chartables.h: Const-ify. * gjavah.c (options): Likewise. * jcf-dump.c (options): Likewise. * jv-scan.c (options): Likewise. * lex.c (java_start_char_p, java_part_char_p): Likewise. * parse.y (binop_lookup): Likewise. From-SVN: r48322
2001-12-23arc.c (arc_hard_regno_mode_ok): Const-ify.Kaveh R. Ghazi7-25/+43
* arc.c (arc_hard_regno_mode_ok): Const-ify. * arc.h (arc_hard_regno_mode_ok): Likewise. * i386.c (x86_64_reg_class_name): Make static. * m68k.c (regno_reg_class): Const-ify. * m68k.h (regno_reg_class): Likewise. * mcore.c (reg_class_from_letter): Likewise. * mcore.h (reg_class_from_letter): Likewise. * sh.c (reg_class_from_letter, ashiftrt_insns, shift_insns, ext_shift_insns, ext_shift_amounts): Likewise. * sh.h (reg_class_from_letter): Likewise. * sparc.c (hard_regno_mode_classes, hard_32bit_mode_classes, hard_64bit_mode_classes): Likewise. * sparc.h (hard_regno_mode_classes): Likewise. * gcc.c (modify_target): Make static. * gengenrtl.c (defs, formats): Likewise. * reload1.c (elim_table_1, init_elim_table): Const-ify. * tradcpp.c (directive, directive_table, handle_directive, skip_if_group, run_directive): Likewise. cp: * decl2.c (lang_f_options): Const-ify. f: * com.c (ffecom_gfrt_volatile_, ffecom_gfrt_complex_, ffecom_gfrt_const_, ffecom_gfrt_type_): Const-ify. java: * Make-lang.in (keyword.h): Pass -C to gperf to const-ify the static arrays that are output. * jvspec.c (jvgenmain_spec): Make static. * keyword.gperf (struct java_keyword, java_keyword): Const-ify. * keyword.h: Regenerate. * lang.c (string_option, process_option_with_no, lang_f_options, lang_W_options): Const-ify. * lex.c (java_lex): Likewise. From-SVN: r48290