aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2005-08-17class.c (make_class_data): Always emit JV_STATE_PRELOADING for class' ↵Tom Tromey2-0/+12
initial state. gcc/java: * class.c (make_class_data): Always emit JV_STATE_PRELOADING for class' initial state. libjava: * java/lang/Class.h (_Jv_IsBinaryCompatibilityABI): Declare as friend. * include/jvm.h (_Jv_IsBinaryCompatibilityABI): New function. * testsuite/libjava.lang/bclink.java: New file. * testsuite/libjava.lang/bclink.out: New file. * link.cc (print_class_loaded): Changed ABI test to look at various _syms fields. From-SVN: r103225
2005-08-17jacks.xfail: Remove 15.21-assoc-7, 15.21-assoc-8, 15.21-equal-3, ↵Andreas Tobler1-4/+0
15.28-string-11. 2005-08-17 Andreas Tobler <a.tobler@schweiz.ch> * testsuite/libjava.jacks/jacks.xfail: Remove 15.21-assoc-7, 15.21-assoc-8, 15.21-equal-3, 15.28-string-11. From-SVN: r103205
2005-08-16More testsuite adjustments for PR java/19870.Ranjit Mathew3-1/+45
* testsuite/libjava.lang/PR19870_2.java: New testcase. * testsuite/libjava.lang/PR19870_2.out: Expected output for the new testcase. * testsuite/libjava.jacks/jacks.xfail: Remove 8.5.2-non-static-member-usage-2 and add 15.12.3-explicit-constructor-9. From-SVN: r103165
2005-07-18Makefile.in: Rebuilt.Tom Tromey1-3/+5
* Makefile.in: Rebuilt. * Makefile.am ($(libgij_la_OBJECTS)): Depend on headers.stamp. From-SVN: r102139
2005-07-16Major merge with Classpath.Tom Tromey2-9/+7
Removed many duplicate files. * HACKING: Updated.x * classpath: Imported new directory. * standard.omit: New file. * Makefile.in, aclocal.m4, configure: Rebuilt. * sources.am: New file. * configure.ac: Run Classpath configure script. Moved code around to support. Disable xlib AWT peers (temporarily). * Makefile.am (SUBDIRS): Added 'classpath' (JAVAC): Removed. (AM_CPPFLAGS): Added more -I options. (BOOTCLASSPATH): Simplified. Completely redid how sources are built. Include sources.am. * include/Makefile.am (tool_include__HEADERS): Removed jni.h. * include/jni.h: Removed (in Classpath). * scripts/classes.pl: Updated to look at built classes. * scripts/makemake.tcl: New file. * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Added -I options. (gcj_jni_invocation_compile_c_to_binary): Likewise. From-SVN: r102082
2005-07-07re PR java/18119 (Private inner class is visible when it shouldn't be)Bryce McKinlay1-4/+0
2005-07-07 Bryce McKinlay <mckinlay@redhat.com> PR java/18119 * parse.y (inner_class_accessible): New function. Logic moved from check_inner_class_access. (check_inner_class_access): Use inner_class_accessible. (resolve_inner_class): Simplify arguments. Create circularity hash here. Keep looking for classes if we found one that was inaccessible. Return the inaccessible class only if there is no other match. (do_resolve_class): Update for new resolve_inner_class arguments. Don't create circularity_hash here. From-SVN: r101715
2005-07-07re PR java/21045 (Anonymous inner class constructor's exceptions can't be ↵Bryce McKinlay2-4/+11
caught or thrown) 2005-07-07 Bryce McKinlay <mckinlay@redhat.com> PR java/21045 * parse.y (add_exception_to_throws): New function. (purge_unchecked_exceptions): Removed. (get_constructor_super): Renamed from verify_constructor_super. Now returns the super constructor after verification. (java_complete_expand_method): Don't use purge_unchecked_exceptions or save/restore the exception list. (check_thrown_exceptions): Add uncaught exceptions in anonymous class initializers and constructors to the throws clause of the method. 2005-07-07 Bryce McKinlay <mckinlay@redhat.com> * testsuite/libjava.compile/PR21045.java: New test. * testsuite/libjava.jacks/jacks.xfail: Remove 15.9.5.1-exception-1, 15.9.5.1-exception-3, 8.3.2-abrupt-6, 8.3.2-abrupt-7. From-SVN: r101713
2005-07-06* testsuite/libjava.jacks/jacks.xfail: Removed 9.1.3-body-5.Tom Tromey1-1/+0
From-SVN: r101657
2005-07-05re PR java/19674 (Empty declaration through semicolon (;) causes compile ↵Bryce McKinlay1-0/+7
failure) 2005-07-05 Bryce McKinlay <mckinlay@redhat.com> PR java/19674 * parse.y (interface_member_declaration): Allow empty statements in interface declarations. 2005-07-05 Bryce McKinlay <mckinlay@redhat.com> * testsuite/libjava.compile/PR19674.java: New test. From-SVN: r101634
2005-06-29re PR libgcj/22211 ([4.0 only] Thread.interrupt sometimes causes abort if ↵Tom Tromey1-0/+8
thread is already dead) PR libgcj/22211: * testsuite/libjava.lang/pr22211.java: New file. * java/lang/natThread.cc (finish_): Synchronize when updating alive_flag. (_Jv_AttachCurrentThread): Likewise. (interrupt): Only call _Jv_ThreadInterrupt if thread is alive. * java/lang/Thread.java (isAlive): Now synchronized. From-SVN: r101430
2005-06-27PR java/21540, PR java/13788:Tom Tromey3-19/+23
gcc/java/: PR java/21540, PR java/13788: * parse.y (java_complete_lhs) <CASE_EXPR>: Use fold_constant_for_init. (patch_binop): Added 'folding' argument. Updated all callers. (patch_unaryop) <NOP_EXPR>: New case. (fold_constant_for_init) <NOP_EXPR>: Likewise. (fold_constant_for_init) <COND_EXPR>: Fix sense of test. libjava/: PR java/21540, PR java/13788: * testsuite/libjava.compile/pr21540.java: New file. * testsuite/libjava.compile/pr13788.java: New file. * testsuite/libjava.jacks/jacks.xfail: Updated. From-SVN: r101358
2005-06-26xfails: Updated to reflect current state of mauve and libjava.Andreas Tobler1-144/+0
2005-06-26 Andreas Tobler <a.tobler@schweiz.ch> * testsuite/libjava.mauve/xfails: Updated to reflect current state of mauve and libjava. From-SVN: r101337
2005-06-23re PR java/20697 (Invalid Can't find method error on call to super)Bryce McKinlay1-0/+29
PR java/20697 * parse.y (find_most_specific_methods_list): Remove special case for inner classes. From-SVN: r101270
2005-06-16configure.ac (USING_ECOS_PLATFORM): Remove and merge into...Kelley Cook1-2/+0
2005-06-15 Kelley Cook <kcook@gcc.gnu.org> * configure.ac (USING_ECOS_PLATFORM): Remove and merge into... (USING_POSIX_PLATFORM): ... here. * Makefile.am: Delete USING_ECOS_PLATFORM. * configure, Makefile.in, include/Makefile.in, testsuite/Makefile.in, external/Makefile.in, external/sax/Makefile.in, external/w3c_dom/Makefile.in, gcj/Makefile.in: Regenerate. From-SVN: r101005
2005-06-15re PR libgcj/17536 (wrong ClassLoader for int[])Tom Tromey2-0/+6
PR libgcj/17536: * testsuite/libjava.lang/pr17536.java: New file. * testsuite/libjava.lang/pr17536.out: New file. From-SVN: r100999
2005-06-14re PR libgcj/19877 (sometimes reconfiguring leads to incorrect config.h)Tom Tromey1-0/+2
config/: PR libgcj/19877: * no-executables.m4: Call real AC_FUNC_MMAP when cache variable is set but not 'no'. libstdc++-v3/: PR libgcj/19877: * configure, aclocal.m4: Rebuilt. * Makefile.in, include/Makefile.in, libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in, src/Makefile.in, testsuite/Makefile.in: Likewise. libjava/: PR libgcj/19877: * configure, aclocal.m4, Makefile.in: Rebuilt. libgfortran/: PR libgcj/19877: * configure, aclocal.m4, Makefile.in: Rebuilt. zlib/: PR libgcj/19877: * configure, aclocal.m4, Makefile.in: Rebuilt. From-SVN: r100953
2005-06-13re PR java/21844 (miscompilation of LinkedHashMap)Tom Tromey2-0/+34
PR java/21844: * testsuite/libjava.lang/pr21844.java: New file. * testsuite/libjava.lang/pr21844.out: New file. From-SVN: r100894
2005-06-02jawt.c: Remove malloc.h, covered by stdlib.h.Andreas Tobler1-1/+1
2005-06-03 Andreas Tobler <a.tobler@schweiz.ch> * jawt.c: Remove malloc.h, covered by stdlib.h. * testsuite/libjava.jni/jni.exp (gcj_jni_invocation_compile_c_to_binary): Add -bind_at_load to silence the build process. From-SVN: r100504
2005-06-01re PR libgcj/21785 (ClassNotFound during deserialization)Tom Tromey2-0/+21
PR libgcj/21785: * java/io/natObjectInputStream.cc (currentClassLoader): Removed. (currentLoader): New method. * java/io/ObjectInputStream.java (resolveProxyClass): Use currentLoader. (currentLoader): Now native. (currentClassLoader): Removed. * testsuite/libjava.lang/pr21785.java: New file. * testsuite/libjava.lang/pr21785.out: New file. From-SVN: r100462
2005-05-27Testsuite adjustments for PR java/19870.Ranjit Mathew3-0/+54
* testsuite/libjava.lang/PR19870.java: New testcase. * testsuite/libjava.lang/PR19870.out: Expected output for the testcase. * testsuite/libjava.jacks/jacks.xfail: Add 8.5.2-accessible-static-member-usage-3 and 15.8.4-static-2 From-SVN: r100245
2005-05-21* testsuite/libjava.jacks/jacks.xfail: Remove 3.10.2-round-6.Ranjit Mathew1-1/+0
From-SVN: r100044
2005-05-18configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.Kelley Cook1-2/+1
2005-05-17 Kelley Cook <kcook@gcc.gnu.org> * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS. Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF. * aclocal.m4, configure, config.h.in, include/config.h.in, Makefile.in, include/Makefile.in, testsuite/Makefile.in, external/Makefile.in, external/sax/Makefile.in, external/w3c_dom/Makefile.in, gcj/Makefile.in: Regenerate. From-SVN: r99880
2005-05-18re PR libgcj/18220 (Test case libjava.lang/Process_3 does not end if "sed" ↵David Daney1-0/+1
not available) 2005-05-17 David Daney <ddaney@avtrex.com> PR libgcj/18220 * testsuite/libjava.lang/Process_3.java (run): Exit on error. From-SVN: r99877
2005-05-17configure.ac (--enable-libgcj-multifile): Remove.Paolo Bonzini1-2/+0
2005-05-11 Paolo Bonzini <bonzini@gnu.org> * configure.ac (--enable-libgcj-multifile): Remove. * Makefile.am (all_native_compiled_source_files, (all_native_compiled_dirs, all_java_dirs, all_java_lo_files, all_libgcj_lo_files, all_xlib_lo_files, all_java_deps_files, all_java_stamp_files, all_java_filelist_files): New variables. (EXTRA_DIST): New Automake variable. (CLEANFILES): Add .stamp, .list and .lo files. (%.list, %.lo, %.stamp, Makefile.deps): New rules. (classes.stamp): Depend on $(all_java_stamp_files). (libgcj.la): Pass $(libgcj_la_LIBADD) to the linker without going through write_entries_to_file. (all_java_source_files, all_property_files): Move earlier. (libgcj_la_OBJECTS, javao_files, xlib_javao_files, all_java_class_files): Remove. (gtk_awt_peer_sources): Rename to... (gtk_awt_peer_source_files): ... this. Adjust throughout. (ONESTEP): Remove. (libgcj0_convenience_la_SOURCES): Remove Java source files. (libgcj0_convenience_la_LIBADD): Add $(all_libgcj_lo_files). (libgcj0_convenience_la_DEPENDENCIES): Likewise. (libgcj_la_SOURCES): Remove. (lib_gnu_awt_xlib_la_SOURCES): Remove Java source files. (lib_gnu_awt_xlib_la_LIBADD): Add $(all_xlib_lo_files). (lib_gnu_awt_xlib_la_DEPENDENCIES): Likewise. * configure: Regenerate. * Makefile.in: Regenerate. * external/Makefile.in: Regenerate. * external/sax/Makefile.in: Regenerate. * external/w3c_dom/Makefile.in: Regenerate. * gcj/Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * libltdl/Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. From-SVN: r99823
2005-05-15re PR java/21519 (ICE in generate_bytecode_conditional, at ↵Tom Tromey2-0/+8
java/jcf-write.c:1337) gcc/java: PR java/21519: * jcf-write.c (generate_bytecode_insns) <SAVE_EXPR>: Don't call NOTE_PUSH. libjava: PR java/21519: * testsuite/libjava.compile/pr21519.java: New file. * testsuite/libjava.compile/pr21519.no-link: New file. From-SVN: r99739
2005-05-10re PR java/21436 (imports not remembered for previously compiled files)Paolo Bonzini1-2/+2
gcc/java: 2005-05-10 Paolo Bonzini <bonzini@gnu.org> PR java/21436 * class.c (maybe_layout_super_class): Look for imports in this_class. * parse.h (ctxp_for_generation_last): New. (do_resolve_class): Add a parameter. * parse.y (ctxp_for_generation_last): New. (java_pop_parser_context): Add at end of list. (find_in_imports, find_in_imports_on_demand): Look in ctxp if the TYPE_IMPORT_LIST or respectively the TYPE_IMPORT_DEMAND_LIST of the given type are NULL. (do_resolve_class): Look into the imports of the new second parameter. Adjust recursive calls. (resolve_class, resolve_inner_class, find_as_inner_class): Adjust calls to do_resolve_class. (create_class): Set the TYPE_IMPORT_LIST and TYPE_IMPORT_DEMAND_LIST. (java_complete_class): Do not do that here. libjava: 2005-05-10 Paolo Bonzini <bonzini@gnu.org> PR java/21436 * testsuite/libjava.jacks/jacks.xfail: Adjust. From-SVN: r99513
2005-05-09libjava.exp (libjava_find_gij): Use $objdir/..Bryce McKinlay1-0/+4
2005-04-22 Bryce McKinlay <mckinlay@redhat.com> * testsuite/lib/libjava.exp (libjava_find_gij): Use $objdir/.. to find gij if get_multilibs fails. From-SVN: r99448
2005-04-21re PR java/21115 (false boolean argument passed from pre-compiled to ↵Anthony Green4-0/+84
interpreted method is true) 2005-04-21 Anthony Green <green@redhat.com> PR libgcj/21115 * testsuite/libjava.special/special.exp, testsuite/libjava.special/pr21115I.java, testsuite/libjava.special/pr21115.java, testsuite/libjava.special/pr21115.out: New files. From-SVN: r98511
2005-04-06bytearray.java: New file.Andrew Haley2-0/+12
2005-04-06 Andrew Haley <aph@redhat.com> * testsuite/libjava.lang/bytearray.java: New file. * testsuite/libjava.lang/bytearray.out: New file. * java/lang/ClassLoader.java (loadClassFromSig): Declare (loadClass): Use it. * java/lang/natClassLoader.cc (loadClassFromSig): New method. From-SVN: r97756
2005-04-05re PR libgcj/20750 (libgcj needs a --with-java-home configure option)Thomas Fitzsimmons1-0/+3
2005-04-05 Thomas Fitzsimmons <fitzsim@redhat.com> * doc/install.texi (Configuration): Document --with-java-home. 2005-04-05 Thomas Fitzsimmons <fitzsim@redhat.com> PR libgcj/20750 * Makefile.am (AM_CXXFLAGS): Define JAVA_HOME. * Makefile.in: Regenerate. * configure.ac: Add --with-java-home option. * configure: Regenerate. * external/Makefile.in: Regenerate. * external/sax/Makefile.in: Regenerate. * external/w3c_dom/Makefile.in: Regenerate. * gcj/Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. * java/lang/natRuntime.cc (insertSystemProperties): Set java.home to JAVA_HOME macro. From-SVN: r97671
2005-03-28jni.exp (gcj_jni_invocation_test_one): Add libsocket to the libraries to ↵Eric Botcazou1-0/+4
link for Solaris. * testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one): Add libsocket to the libraries to link for Solaris. From-SVN: r97130
2005-03-24Makefile.in: Rebuilt.Tom Tromey1-2/+2
* Makefile.in: Rebuilt. * Makefile.am (AM_CXXFLAGS): Define TOOLEXECLIBDIR. (libgcj0_convenience_la_SOURCES): Don't include gnu_xml_source_files. (libgcj0_convenience_la_LIBADD): New variable. (libgcj_la_LIBADD): Don't include sax or w3c_dom. (all_java_source_files): javax_imageio_source_files, javax_xml_source_files, and gnu_java_beans_source_files. ($(gnu_xml_source_files:.java=.lo)): Removed target. (gnu-xml.lo): New target. (javax-imageio.lo): Likewise. (javax-xml.lo): Likewise. (gnu-java-beans.lo): Likewise. (gnu_java_beans_source_files): New variable. (javax_imageio_source_files): Likewise. (javax_xml_source_files): Likewise. (javax_source_files): Moved files to other variable. (awt_java_source_files): Likewise. (ordinary_java_source_files): Added BootClassLoader.java. * java/lang/natVMClassLoader.cc (defineClass): Use boot loader, not system class loader. (initBootLoader): New method. (loadClass): Search bootLoader. * java/lang/natClassLoader.cc (_Jv_RegisterInitiatingLoader): Use boot loader, not system class loader. (_Jv_UnregisterInitiatingLoader): Likewise. (_Jv_FindClass): Likewise. Ensure entries in bootstrap_class_list are unique. * java/lang/natClass.cc (getClassLoader): Don't special case system class loader. * java/lang/VMClassLoader.java (bootLoader): New field. (getResource): Use bootLoader. (getResources): Likewise. (initBootLoader): Declare. * gnu/gcj/runtime/BootClassLoader.java: New file. * external/sax/org/xml/sax/helpers/NamespaceSupport.java (EMPTY_ENUMERATION): Now package-private. * external/w3c_com/Makefile.in: Rebuilt. * external/w3c_com/Makefile.am (MULTIBUILDTOP): New variable. (w3c.jar): New target. (classes.stamp): Updated. (toolexeclib_LTLIBRARIES): Renamed from noinst_LTLIBRARIES. Changed name of library. (libw3c_gcj_la_SOURCES): New variable. (libw3c_gcj_la_GCJFLAGS): Likewise. (source_files): Renamed from lib3c_convenience_la_SOURCES. * external/sax/Makefile.in: Rebuilt. * external/sax/Makefile.am (MULTIBUILDTOP): New variable. (sax.jar): New target. (classes.stamp): Updated. (toolexeclib_LTLIBRARIES): Renamed from noinst_LTLIBRARIES. Changed name of library. (libsax_gcj_la_SOURCES): New variable. (libsax_gcj_la_GCJFLAGS): Likewise. (source_files): Renamed from libsax_convenience_la_SOURCES. * stacktrace.cc (non_system_trace_fn): Don't look at system class loader. * prims.cc (_Jv_CreateJavaVM): Initialize the bootstrap class loader. (_Jv_RunMain): Handle case where 'runtime' is NULL at exit. From-SVN: r96960
2005-03-21gxx-include-dir.m4: In all substitutions, leave $(gcc_version) to be ↵Zack Weinberg2-8/+8
expanded by the Makefile. config: * gxx-include-dir.m4: In all substitutions, leave $(gcc_version) to be expanded by the Makefile. libjava: * configure.ac: Do not invoke TL_AC_GCC_VERSION. Do not set tool_include_dir. In all substitutions, leave $(gcc_version) to be expanded by the Makefile. * aclocal.m4, configure: Regenerate. * Makefile.am: Set gcc_version. Replace all uses of @gcc_version@ with $(gcc_version). * external/Makefile.am, external/sax/Makefile.am * external/w3c_dom/Makefile.am, gcj/Makefile.am * testsuite/Makefile.am: Set gcc_version. * include/Makefile.am: Set gcc_version and tool_include_dir. * Makefile.in, external/Makefile.in, external/sax/Makefile.in * external/w3c_dom/Makefile.in, gcj/Makefile.in, include/Makefile.in * testsuite/Makefile.in: Regenerate. From-SVN: r96825
2005-03-17Makefile.am (gtk_c_source_files): Remove jni/classpath/jcl.c, ↵Thomas Fitzsimmons1-4/+5
jni/classpath/jnilink.c, jni/classpath/primlib.c. 2005-03-16 Thomas Fitzsimmons <fitzsim@redhat.com> * Makefile.am (gtk_c_source_files): Remove jni/classpath/jcl.c, jni/classpath/jnilink.c, jni/classpath/primlib.c. (lib_gnu_java_awt_peer_gtk_la_SOURCES): jni/classpath/jcl.h, jni/classpath/jnilink.h, jni/classpath/primlib.h. * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * external/Makefile.in: Regenerate. * external/sax/Makefile.in: Regenerate. * external/w3c_dom/Makefile.in: Regenerate. * gcj/Makefile.in: Regenerate. * include/Makefile.in: Regenerate. * testsuite/Makefile.in: Regenerate. * jni/classpath/jcl.h: Remove. * jni/classpath/jcl.c: Likewise. * jni/classpath/jnilink.h: Remove. * jni/classpath/jnilink.c: Likewise. * jni/classpath/primlib.h: Remove. * jni/classpath/primlib.c: Likewise. From-SVN: r96590
2005-03-16jni.exp (gcj_jni_invocation_test_one): Add lgcc_s to the libraries to link ↵Andreas Tobler1-1/+3
for Darwin. 2005-03-16 Andreas Tobler <a.tobler@schweiz.ch> * testsuite/libjava.jni/jni.exp (gcj_jni_invocation_test_one): Add lgcc_s to the libraries to link for Darwin. From-SVN: r96579
2005-03-12jacks.xfail: Add XFAILs for new JSR-201 tests.Ranjit Mathew1-0/+5
* testsuite/libjava.jacks/jacks.xfail: Add XFAILs for new JSR-201 tests. From-SVN: r96327
2005-03-11libjava.exp (libjava_init): Use the same target check for Darwin.Andreas Tobler2-8/+17
2005-03-11 Andreas Tobler <a.tobler@schweiz.ch> * testsuite/lib/libjava.exp (libjava_init): Use the same target check for Darwin. (libjava_arguments): Likewise. * testsuite/libjava.jni/jni.exp (gcj_jni_compile_c_to_so): Likewise. (gcj_jni_test_one): Likewise. (gcj_jni_invocation_compile_c_to_binary): Likewise. Add flags to keep the Darwin linker quiet. (gcj_jni_invocation_test_one): Use the same target check for Darwin. Add -liconv for Darwin. From-SVN: r96311
2005-03-10re PR java/20312 (No warning on bad method)Ranjit Mathew3-1/+9
* testsuite/libjava.compile/PR20312.java: New file. * testsuite/libjava.compile/PR20312.xfail: Likewise. * testsuite/libjava.jacks/jacks.xfail: Remove 9.2-implicit-15. From-SVN: r96252
2005-03-08[multiple changes]Bryce McKinlay2-2/+0
2005-03-07 Ranjit Mathew <rmathew@hotmail.com> * lang.c (flag_new_verifier): Enable by default, regardless of ABI. 2005-03-08 Bryce McKinlay <mckinlay@redhat.com> * testsuite/libjava.lang/pr13107_2.xfail: Remove xfail. * testsuite/libjava.lang/pr13107_3.xfail: Likewise. From-SVN: r96114
2005-03-03re PR libgcj/20292 (new test case PR16923 fails)Thomas Fitzsimmons1-1/+4
2005-03-03 Thomas Fitzsimmons <fitzsim@redhat.com> PR libgcj/20292 * testsuite/libjava.jni/jni.exp (gcj_jni_invocation_compile_c_to_binary): Add -I. -I.. to compile flags. (gcj_jni_invocation_test_one): Add -L../.libs to cxx flags. From-SVN: r95848
2005-02-28re PR bootstrap/17383 (Building in src dir fails)Paolo Bonzini1-1/+3
2005-05-25 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/17383 * Makefile.def (target_modules): Remove "stage", now unnecessary. * Makefile.tpl (HOST_SUBDIR): New substitution. (STAGE_HOST_EXPORTS, EXPECT, HOST_LIB_PATH, USUAL_AR_FOR_TARGET, USUAL_AS_FOR_TARGET, USUAL_DLLTOOL_FOR_TARGET, USUAL_GCC_FOR_TARGET, USUAL_LD_FOR_TARGET, USUAL_NM_FOR_TARGET, USUAL_OBJDUMP_FOR_TARGET, USUAL_RANLIB_FOR_TARGET, USUAL_WINDRES_FOR_TARGET): Use it. (Host modules, Bootstrapped modules): Use it. (Build modules, Target modules): Do not create symlink trees, always configure out-of-srcdir. (distclean): Try removing $(host_subdir) with rm before using rm -rf. * configure.in (FLAGS_FOR_TARGET, CC_FOR_TARGET, GCJ_FOR_TARGET, GFORTRAN_FOR_TARGET, CXX_FOR_TARGET, RAW_CXX_FOR_TARGET): Use $(HOST_SUBDIR). Create a symlink for host_subdir. * Makefile.in: Regenerate. * configure: Regenerate. config: 2005-05-25 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/17383 * config/acx.m4 (GCC_TOPLEV_SUBDIRS): Set HOST_SUBDIR if an in-src gcc build is going. gcc: 2005-05-25 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/17383 * gcc/Makefile.in (host_subdir): New. (build_objdir): New. Replace ../$(build_subdir) with it throughout. * gcc/configure: Regenerate. libada: 2005-05-25 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/17383 * Makefile.in (GCC_DIR): Add $(HOST_SUBDIR) to the definition. libjava: 2005-05-25 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/17383 * configure.ac: Call GCC_TOPLEV_SUBDIRS. (COMPPATH): Removed. (ZIP, GCJH): Replace it with ../$(host_subdir). (built_gcc_dir): Add $(host_subdir). * configure: Regenerate. * Makefile.in, include/Makefile.in, testsuite/Makefile.in, gcj/Makefile.in, external/Makefile.in, external/sax/Makefile.in, external/w3c_dom/Makefile.in: Regenerate. libobjc: 2005-05-25 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/17383 * configure.ac: Call GCC_TOPLEV_SUBDIRS. (Determine CFLAGS for gthread): Use $host_subdir. * configure: Regenerate. * Makefile.in (host_subdir): New. (INCLUDES): Use it. From-SVN: r95680
2005-02-23re PR libgcj/16923 (-D* Options passed to JNI_CreateJavaVM are ignored)Thomas Fitzsimmons4-0/+137
2005-02-23 Thomas Fitzsimmons <fitzsim@redhat.com> PR libgcj/16923 * gcj.texi (Invocation): Add descriptions of JvVMInitArgs and JvVMOption. 2005-02-23 Thomas Fitzsimmons <fitzsim@redhat.com> PR libgcj/16923 * jni.cc (JNI_CreateJavaVM): Check JNI version. Cast args to JvVMInitArgs. Pass args to _Jv_CreateJavaVM and check return value. Move argument parsing code to prims.cc. * prims.cc (no_properties): Remove. (_Jv_Compiler_Properties): Initialize to NULL. (_Jv_Properties_Count): Initialize to 0. (parse_verbose_args): New function. (parse_init_args): New function. (_Jv_CreateJavaVM): Call parse_init_args. (_Jv_RunMain): Check return value of _Jv_CreateJavaVM. * gcj/cni.h (JvVMOption): New struct. (JvVMInitArgs): Likewise. (JvCreateJavaVM): Declare vm_args as JvVMInitArgs* rather than void*. * libjava/gcj/javaprims.h (_Jv_VMOption): New struct. (_Jv_VMInitArgs): Likewise. * include/java-props.h (_Jv_Properties_Count): Declare. * java/lang/natRuntime.cc (insertSystemProperties): Use _Jv_Properties_Count in for loop exit condition. * testsuite/libjava.jni/jni.exp (gcj_invocation_compile_c_to_binary): New procedure. (gcj_invocation_test_one): Likewise. (gcj_jni_run): Run JNI invocation API tests. * testsuite/libjava.jni/invocation/PR16923.c, testsuite/libjava.jni/invocation/PR16923.java, testsuite/libjava.jni/invocation/PR16923.out: New test. From-SVN: r95459
2005-02-19re PR java/20056 ('verification failed: incompatible type on stack' with ↵Tom Tromey2-0/+14
--indirect-dispatch) PR java/20056: * verify.cc (type::equals): Fixed test. * testsuite/libjava.lang/PR20056.out: New file. * testsuite/libjava.lang/PR20056.java: New file. From-SVN: r95266
2005-02-14* testsuite/libjava.lang/PR19921.java: Use correct class name.Tom Tromey1-1/+1
From-SVN: r95046
2005-02-14re PR java/19921 (wrong argument count for invokeInterface with new ↵Tom Tromey2-0/+0
multidimensional array) * testsuite/libjava.lang/PR19921.out: Renamed from PR19929.out. * testsuite/libjava.lang/PR19921.java: Renamed from PR19929.java. From-SVN: r95045
2005-02-14re PR java/19921 (wrong argument count for invokeInterface with new ↵Tom Tromey2-0/+11
multidimensional array) gcc/java: PR java/19921: * jcf-write.c (generate_bytecode_insns) <CALL_EXPR>: Note the stack effect of multianewarray. libjava: For PR java/19929: * testsuite/libjava.lang/PR19929.out: New file. * testsuite/libjava.lang/PR19929.java: New file. From-SVN: r95041
2005-02-14re PR libgcj/18116 (JNI uses dot instead of slash as the package separator)Anthony Green3-0/+52
2005-02-14 Anthony Green <green@redhat.com> PR libgcj/18116 * testsuite/libjava.jni/PR18116.c: New file. * testsuite/libjava.jni/PR18116.java: New file. * testsuite/libjava.jni/PR18116.out: New file. From-SVN: r95014
2005-02-10xfails: Updated to reflect current state of mauve and libjava.Bryce McKinlay1-14/+576
2005-02-10 Bryce McKinlay <mckinlay@redhat.com> * testsuite/libjava.mauve/xfails: Updated to reflect current state of mauve and libjava. From-SVN: r94798
2005-01-26re PR java/19070 (internal compiler error: in generate_bytecode_conditional, ↵Ranjit Mathew1-15/+3
at java/jcf-write.c:1271) * testsuite/libjava.jacks/jacks.xfail: Update for PR java/19070, remove other passing tests and add new XFAILs. From-SVN: r94246
2005-01-24re PR java/19295 (Incorrect bytecode produced for bitwise AND)Roger Sayle1-0/+16
PR java/19295 * jcf-write.c (generate_bytecode_insns): Conversions between integer types of the same precision shouldn't generate widening or narrowing conversion bytecodes. * testsuite/libjava.compile/PR19295.java: New test case. From-SVN: r94162