aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
AgeCommit message (Collapse)AuthorFilesLines
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
2003-01-03gcj.texi (Standard Properties): Document http.proxyHost and http.proxyPort.Tom Tromey2-0/+9
* gcj.texi (Standard Properties): Document http.proxyHost and http.proxyPort. From-SVN: r60844
2003-01-03* gcj.texi (GNU Classpath Properties): Document new properties.Tom Tromey2-0/+13
From-SVN: r60840
2003-01-02except.c, [...]: Fix Copyright years.Steven Bosscher10-11/+20
2003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl> * cp/except.c, cp/expr.c, cp/friend.c, cp/g++spec.c, cp/lang-options.h, cp/lang-specs.h, cp/lex.h, cp/ptree.c, cp/repo.c, java/jcf-reader.c, java/jvgenmain.c, java/keyword.gperf, java/lang-options.h, java/mangle.c, java/mangle_name.c, java/xref.c, java/zextract.c,java/zipfile.h, objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h, objc/objc-act.h: Fix Copyright years. From-SVN: r60783
2003-01-01Make-lang.in, [...]: Replace "GNU CC" with "GCC" in the copyright header.Steven Bosscher48-225/+285
* Make-lang.in, boehm.c, buffer.c, buffer.h, builtins.c, class.c, config-lang.in, constants.c, convert.h, decl.c, except.c, expr.c, java-except.h, java-tree.h, javaop.def, jcf-parse.c, jcf-write.c, jv-scan.c, jvgenmain.c, jvspec.c, keyword.gperf, keyword.h, lang-options.h, lang-specs.h, lang.c, lex.c, lex.h, mangle.c, mangle_name.c, parse-scan.y, parse.h, parse.y, typeck.c, verify.c, xref.c, xref.h: Replace "GNU CC" with "GCC" in the copyright header. * check-init.c, gjavah.c, javaop.h, jcf-depend.c, jcf-dump.c, jcf-io.c, jcf-path.c, jcf-reader.c, jcf.h, zextract.c, zipfile.h: These files are "part of GCC". Also say "GCC" not "GNU CC". From-SVN: r60747
2002-12-30Minor typosDJ Delorie1-1/+1
From-SVN: r60672
2002-12-30i* Make-lang.in: Protect against texi2pod/pod2man failing.DJ Delorie2-16/+20
From-SVN: r60652
2002-12-28cpp.texi, [...]: Use @copying.Joseph Myers2-45/+35
gcc: * doc/cpp.texi, doc/gcc.texi, doc/gccint.texi, doc/install.texi: Use @copying. gcc/ada: * gnat_rm.texi, gnat_ug.texi: Use @copying. * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi, gnat_ug_wnt.texi: Regenerate. gcc/f: * g77.texi: Use @copying. gcc/java: * gcj.texi: Use @copying. gcc/treelang: * treelang.texi: Use @copying. libstdc++-v3: * docs/html/17_intro/porting.texi: Use @copying. * docs/html/17_intro/porting.html: Regenerate. From-SVN: r60587
2002-12-28gjavah.c (print_name_for_stub_or_jni): Adjust call to print_cxx_classname.Mark Mitchell2-7/+18
* gjavah.c (print_name_for_stub_or_jni): Adjust call to print_cxx_classname. (print_cxx_classname): Add add_scope parameter. (print_class_decls): Do not emit a semicolon after the extern "Java" block. (process_file): Adjust calls to print_cxx_classname. From-SVN: r60555
2002-12-23gcj.texi: Include Cover Texts in man page.Joseph Myers2-0/+7
gcc/java: * gcj.texi: Include Cover Texts in man page. fastjar: * fastjar.texi: Include Cover Texts in man page. From-SVN: r60451
2002-12-23class.c (build_static_field_ref): Check FIELD_FINAL.Jeff Sturm7-17/+38
* class.c (build_static_field_ref): Check FIELD_FINAL. * constants.c (alloc_class_constant): Use TYPE_CPOOL_DATA_REF instead of current_constant_pool_data_ref. * java-tree.h (current_constant_pool_data_ref): Undefine. (JTI_CURRENT_CONSTANT_POOL_DATA_REF): Remove. * jcf-parse.c (init_outgoing_cpool): Don't initialize current_constant_pool_data_ref. * except.c (prepare_eh_table_type ): Use DECL_NAME of class type, not build_internal_class_name. * parse.y (patch_incomplete_class_ref): Always emit `class$' method. Use it when class ref isn't certain to be compiled. From-SVN: r60448
2002-12-23gcc-common.texi: Define DEVELOPMENT.Joseph Myers3-8/+12
* doc/include/gcc-common.texi: Define DEVELOPMENT. ada: * gnat_rm.texi: Include gcc-common.texi. Use GCC version number only. * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info, $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info, $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info, ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi, ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on $(srcdir)/doc/include/gcc-common.texi. f: * root.texi: Include gcc-common.texi. * bugs.texi, news.texi: Don't include root.texi as part of full manual. * g77.texi: Update for use of gcc-common.texi. * Make-lang.in ($(srcdir)/f/g77.info, f/g77.dvi): Depend on $(srcdir)/doc/include/gcc-common.texi. java: * gcj.texi: Include gcc-common.texi. * Make-lang.in ($(srcdir)/java/gcj.info, java/gcj.dvi): Depend on $(srcdir)/doc/include/gcc-common.texi. treelang: * treelang.texi: Include gcc-common.texi. * Make-lang.in ($(srcdir)/treelang/treelang.info, treelang.dvi): Depend on gcc-common.texi. Add other missing dependencies. (treelang.dvi): Use texi2dvi. From-SVN: r60446
2002-12-22gcj.texi (Limitations): Add note about org.xml.sax and org.w3c.dom.Anthony Green2-0/+16
2002-12-22 Anthony Green <green@redhat.com> * gcj.texi (Limitations): Add note about org.xml.sax and org.w3c.dom. From-SVN: r60411
2002-12-20re PR java/8955 (switch case statement causes gcj to throw segmentation fault)Tom Tromey2-2/+12
* jcf-write.c (generate_bytecode_insns) [SWITCH_EXPR]: Handle case where minimum case value is Integer.MIN_VALUE. Fixes PR java/8955. From-SVN: r60372
2002-12-19re PR libgcj/8945 (StringTokenizer)Andrew Haley2-1/+10
2002-12-18 Andrew Haley <aph@redhat.com> * parse.y (patch_invoke): Force evaluation order when `check' is set. For PR libgcj/8945. From-SVN: r60290
2002-12-16gcc-common.texi: Change version number to 3.4.Mark Mitchell2-1/+5
* doc/include/gcc-common.texi: Change version number to 3.4. * gcj.texi: Change version number to 3.4. * root.texi: Change version number to 3.4. From-SVN: r60183
2002-12-16Merge basic-improvements-branch to trunkZack Weinberg30-68/+149
From-SVN: r60174
2002-12-06parse.y (source_end_java_method): Remove custom encoding of line numbers for ↵Ranjit Mathew2-0/+8
a function decl before passing it to... 2002-12-05 Ranjit Mathew <rmathew@hotmail.com> Andrew Haley <aph@redhat.com> * parse.y (source_end_java_method): Remove custom encoding of line numbers for a function decl before passing it to the back end. Co-Authored-By: Andrew Haley <aph@redhat.com> From-SVN: r59892
2002-12-03natClassLoader.cc (_Jv_PrepareCompiledClass): Call _Jv_PushClass.Andrew Haley3-0/+7
2002-12-03 Andrew Haley <aph@redhat.com> * java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Call _Jv_PushClass. (_Jv_InitNewClassFields): Set protectionDomain and chain = NULL. (_Jv_PopClass): New. (_Jv_PushClass): New. * java/lang/natClass.cc (forName (jstring)): Use a StackTrace to discover the ClassLoader of our caller. (_Jv_CheckArrayStore): Don't check that a class is assignment compatible with Object. * java/lang/natVMTHrowable.cc: Delete. * gnu/gcj/runtime/StackTrace.java: New, partly copied from java.lang.VMThrowable. (StackTrace(), StackTrace(int)): New constructors. (classAt, methodAt, update, methodAtAddress): New methods. (map): New field. * java/lang/VMThrowable.java: Use StackTrace instead of natVMTHrowable. * java/lang/Class.h (getClassLoaderInternal): New. (class Class): Be friendly with _Jv_PopClass and _Jv_PushClass. Be friendly with gnu::gcj::runtime::StackTrace. (Object.chain): New field. * include/java-interp.h (class _Jv_InterpMethod): Be friendly with gnu::gcj::runtime::StackTrace. * prims.cc (_Jv_NewObjectArray): Use getClassLoaderInternal() instead of getClassLoader(). * verify.cc (class _Jv_BytecodeVerifier): Likewise. java::lang::VMThrowable. * Makefile.am (core_java_source_files): Add MethodRef.java, StackTrace.java. (nat_source_files): Remove natVMThrowable.cc; add natStackTrace.cc. * Makefile.in: Rebuild. 2002-12-03 Andrew Haley <aph@redhat.com> * class.c (make_class_data): New field, "chain". * decl.c (java_init_decl_processing): Likewise. From-SVN: r59769
2002-12-02For PR java/8740:Tom Tromey2-36/+63
* parse.y (do_resolve_class): Handle qualified name via recursion. From-SVN: r59728
2002-11-28* decl.c (java_init_decl_processing): Use `LL' on 64-bit constant.Kaveh R. Ghazi2-1/+5
From-SVN: r59594
2002-11-25jcf-reader.c: Don't expand JCF_readu4 inside the expansion of JCF_SKIP.Diego Novillo2-1/+8
* jcf-reader.c: Don't expand JCF_readu4 inside the expansion of JCF_SKIP. From-SVN: r59459
2002-11-22re PR java/8676 (ICE in generate_bytecode_conditional at jcf-write.c:1359)Tom Tromey2-0/+10
* parse.y (patch_binop): Cast right hand side of shift expression to `int'. Fixes PR java/8676. From-SVN: r59390
2002-11-22jcf-write.c (write_classfile): Remove target class file...Ranjit Mathew2-0/+16
2002-11-22 Ranjit Mathew <rmathew@hotmail.com> Andrew Haley <aph@redhat.com> * gcc/java/jcf-write.c (write_classfile): Remove target class file, if it exists, before renaming the temporary class file to it. Co-Authored-By: Andrew Haley <aph@redhat.com> From-SVN: r59386
2002-11-19gcc.c (The Specs Language): Document spec functions.Jason Thorpe2-0/+10
* gcc.c (The Specs Language): Document spec functions. (static_spec_functions, lookup_spec_function) (eval_spec_function, handle_spec_function) (if_exists_spec_function, alloc_args): New. (execute): Abort if processing_spec_function is true. (do_spec_1): Hand off spec to handle_spec_function if %: is encountered. If processing_spec_function is true, end any pending argument when the end of the string is reached. (main): Use alloc_args to allocate the initial argument vector. * gcc.h (struct spec_function): New. (lang_specific_spec_functions): New extern. * config/netbsd-elf.h (STARTFILE_SPEC): Add if-exists(crti%O%s). (ENDFILE_SPEC): Add if-exists(crtn%O%s). * config/alpha/netbsd.h (ENDFILE_SPEC): Likewise. * doc/invoke.texi: Document spec functions. * cppspec.c (lang_specific_spec_functions): New. * gccspec.c: Likewise. * g++spec.c (lang_specific_spec_functions): New. * g77spec.c (lang_specific_spec_functions): New. * jvspec.c (lang_specific_spec_functions): New. From-SVN: r59241
2002-11-18re PR java/7912 (invalid verification error for arrays)Tom Tromey6-16/+44
Fix for PR java/7912: * expr.c (can_widen_reference_to): Allow cast of array to Cloneable or Serializable. * java-tree.h (java_lang_cloneable_identifier_node): Declare. (java_io_serializable_identifier_node): Likewise. * parse.y (java_lang_cloneable, java_io_serializable): Removed. (valid_ref_assignconv_cast_p): Use new identifier nodes. * lex.c (java_init_lex): Don't initialize java_lang_cloneable and java_io_serializable. * decl.c (java_init_decl_processing): Initialize java_lang_cloneable_identifier_node and java_io_serializable_identifier_node. (java_lang_cloneable_identifier_node): New global. (java_io_serializable_identifier_node): Likewise. From-SVN: r59227
2002-11-18buffer.c: Remove unnecessary casts.Jens-Michael Hoffmann15-62/+73
2002-11-14 Jens-Michael Hoffmann <jensmh@gmx.de> * buffer.c: Remove unnecessary casts. * check-init.c: Likewise. * class.c: Likewise. * constants.c: Likewise. * decl.c: Likewise. * except.c: Likewise. * gjavah.c: Likewise. * jcf-io.c: Likewise. * jcf-parse.c: Likewise. * jcf-path.c: Likewise. * jvspec.c: Likewise. * lang.c: Likewise. * lex.c: Likewise. * verify.c: Likewise. From-SVN: r59224
2002-11-06gjavah.c (print_stub_or_jni): Include JNIEXPORT and JNICALL in a JNI header.Tom Tromey2-1/+9
* gjavah.c (print_stub_or_jni): Include JNIEXPORT and JNICALL in a JNI header. From-SVN: r58867
2002-11-06re PR java/6388 (Integer.MIN_VALUE == 0x80000000 optimized to false on powerpc)Tom Tromey5-42/+67
Fix for PR java/6388. * lex.h (JAVA_INTEGRAL_RANGE_ERROR): Wrap in do...while. * java-tree.h (enum java_tree_index): New values JTI_DECIMAL_INT_MAX_NODE, JTI_DECIMAL_LONG_MAX_NODE. (decimal_int_max, decimal_long_max): New defines. * lex.c (yylex): Rewrote range checking. Sign extend literals. (error_if_numeric_overflow): Rewrote range checking. * decl.c (java_init_decl_processing): Initialize decimal_int_max, decimal_long_max. From-SVN: r58843
2002-11-02* java-tree.h: Move JV_STATE_ERROR before JV_STATE_DONE.Tom Tromey2-2/+5
From-SVN: r58762
2002-11-02re PR java/8415 (reflection bug: exception info for Method)Tom Tromey2-1/+6
* class.c (make_method_value): Put class name, not signature, into `throws' field. For PR java/8415. From-SVN: r58758