summaryrefslogtreecommitdiff
path: root/libjava
Commit message (Collapse)AuthorAgeFilesLines
* configure: Rebuilt.Tom Tromey2001-06-083-242/+242
| | | | | | | * configure: Rebuilt. * configure.in: Compute new aux dir using `pwd'. From-SVN: r43064
* re PR libgcj/2874 (libjava testsuite disk space usage)Tom Tromey2001-06-083-23/+89
| | | | | | | | | | | | Fix for PR libgcj/2874: * libjava.mauve/mauve.exp (gcj_run_mauve_tests): New proc. (test_mauve): Return 0 on failure. * lib/libjava.exp (test_libjava_from_source): Remove generated files if test is successful. (test_libjava_from_javac): Likewise. (gcj_cleanup): New proc. From-SVN: r43050
* re PR libgcj/3059 (System doesn't set java.home property)Tom Tromey2001-06-084-4/+16
| | | | | | | | | Fix for PR libgcj/3059: * java/lang/natSystem.cc (init_properties): Define `java.home'. * Makefile.in: Rebuilt. * Makefile.am (AM_CXXFLAGS): Define PREFIX. From-SVN: r43040
* For PR bootstrap/3075:Tom Tromey2001-06-0810-450/+475
| | | | | | | | | | | | | | * configure, aclocal.m4, Makefile.am: Rebuilt. * configure.in: Pass `--with-auxdir' to subdir configure. Don't call AC_CONFIG_AUX_DIR or AC_CANONICAL_SYSTEM. Look for unwind.h relative to libgcj_basedir. * acinclude.m4 ((LIBGCJ_CONFIGURE): Call AC_CONFIG_AUX_DIR and AC_CANONICAL_SYSTEM here. * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Use srcdir, not libgcj_basedir. ($(extra_headers)): New target. From-SVN: r43034
* libjava.exp (libjava_arguments): Build with `-no-install' when $mode == "link".Jeff Sturm2001-06-062-0/+10
| | | | | | | * lib/libjava.exp (libjava_arguments): Build with `-no-install' when $mode == "link". From-SVN: r42928
* natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors table index is ↵Martin Kahlert2001-06-052-6/+25
| | | | | | | | | | | | | | | | | within allowed bounds. 2001-06-05 Martin Kahlert <martin.kahlert@infineon.com> Bryce McKinlay <bryce@waitaki.otago.ac.nz> * java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors table index is within allowed bounds. Ensure that we dont try to access class itable at a negative offset. Avoid an ancestor table lookup if source is a primitive type class. (isInstance): Remove redundant isPrimitive() check. Co-Authored-By: Bryce McKinlay <bryce@waitaki.otago.ac.nz> From-SVN: r42898
* PublicKey.java: Extend Key.Tom Tromey2001-06-043-4/+9
| | | | | | | * java/security/PublicKey.java: Extend Key. * java/security/PrivateKey.java: Extend Key. From-SVN: r42886
* !defined(USE_LTDL) fixAnthony Green2001-06-022-0/+13
| | | | From-SVN: r42813
* Remove libgcjdata hack. Fix jv-scan usage in dejagnu.Anthony Green2001-06-0210-147/+60
| | | | From-SVN: r42812
* Fake a PASS for targets which don't support invocation.Anthony Green2001-06-022-0/+11
| | | | From-SVN: r42792
* USE_LIBFFI changeAnthony Green2001-06-0211-323/+390
| | | | From-SVN: r42791
* Check for sigaction.Anthony Green2001-06-024-297/+291
| | | | From-SVN: r42790
* natFile.cc (get_entry): Removed functions.Jeff Sturm2001-06-012-25/+15
| | | | | | | | * natFile.cc (get_entry): Removed functions. (performList): Call readdir or readdir_r if HAVE_READDIR_R defined. Allocate enough storage for d_name if using readdir_r. From-SVN: r42767
* natFileDescriptorPosix.cc (open): Allocate buffer to correct size.Tom Tromey2001-05-312-21/+37
| | | | | | | | * java/io/natFileDescriptorPosix.cc (open): Allocate buffer to correct size. (write): Loop until write completes. From Corey Minyard. From-SVN: r42749
* Rectangle2D.java: fix doc typo.Laurent Guerby2001-05-312-1/+5
| | | | | | | | 2001-05-29 Laurent Guerby <guerby@acm.org> * java/awt/geom/Rectangle2D.java: fix doc typo. From-SVN: r42746
* DriverManager.java (getDrivers): Handle case where driver's class loader is ↵Tom Tromey2001-05-312-3/+13
| | | | | | | | | null. * java/sql/DriverManager.java (getDrivers): Handle case where driver's class loader is null. From Corey Minyard. From-SVN: r42745
* invokethrow.out: New file.Tom Tromey2001-05-303-0/+35
| | | | | | | * libjava.lang/invokethrow.out: New file. * libjava.lang/invokethrow.java: New file. From-SVN: r42711
* * include/jvm.h (_Jv_ThrowNoMemory): Mark as noreturn.Tom Tromey2001-05-292-1/+3
| | | | From-SVN: r42694
* configure: Rebuilt.Tom Tromey2001-05-293-6/+18
| | | | | | | | * configure: Rebuilt. * configure.in: Only add multilib support code if we just rebuilt top-level Makefile. From-SVN: r42693
* i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame pointer...Andrew Haley2001-05-296-183/+102
| | | | | | | | | | | | | | | | | | | | | | | | 2001-05-29 Andrew Haley <aph@redhat.com> * include/i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame pointer: the dwarf unwinder in libgcc will do everything that's needed. (HANDLE_DIVIDE_OVERFLOW): Tidy. Don't mess with stack frames any more than we absolutely need to. * configure.host (EXCEPTIONSPEC): Remove libgcj_sjlj on Alpha. * configure.in (SIGNAL_HANDLER): Use include/dwarf2-signal.h on Alpha. (SIGNAL_HANDLER): Test "$enable_sjlj_exceptions", not "$libgcj_sjlj". * configure: Rebuilt. * include/dwarf2-signal.h (MAKE_THROW_FRAME): Adjust PC for Alpha. (SIGNAL_HANDLER): Use siginfo style handler. (INIT_SEGV): Likewise. (INIT_FPE): Likewise. * include/ppc-signal.h: Delete whole file. From-SVN: r42691
* natString.cc (init): Throw ArrayIndexOutOfBoundsException.Tom Tromey2001-05-242-8/+16
| | | | | | | | | | * java/lang/natString.cc (init): Throw ArrayIndexOutOfBoundsException. (getChars): Likewise. (getBytes): Likewise. (valueOf): Likewise. From-SVN: r42531
* configure.in: Only allow hash synchronization when POSIX threads are enabled.Tom Tromey2001-05-244-232/+245
| | | | | | | | | * configure.in: Only allow hash synchronization when POSIX threads are enabled. * java/lang/natObject.cc (alloc_heavy): Properly find `init' field of sync info object. From-SVN: r42530
* Makefile.in: Rebuilt.Tom Tromey2001-05-243-2/+5
| | | | | | | * Makefile.in: Rebuilt. * Makefile.am (AM_CXXFLAGS): Remove -fvtable-thunks. From-SVN: r42521
* Revert patch of 2001-05-21:Tom Tromey2001-05-243-67/+1568
| | | | | | | | | * Makefile.am (libgcj_la_DEPENDENCIES): Removed nat_files. (libgcj_la_LIBADD): Likewise. (libgcjx_la_DEPENDENCIES): Removed x_nat_files. (libgcjx_la_LIBADD): Likewise. From-SVN: r42520
* [multiple changes]Tom Tromey2001-05-2425-428/+1890
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-05-23 Tom Tromey <tromey@redhat.com> * posix-threads.cc (_Jv_self_cache): Renamed from self_cache. * gcj/Makefile.in: Rebuilt. * gcj/Makefile.am (gcj_HEADERS): Added libgcj-config.h. * gcj/javaprims.h: Include gcj/libgcj-config.h. * gcj/libgcj-config.h.in: New file. * libgcj.spec.in (*jc1): Added @HASH_SYNC_SPEC@. * configure: Rebuilt. * configure.in: Enable hash synchronization by default on some platforms. (HASH_SYNC_SPEC): New subst. (AC_CONFIG_HEADER): Added gcj/libgcj-config.h. Correctly use `test -z' instead of `test -n' in a couple places. (JV_HASH_SYNCHRONIZATION): Use AC_DEFINE; don't add to LIBGCJ_CXXFLAGS. * configure.host (enable_java_net_default): Initialize. (enable_hash_synchronization_default): New variable. 2001-05-23 Hans Boehm <Hans_Boehm@hp.com> * boehm.cc (_Jv_MarkObj): Don't mark sync_info when hash synchronization in use. (_Jv_MarkArray): Likewise. (_Jv_AllocBytes): Don't check return result. (handle_out_of_memory): New function. (_Jv_InitGC): Set GC_oom_fn. (trace_one_vtable): New global. (_Jv_AllocTraceOne): New function. * configure.in: Added --enable-hash-synchronization. * defineclass.cc, prims.cc, resolve.cc, java/lang/natString.cc, java/net/natInetAddress.cc: Remove _Jv_AllocBytesChecked. * nogc.cc (_Jv_AllocObj): Throw out-of-memory. (_Jv_AllocArray): Likewise. (_Jv_AllocBytes): Likewise. (_Jv_AllocPtrFreeObject): New function. (_Jv_AllocTraceOne): Likewise. * posix-threads.cc (_Jv_ThreadRegister): Handle slow pthread_self(). (self_cache): New global. (_Jv_ThreadSelf_out_of_line): New function. * prims.cc (_Jv_AllocBytesChecked): Removed. (_Jv_ThrowNoMemory): New function. (_Jv_AllocObject): Don't check for null return from allocator. (_Jv_NewObjectArray): Likewise. (_Jv_AllocPtrFreeObject): New function. (_Jv_NewPrimArray): Allocate pointer-free object if possible. * include/javaprims.h (_Jv_AllocPtrFreeObject): Declare. (_Jv_MonitorEnter, _Jv_MonitorExit): Don't return value. * include/boehm-gc.h (_Jv_AllocObj): Define. (_Jv_AllocPtrFreeObj): Define. * include/jvm.h (_Jv_AllocPtrFreeObj): Declare. (_Jv_ThrowNoMemory): Declare. (_Jv_AllocTraceOne): Declare. (_Jv_AllocBytesChecked): Removed. * include/posix-threads.h (_Jv_MutexInit, _Jv_MutexLock, _Jv_MutexUnlock): Handle LOCK_DEBUG. (_Jv_ThreadSelf): Handle case where system pthread_self() is slow. * java/lang/Class.h (Class): Declare _Jv_AllocPtrFreeObj as friend. * java/lang/Object.h (sync_info): Conditional upon presence of hash synchronization. * java/lang/natObject.cc: Much new code to handle thin locks and hash synchronization. * java/lang/natString.cc (_Jv_AllocString): Allocate pointer-free object if possible. From-SVN: r42519
* jv-scan.c (version): Update copyright year.Joseph Myers2001-05-232-2/+6
| | | | | | | | | | gcc/java: * jv-scan.c (version): Update copyright year. libjava: * gij.cc (version): Update copyright year. From-SVN: r42505
* Fix cross builds.Anthony Green2001-05-233-304/+290
| | | | From-SVN: r42497
* Implement invocation interface; don't create new thread for main.Per Bothner2001-05-2122-1956/+472
| | | | From-SVN: r42428
* Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files).Per Bothner2001-05-212-5/+11
| | | | | | | | * Makefile.am (libgcj_la_DEPENDENCIES): Add $(nat_files). (libgcj_la_LIBADD): Likewise. (libgcjx_la_DEPENDENCIES, libgcjx_la_LIBADD): Add $(x_nat_files). From-SVN: r42424
* javaprims.h (_Jv_FormatInt): New declaration.Per Bothner2001-05-2110-40/+98
| | | | | | | | | | | | | | | * gcj/javaprims.h (_Jv_FormatInt): New declaration. * java/lang/natString.cc (_JvFormatInt): New primitive, with logic taken from old Integer.toString code. (Integer::valueOf): Use _Jv_FormatInt. * java/lang/Integer.java (toString): Just use call String.valueOf. * java/lang/Long.java (toString): Fix typo in comment. * java/lang/String.java (valueOf(int)): Make native. * java/lang/StringBuffer.java (append(int)): Make native. * java/lang/natStringBuffer.cc: New file, for append(jint). * Makefile.am (ant_source_files): Add java/lang/natStringBuffer.cc. From-SVN: r42419
* * gnu/gcj/runtime/VMClassLoader.java (VMClassLoader): Now public.Tom Tromey2001-05-212-2/+6
| | | | From-SVN: r42405
* dwarf2-signal.h: New file.Andrew Haley2001-05-215-283/+378
| | | | | | | | | | | 2001-05-18 Andrew Haley <aph@cambridge.redhat.com> * include/dwarf2-signal.h: New file. * configure.in (SYSDEP_SOURCES): Add dwarf2-signal.h for PPC. * configure.host (EXCEPTIONSPEC): Don't use sjlj on PPC. * configure: Rebuilt. From-SVN: r42400
* configure.in: Update boehm-gc include dir for new GC version.Bryce McKinlay2001-05-219-324/+313
| | | | | | | | | | | | | * configure.in: Update boehm-gc include dir for new GC version. * configure: Rebuilt. * exception.cc: Only include <gc.h>. Remove TRUE/FALSE hacks and extern "C" wrapper. * boehm.cc: Update includes for new GC version. MAKE_PROC is now GC_MAKE_PROC. mark_proc is now GC_mark_proc. * posix-threads.cc: Only include <gc.h>. Don't need to wrap with extern "C". From-SVN: r42380
* ltconfig, [...]: Upgraded to libtool 1.4a 1.641.2.254.Alexandre Oliva2001-05-201-283/+298
| | | | | | | | * ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh, ltcf-gcj.sh: Upgraded to libtool 1.4a 1.641.2.254. Rebuilt a number of subdir/configure scripts to use the new libtool.m4. From-SVN: r42351
* posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.'Alexandre Petit-Bianco2001-05-182-2/+7
| | | | | | | | | | | 2001-05-18 Alexandre Petit-Bianco <apbianco@redhat.com> * include/posix-threads.h (_Jv_CondInit): `0' used in place of `NULL.' (_Jv_MutexInit): Likewise. (http://gcc.gnu.org/ml/java-patches/2001-q2/msg00245.html ) From-SVN: r42303
* Makefile.in: Rebuilt.Tom Tromey2001-05-183-1/+8
| | | | | | | * Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added Polygon.java. From-SVN: r42276
* [multiple changes]Bryce McKinlay2001-05-185-7/+22
| | | | | | | | | | | | | | | | 2001-05-18 Bryce McKinlay <bryce@waitaki.otago.ac.nz> * include/jvm.h: Move "#pragma GCC java_exceptions" to ... * gcj/javaprims.h: ... here. * gnu/gcj/io/shs.cc: Add "#pragma GCC java_exceptions". 2001-05-17 Martin Kahlert <martin.kahlert@infineon.com> * java/lang/natClass.cc (_Jv_FindIIndex): Fix an off by one error with length of ioffset table. (_Jv_IsAssignableFrom): Likewise. From-SVN: r42248
* * Makefile.am (ZIP): The "fastjar" binary is now plain "jar".Per Bothner2001-05-173-6/+10
| | | | From-SVN: r42207
* SimpleDateFormat.java (parse): Handle non-dst time zones.Tom Tromey2001-05-162-8/+23
| | | | | | | * java/text/SimpleDateFormat.java (parse): Handle non-dst time zones. From-SVN: r42156
* GregorianCalendar.java (computeTime): Only call getTimeZone() once.Tom Tromey2001-05-152-1/+6
| | | | | | | * java/util/GregorianCalendar.java (computeTime): Only call getTimeZone() once. From-SVN: r42121
* SimpleDateFormat.java (parse): Clear DST_OFFSET and ZONE_OFFSET just before ↵Tom Tromey2001-05-142-2/+9
| | | | | | | | | computing the time. * java/text/SimpleDateFormat.java (parse): Clear DST_OFFSET and ZONE_OFFSET just before computing the time. From-SVN: r42076
* except.c (choose_personality_routine): Export.Zack Weinberg2001-05-135-2/+35
| | | | | | | | | | | | | | | | | | | | | gcc/cp: * except.c (choose_personality_routine): Export. Add explanatory comment. Take an enum languages, not a boolean. (initialize_handler_parm): Adjust to match. * cp-tree.h: Prototype choose_personality_routine. * lex.c (handle_pragma_java_exceptions): New function. (init_cp_pragma): Register #pragma GCC java_exceptions. gcc: * extend.texi: Document #pragma GCC java_exceptions. libjava: * Makefile.am (libgcj_la_OBJECTS): Remove libsupc++convenience.la. * Makefile.in: Regenerate (by hand). * include/jvm.h: Add #pragma GCC java_exceptions at top of file. * doc/cni.sgml: Document #pragma GCC java_exceptions. From-SVN: r42027
* configure.in (ia64-*): Don't set SYSDEP_SOURCES.Richard Henderson2001-05-114-310/+296
| | | | | | | * configure.in (ia64-*): Don't set SYSDEP_SOURCES. * java/lang/natThrowable.cc: Don't use __ia64_backtrace. From-SVN: r41984
* exception.cc: Include unwind-pe.h.Richard Henderson2001-05-112-168/+6
| | | | | | | * exception.cc: Include unwind-pe.h. Remove all pointer encoding logic. From-SVN: r41983
* Makefile.in: Rebuilt.Tom Tromey2001-05-113-3/+450
| | | | | | | | | | | | | * Makefile.in: Rebuilt. * Makefile.am (awt_java_source_files): Added Polygon.java. * java/awt/Polygon.java: New file. * java/awt/geom/AffineTransform.java (setToRotation(double,double,double)): New method. (AffineTransform): Set type to TYPE_GENERAL_TRANSFORM. (setToShear): Likewise. From-SVN: r41954
* [multiple changes]Tom Tromey2001-05-1011-399/+2085
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-05-10 Tom Tromey <tromey@redhat.com> * java/util/GregorianCalendar.java: Imported from Classpath. * gnu/java/locale/LocaleInformation_nl.java: New file from Classpath. * gnu/java/locale/LocaleInformation_en.java: Likewise. * gnu/java/locale/LocaleInformation_de.java: Likewise. * gnu/java/locale/LocaleInformation.java: Likewise. * natGregorianCalendar.cc: Removed. * Makefile.in: Rebuilt. * Makefile.am (nat_source_files): Removed natGregorianCalendar.cc. 2001-05-10 Tom Tromey <tromey@redhat.com> * java/text/SimpleDateFormat.java (computeCenturyStart): New method. (defaultCenturyStart): Use it. (readObject): Likewise. (SimpleDateFormat): Clear the calendar. Set the grouping on the number format. (parse): Copy the calendar before modifying it. Correctly handle the time zone. * java/util/Calendar.java (clear): Set field value(s) to 0. 2001-05-10 Jeff Sturm <jsturm@one-point.com> * Calendar.java (get): Clear areFieldsSet if requested field is not set. (set): Unset fields that depend on new value. From-SVN: r41942
* Class.h (_Jv_Self): New union type.Bryce McKinlay2001-05-063-7/+19
| | | | | | | | | | * java/lang/Class.h (_Jv_Self): New union type. (Class): Manipulate vtable pointer via _Jv_Self union. Thanks to Jeff Sturm and Fergus Henderson. * java/lang/ClassLoader.java: Remove dead code fragment. From-SVN: r41876
* Thread_Wait_Interrupt.xfail: New file.Tom Tromey2001-05-0410-9/+78
| | | | | | | | | | | | | | | | | | * libjava.lang/Thread_Wait_Interrupt.xfail: New file. * libjava.lang/Thread_Wait_2.xfail: New file. * libjava.lang/Thread_Wait.xfail: New file. * libjava.lang/Thread_Sleep.xfail: New file. * libjava.lang/Thread_Monitor.xfail: New file. * libjava.lang/Thread_Join.xfail: New file. * libjava.lang/Thread_Interrupt.xfail: New file. * libjava.lang/Thread_Alive.xfail: New file. * lib/libjava.exp (libjava_init): Set global libjava_uses_threads. (test_libjava): Document `need-threads' tag. (test_libjava_from_source): handle need-threads tag. (test_libjava_from_javac): Likewise. From-SVN: r41840
* * libjava.lang/err11.xfail: Removed.Tom Tromey2001-05-032-1/+4
| | | | From-SVN: r41817
* jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds checking.Martin Kahlert2001-05-032-2/+8
| | | | | | | | | | 2001-05-03 Martin Kahlert <martin.kahlert@infineon.com> * jni.cc (_Jv_JNI_GetPrimitiveArrayRegion): Fixed bounds checking. (_Jv_JNI_SetPrimitiveArrayRegion): Likewise. From-SVN: r41795