aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
AgeCommit message (Collapse)AuthorFilesLines
2003-02-06Reverted erroneously applied patchTom Tromey1-29/+4
From-SVN: r62493
2003-02-04fastjar.texi: Update to GFDL 1.2.Joseph Myers2-1/+5
fastjar: * fastjar.texi: Update to GFDL 1.2. gcc: * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi, doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2. * doc/install.texi: Update copyright dates. Update to GFDL 1.2. gcc/ada: * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2. * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi, gnat_ug_wnt.texi: Regenerate. gcc/f: * g77.texi, invoke.texi: Update to GFDL 1.2. gcc/java: * gcj.texi: Update to GFDL 1.2. gcc/treelang: * treelang.texi: Update to GFDL 1.2. libiberty: * libiberty.texi: Update to GFDL 1.2. libstdc++-v3: * docs/html/17_intro/porting.texi: Update to GFDL 1.2. * docs/html/17_intro/porting.html: Regenerate. From-SVN: r62365
2003-02-03parse.y (java_expand_classes): Scan the whole class list looking for access ↵Andrew Haley2-0/+64
methods that haven't yet been expanded. 2003-01-31 Andrew Haley <aph@redhat.com> * parse.y (java_expand_classes): Scan the whole class list looking for access methods that haven't yet been expanded. From-SVN: r62329
2003-02-03Fix for java/4269:Adrian Bunk3-4/+12
2003-01-31 Adrian Bunk <bunk@fs.tum.de> Fix for java/4269: * jv-scan.c: Use HAVE_LANGINFO_CODESET instead of HAVE_NL_LANGINFO to fix bootstrap on sparc-unknown-netbsdelf1.5. * jcf-parse.c: Likewise. From-SVN: r62310
2003-02-01* gjavah.c (throwable_p): Allocate 1 more byte for string.Mark Wielaard2-1/+5
From-SVN: r62228
2003-01-31tree.h (TYPE_BINFO_SIZE, [...]): Remove.Nathan Sidwell2-3/+9
* tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove. (BINFO_ELTS): New #define. * stor-layout.c (finalize_record_size): Don't set them. * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS. (BINFO_LANG_ELTS): New #define. * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS. * java/class.c (make_class): Use BINFO_ELTS. (set_super_info): Likewse. (add_interface_do): Likewise. * objc/objc-act.c (start_class): Use BINFO_ELTS. From-SVN: r62180
2003-01-30jcf-parse.c (read_class): Update identifier's class value if it changed ↵Tom Tromey2-0/+9
during parsing. * jcf-parse.c (read_class): Update identifier's class value if it changed during parsing. From-SVN: r62149
2003-01-30Make-lang.in (po-generated): Find the targets in $(parsedir).Loren J. Rittle2-8/+15
* Make-lang.in (po-generated): Find the targets in $(parsedir). Propagate change to all other rules as required. (java/parse-scan.o): Add explicit dependency on $(parsedir)/java/parse-scan.c . From-SVN: r62128
2003-01-29parse.y (patch_assignment): Only transform the rhs of an assignment when ↵Tom Tromey2-1/+6
compiling to native. * parse.y (patch_assignment): Only transform the rhs of an assignment when compiling to native. From-SVN: r62104
2003-01-29* jcf-write.c (generate_bytecode_conditional): Typo fixes.Tom Tromey2-2/+6
From-SVN: r62061
2003-01-28lex.c (java_lex): Don't include UEOF as part of token.Tom Tromey2-14/+28
* lex.c (java_lex): Don't include UEOF as part of token. (java_read_unicode): Error if \u sequence prematurely terminated. From-SVN: r61993
2003-01-28parse.y (java_check_regular_methods): Check for construct after checking ↵Tom Tromey2-11/+16
types in throws clause. * parse.y (java_check_regular_methods): Check for construct after checking types in throws clause. From-SVN: r61956
2003-01-24builtins.c (DEF_BUILTIN): Accept 10 arguments.Jan Hubicka1-4/+7
* builtins.c (DEF_BUILTIN): Accept 10 arguments. (implicit_built_in_decls): New global array. (mathfn_built_in): New global function. (fold_trunc_transparent_mathfn): New static function (expand_builtin_strstr, expand_bultin_strchr, expand_builtin_strpbrk, expand_builtin_strcpy, expand_builtin_strncpy, expand_bultin_strcmp, expand_bultin_strncat, expand_builtin_fputs): Use implicint_built_in_decls. (fold_builtin): Fold floor/trunc/round/ceil/nearbyint. * builtins.def: Fix comments. (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN, DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN, DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN, DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed. (DEF_C99_C90RES_BULTIN): New. (*f, *l builtins): Update. * c-common.c (DEF_BUILTIN): Initialize implicit array. (c_expand_builtin_printf, c_expand_builtin_fprintf): Update. * convert.c (strip_float_extensions): New global function. * tree.h (DEF_BUILTIN): Accept 10 arguments. (implicit_built_in_decls, mathfn_built_in, strip_float_extension): Declare. * java/builtins.c (define_builtin): Handle implicit. (DEF_BUILTIN): Update. * tm.texi (TARGET_C99_FUNCTIONS): Document. * defaults.h (TARGET_C99_FUNCTIONS): Default to 0. * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1 when using glibc2. From-SVN: r61738
2003-01-24class.c (build_static_field_ref): Only a String or numeric field can fold to ↵Tom Tromey2-2/+17
a constant. * class.c (build_static_field_ref): Only a String or numeric field can fold to a constant. From-SVN: r61723
2003-01-24jcf-parse.c (parse_zip_file_entries): Overwrite trailing \0 of file name in ↵Tom Tromey2-1/+8
resource buffer. * jcf-parse.c (parse_zip_file_entries): Overwrite trailing \0 of file name in resource buffer. From-SVN: r61694
2003-01-23expr.c (build_known_method_ref): Use method's context to find method table ↵Tom Tromey2-5/+13
index. * expr.c (build_known_method_ref): Use method's context to find method table index. From-SVN: r61670
2003-01-23* constants.c (set_constant_entry): Allocated cleared memory.Tom Tromey2-2/+13
From-SVN: r61661
2003-01-23java-tree.h: Don't use PARAMS.Tom Tromey3-15/+16
* java-tree.h: Don't use PARAMS. * resource.c: Add prototypes for all functions. (write_resource_constructor): Use `const char *' to avoid warning. From-SVN: r61640
2003-01-23jcf-parse.c (process_zip_dir): Remove unused variable.Nathanael Nerode2-1/+4
2003-01-22 Nathanael Nerode <neroden@gcc.gnu.org> * jcf-parse.c (process_zip_dir): Remove unused variable. From-SVN: r61637
2003-01-22expr.c (build_invokeinterface): Abort if method's context is not an interface.Tom Tromey2-4/+10
* expr.c (build_invokeinterface): Abort if method's context is not an interface. From-SVN: r61615
2003-01-22gcj.texi (Input and output files): Mention non-class entries.Tom Tromey11-203/+434
* gcj.texi (Input and output files): Mention non-class entries. * decl.c (java_init_decl_processing): Call init_resource_processing. * java-tree.h (compile_resource_data, write_resource_constructor, compile_resource_file, init_resource_processing): Declare. * config-lang.in (gtfiles): Added resource.c. * Make-lang.in (gt-java-resource.h): New target. (JAVA_OBJS): Added resource.o. (java/resource.o): New target. * resource.c: New file. * class.c (compile_resource_file): Moved to resource.c. (registerResource_libfunc): Likewise. (utf8_decl_list): Mark with GTY; now static. * jcf-parse.c (classify_zip_file): New function. (parse_zip_file_entries): Use it; compile .properties files. (process_zip_dir): Use classify_zip_file and compute_class_name. Don't write class name into zip directory. (java_parse_file): Call write_resource_constructor. (compute_class_name): New function. * jcf-io.c (read_zip_member): Reindented. From-SVN: r61614
2003-01-21class.c (supers_all_compiled): New function.Tom Tromey2-7/+23
* class.c (supers_all_compiled): New function. (make_class_data): Use it. From-SVN: r61561
2003-01-21parse.y (method_header): Native method can't be strictfp.Tom Tromey2-0/+17
* parse.y (method_header): Native method can't be strictfp. No method can be transient or volatile. From-SVN: r61559
2003-01-21Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn) (gtype-desc.o-warn...Kaveh R. Ghazi2-0/+6
gcc: * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn) (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn, insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn, c-parse.o-warn): Add -Wno-error. (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@". * configure.in (--enable-werror): Add new flag. * doc/install.texi (--enable-werror): Document. * configure: Regenerate. * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error. cp: Make-lang.in (cp/decl.o-warn): Add -Wno-error. f: Make-lang.in (f/sta.o-warn): Add -Wno-error. java: Make-lang.in (jvspec.o-warn): Add -Wno-error. From-SVN: r61544
2003-01-18check-init.c: Fix comment typos.Kazu Hirata18-32/+52
* check-init.c: Fix comment typos. * class.c: Likewise. * constants.c: Likewise. * decl.c: Likewise. * except.c: Likewise. * expr.c: Likewise. * java-except.h: Likewise. * java-tree.h: Likewise. * javaop.h: Likewise. * jcf-dump.c: Likewise. * jcf-io.c: Likewise. * jcf-parse.c: Likewise. * jcf-write.c: Likewise. * lang.c: Likewise. * mangle.c: Likewise. * typeck.c: Likewise. * verify.c: Likewise. From-SVN: r61477
2003-01-18Make-lang.in (java/jcf-write.o): Depend on $(TM_P_H).Kaveh R. Ghazi3-1/+7
* Make-lang.in (java/jcf-write.o): Depend on $(TM_P_H). * jcf-write.c: Include "tm_p.h". From-SVN: r61476
2003-01-17* jcf-io.c (caching_stat): Cast the 3rd arg of scandir to void*.Kaveh R. Ghazi2-4/+7
From-SVN: r61444
2003-01-17builtins.c (java_build_function_call_expr): Renamed from ↵Kaveh R. Ghazi2-5/+8
build_function_call_expr. * builtins.c (java_build_function_call_expr): Renamed from build_function_call_expr. All callers changed. From-SVN: r61415
2003-01-16Make-lang.in (f/target.o): Depend on toplev.h.Kaveh R. Ghazi3-1/+5
f: * Make-lang.in (f/target.o): Depend on toplev.h. * target.c: Include toplev.h. java: * Make-lang.in (java/jcf-parse.o): Depend on $(TM_P_H). * jcf-parse.c: Include tm_p.h. gcc: * ra-colorize.c (colorize_one_web): Initialize variable. * regmove.c (fixup_match_1): Likewise. * reload1.c (reload_as_needed): Likewise. * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast. From-SVN: r61394
2003-01-16arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned warning.Kaveh R. Ghazi2-1/+6
* arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned warning. * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos, init_emit_once): Likewise. * flow.c (mark_regs_live_at_end, calculate_global_regs_live): Likewise. * function.c (assign_stack_temp_for_type): Likewise. * loop.c (loop_invariant_p): Likewise. * recog.c (push_operand): Likewise. * regclass.c (init_reg_sets_1): Likewise. * reload.c (update_auto_inc_notes): Likewise. * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise. * stmt.c (expand_asm_operands): Likewise. * stor-layout.c (start_record_layout): Likewise. cp: * class.c (layout_virtual_bases): Avoid signed/unsigned warning. java: * jcf-write.c (generate_bytecode_insns): Avoid signed/unsigned warning. From-SVN: r61389
2003-01-14class.c (make_class_data): Check that super is compiled before building ↵Tom Tromey2-1/+7
class reference to it. * class.c (make_class_data): Check that super is compiled before building class reference to it. From-SVN: r61292
2003-01-14decl.c (java_init_decl_processing): _Jv_NewMultiArray is a varargs function ↵Andrew Haley2-1/+8
-- correct. 2003-01-14 Andrew Haley <aph@redhat.com> * decl.c (java_init_decl_processing): _Jv_NewMultiArray is a varargs function -- correct. From-SVN: r61289
2003-01-14decl.c (java_init_decl_processing): Temporarily back out previous patch.Andrew Haley2-3/+6
2003-01-14 Andrew Haley <aph@redhat.com> * decl.c (java_init_decl_processing): Temporarily back out previous patch. From-SVN: r61286
2003-01-14[multiple changes]Andrew Haley3-2/+48
2003-01-14 Andrew Haley <aph@redhat.com> * decl.c (java_init_decl_processing): _Jv_NewMultiArray is a varargs function -- correct. * parse.y (patch_assignment): Copy the rhs of an assignment into a temporary if the RHS is a reference. 2003-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * Make-lang.in (keyword.h): Pass "-L ANSI-C" to gperf. * keyword.h: Regenerated. * All Files: Convert to ISO C style function definitions. From-SVN: r61281
2003-01-12Make-lang.in (keyword.h): Pass "-L ANSI-C" to gperf.Kaveh R. Ghazi3-9/+8
* Make-lang.in (keyword.h): Pass "-L ANSI-C" to gperf. * keyword.h: Regenerated. From-SVN: r61220
2003-01-12* All Files: Convert to ISO C style function definitions.Kaveh R. Ghazi29-1846/+842
From-SVN: r61218
2003-01-10* parse.y (check_pkg_class_access): ANSIfy definition.Nathanael Nerode2-4/+5
From-SVN: r61164
2003-01-10missed from last checkinKaveh Ghazi1-0/+3
From-SVN: r61139
2003-01-10decl.c, [...]: Don't cast return value of xmalloc et al.Kaveh Ghazi3-12/+10
* decl.c, parse-scan.y, parse.y: Don't cast return value of xmalloc et al. From-SVN: r61138
2003-01-10* class.c, gjavah.c, parse.y, verify.c: Don't use PTR.Kaveh R. Ghazi5-19/+23
From-SVN: r61137
2003-01-10Merge from pch-branch.Geoffrey Keating14-183/+211
From-SVN: r61136
2003-01-09* All Files: Remove PARAMS macro.Kaveh R. Ghazi38-911/+865
From-SVN: r61133
2003-01-09expr.c, [...]: Don't rely on the `DEFUN', `AND' or `__STDC__' macros.Kaveh R. Ghazi10-147/+69
* expr.c, gjavah.c, javaop.h, jcf-dump.c, jcf-io.c, jcf-reader.c, jcf-write.c, jcf.h, jv-scan.c: Don't rely on the `DEFUN', `AND' or `__STDC__' macros. From-SVN: r61131
2003-01-09jv-scan.c, parse.y: Remove VPARAMS, VA_OPEN, VA_FIXEDARG and VA_CLOSE.Kaveh R. Ghazi3-20/+21
* jv-scan.c, parse.y: Remove VPARAMS, VA_OPEN, VA_FIXEDARG and VA_CLOSE. From-SVN: r61129
2003-01-09re PR target/8343 ([m68k] [3.2 regression] m68k-elf/rtems ICE at ↵Jan Hubicka1-5/+12
instantiate_virtual_regs_1) * i386.md (*mul*): FIx constraints; remove confused comment; fix athlon_decode attributes (imul/k8 optimization peep2s): New. * athlon.md (athlon_ssecmp*): Handle ssecomi as well. * i386.md (type attribute): Add ssecomi. (unit, memory, prefix attributes): Handle ssecomi. (cvt?2? patterns): Fix athlon_decode attribute (comi patterns): Set attribute to ssecomi. PR target/8343 * m68k.md (umulsidi, mulsidi expanders): Use register operand. From-SVN: r61098
2003-01-09Make-lang.in (java.install-common, [...]): Prepend $(DESTDIR) to destination ↵Christian Cornelssen2-52/+61
paths in all (un)installation commands. 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de> * Make-lang.in (java.install-common, java.uninstall, java.install-info, java.install-man): Prepend $(DESTDIR) to destination paths in all (un)installation commands. (java.install-common): Rewrite $(LN) command to support DESTDIR with "ln" as well as with "ln -s". From-SVN: r61081
2003-01-08* java-tree.h: Protect against multiple inclusion.Nathanael Nerode2-0/+8
From-SVN: r61043
2003-01-07class.c (add_assume_compiled): Don't adjust parent if we're already at the ↵Tom Tromey2-2/+9
root of tree. * class.c (add_assume_compiled): Don't adjust parent if we're already at the root of tree. From-SVN: r61003
2003-01-05Warning fixes:Kaveh R. Ghazi2-0/+5
* alloc-pool.c: Don't include "libiberty.h". * config/sparc/gmon-sol2.c: Include <fcntl.h>. * convert.c (convert_to_real): Hide unused variable. java: * lang.c (dump_compound_expr): Prototype. From-SVN: r60900
2003-01-03re PR java/8712 (ICE at fold-const.c:2934)Tom Tromey2-3/+7
Fix for PR java/8712: * expr.c (build_instanceof): Build an NE_EXPR, not a COND_EXPR, when simply checking against `null'. From-SVN: r60859