summaryrefslogtreecommitdiff
path: root/libjava/configure.in
Commit message (Collapse)AuthorAgeFilesLines
* * configure: Rebuilt.tromey2001-06-081-1/+2
| | | | | | | * configure.in: Compute new aux dir using `pwd'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43064 138bc75d-0d04-0410-961f-82ee72b054a4
* For PR bootstrap/3075:tromey2001-06-081-6/+4
| | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43034 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove libgcjdata hack. Fix jv-scan usage in dejagnu.green2001-06-021-10/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42812 138bc75d-0d04-0410-961f-82ee72b054a4
* USE_LIBFFI changegreen2001-06-021-0/+16
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42791 138bc75d-0d04-0410-961f-82ee72b054a4
* Check for sigaction.green2001-06-021-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42790 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure: Rebuilt.tromey2001-05-291-3/+6
| | | | | | | | * configure.in: Only add multilib support code if we just rebuilt top-level Makefile. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42693 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-05-29 Andrew Haley <aph@redhat.com>aph2001-05-291-1/+4
| | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42691 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in: Only allow hash synchronization when POSIX threadstromey2001-05-241-6/+9
| | | | | | | | | are enabled. * java/lang/natObject.cc (alloc_heavy): Properly find `init' field of sync info object. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42530 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-05-23 Tom Tromey <tromey@redhat.com>tromey2001-05-241-3/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42519 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix cross builds.green2001-05-231-3/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42497 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-05-18 Andrew Haley <aph@cambridge.redhat.com>aph2001-05-211-0/+3
| | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42400 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in: Update boehm-gc include dir for new GC version.bryce2001-05-211-1/+1
| | | | | | | | | | | | | * 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". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42380 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in (ia64-*): Don't set SYSDEP_SOURCES.rth2001-05-121-4/+4
| | | | | | | * java/lang/natThrowable.cc: Don't use __ia64_backtrace. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41984 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-04-30 Andrew Haley <aph@cambridge.redhat.com>aph2001-05-011-0/+1
| | | | | | | | | | * libgcj.spec.in (jc1): Add EXCEPTIONSPEC. * configure.host (EXCEPTIONSPEC): New. * configure.in (EXCEPTIONSPEC): New. * configure: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41733 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in: Obtain THREADS with `gcc -v'.aoliva2001-04-261-38/+3
| | | | | | | * configure: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41571 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in (CPPFLAGS): Added builddir and srcdir to CPPFLAGSaoliva2001-04-241-0/+23
| | | | | | | | for libtool tests. Pre-create gnu/classpath/Configuration.java. * configure: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41522 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in (GCC_UNWIND_INCLUDE): Assume we're built withinrth2001-04-021-13/+2
| | | | | | | | | | the same tree as gcc. * configure: Rebuilt. * exception.cc (_Jv_Throw): Clarify commentary. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41025 138bc75d-0d04-0410-961f-82ee72b054a4
* 1.3-Compliant Implementation of java.io.File.bryce2001-04-011-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/lang/natSystem.cc (init_properties): Get "file.separator", "path.separator", and "java.io.tmpdir" from the File class, instead of setting them explicitly. * java/io/File.java: Do not canonicalize paths for security manager checks. Call init_native() from static initializer. Do not pass path argument to native methods. New native method declarations. Some security manager checks moved to checkWrite(). (equals): Check file system case sensitivity and act appropriatly. (hashCode): Likewise. (isHidden): New method implemented. (performList): Changed prototype. Now takes a class argument specifying the class of the returned array: Strings or File objects. Also added FileFilter argument. (listFiles): New variants with "File" return type implemented. (createTempFile): Use createNewFile(). Use maxPathLen. (setReadOnly): New method implemented. (listRoots): Likewise. (compareTo): Likewise. (setLastModified): Likewise. (checkWrite): New method. (setPath): Removed. * java/io/natFile.cc: Various functions no longer take canonical path argument. (stat): Handle ISHIDDEN query. (isAbsolute): Remove WIN32 cruft. (performList): New arguments. Handle returning either File[] or String[] arrays. Check with FileFilter or FilenameFilter arguments as appropriate. Use an ArrayList, not a Vector, for the temporary list. (performSetReadOnly): New method implemented. (performListRoots): Likewise. (performSetLastModified): Likewise. (performCreate): Likewise. (init_native): New initialization function. * java/io/natFileWin32.cc: Various functions no longer take canonical path argument. (stat): Add FIXME about ISHIDDEN query. (performList): New arguments. Handle returning either File[] or String[] arrays. Check with FileFilter or FilenameFilter arguments as appropriate. Use an ArrayList, not a Vector, for the temporary list. (performSetReadOnly): New. Stubbed. (performListRoots): Likewise. (performSetLastModified): Likewise. (performCreate): Likewise. (init_native) New initialization function. * configure.in: Check for utime() and chmod(). * configure: Rebuilt. * include/config.h.in: Rebuilt. Resolves PR libgcj/1759. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40985 138bc75d-0d04-0410-961f-82ee72b054a4
* IA-64 ABI Exception Handling.rth2001-03-281-19/+51
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40924 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure: Rebuilt.tromey2001-03-211-0/+2
| | | | | | | | | | | * configure.in (GCJFLAGS): Subst. * Makefile.in: Rebuilt. * Makefile.am (jv_convert_LDFLAGS): Added -shared-libgcc. (gij_LDFLAGS): Likewise. (JC1FLAGS): Added GCJFLAGS and removed -g. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40700 138bc75d-0d04-0410-961f-82ee72b054a4
* Disable libgcjx by default.bryce2001-02-221-1/+30
| | | | | | | | | | | * configure.in: Add support for --enable-java-awt configure option. Use --enable-java-awt=xlib to build the xlib peers (libgcjx). * Makefile.am: Make libgcjx conditional on XLIB_AWT, instead of NO_X. * Makefile.in: Rebuilt. * configure: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39970 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/java:bryce2001-02-051-7/+0
| | | | | | | | | | | | | | * Make-lang.in (jvspec.o): Add DRIVER_DEFINES to the list of macros used when compiling jvspec.c. * jvspec.c (lang_specific_driver): Link with the shared libgcc by default. libjava: * libgcj.spec.in: Don't force static libgcc into the executable. * configure.in (FORCELIBGCCSPEC): Removed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39449 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/natSystem.cc: Include locale.h if it exists.tromey2001-01-121-1/+1
| | | | | | | | * configure: Rebuilt. * configure.in: Check for locale.h. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38957 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in: Remove check for -fuse-divide-subroutine.bryce2000-12-111-16/+0
| | | | | | | * configure: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38184 138bc75d-0d04-0410-961f-82ee72b054a4
* From Phil Edwards:tromey2000-12-081-1/+1
| | | | | | | | * configure: Rebuilt. * configure.in: Use echo, not `:', to create .d files. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38139 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-11-29 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-11-291-1/+1
| | | | | | | | | | | * java/lang/natSystem.cc (init_properties): Set user.language and user.region. * configure.in: Check for setlocale. * configure: Rebuilt. * include/config.h.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37842 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-11-261-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/lang/System.java (setProperties): Only call init_properties() if properties is null. (getProperties): Ditto. (getProperty): Ditto. (setProperty): Call init_properties if properties are null. (prop_init): Remove field. * java/lang/natSystem.cc (init_properties): Synchronize the entire method. Check for null properties after synchronizing instead of prop_init flag. Set the properties field last for thread safety. * java/io/ObjectInputStream.java (ObjectInputStream): If DEBUG is set, test for gcj.dumpobjects property and enable object stream dumping if it is set. (dumpElement): No longer native. (dumpElementln): Ditto. (setDump): Do not define. * java/io/natObjectInputStream.cc (dumpElement): Removed. (dumpElementln): Removed. (setDump): Removed. 2000-11-24 Bryce McKinlay <bryce@albatross.co.nz> * configure: Rebuilt. * Makefile.in: Rebuilt. * Makefile.am (built_java_source_files): Add Configuration.java. * configure.in: Add Configuration.java to CONFIG_FILES. Set LIBGCJDEBUG substitution if --enable-libgcj-debug is specified. Create `gnu' directory in the build tree. * gnu/classpath/Configuration.java.in: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37749 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Rebuilt.tromey2000-11-011-0/+1
| | | | | | | | | | * Makefile.am (install-exec-hook): Only make a single symlink, and remove the destination before making the link. * configure: Rebuilt. * configure.in: Call AC_PROG_LN_S. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37189 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-10-25 Bryce McKinlay <bryce@albatross.co.nz>bryce2000-10-251-1/+0
| | | | | | | | | | | | | | | * Makefile.am (GCJCOMPILE): Pass --tag=GCJ to libtool. (core_java_source_files): Put java.lang, java.io, and java.util here. (ordinary_java_source_files): Order so that core_java_source_files are built first. (java_source_files): Reorder so that special_java_source_files are built first. * configure.in: Don't pass -I flag to gcj. * Makefile.in: Rebuilt. * configure: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37060 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.am: Added rules for libgcjx library.rolfwr2000-10-221-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in: Rebuilt. * configure.in: Added check for X. * configure: Rebuilt. * gnu/awt/LightweightRedirector.java: New file. * gnu/awt/j2d/AbstractGraphicsState.java: New file. * gnu/awt/j2d/DirectRasterGraphics.java: New file. * gnu/awt/j2d/Graphics2DImpl.java: New file. * gnu/awt/j2d/IntegerGraphicsState.java: New file. * gnu/awt/j2d/MappedRaster.java: New file. * gnu/awt/xlib/XCanvasPeer.java: New file. * gnu/awt/xlib/XEventLoop.java: New file. * gnu/awt/xlib/XEventQueue.java: New file. * gnu/awt/xlib/XFontMetrics.java: New file. * gnu/awt/xlib/XFramePeer.java: New file. * gnu/awt/xlib/XGraphics.java: New file. * gnu/awt/xlib/XGraphicsConfiguration.java: New file. * gnu/awt/xlib/XPanelPeer.java: New file. * gnu/awt/xlib/XToolkit.java: New file. * gnu/gcj/xlib/Clip.java: New file. * gnu/gcj/xlib/Colormap.java: New file. * gnu/gcj/xlib/Display.java: New file. * gnu/gcj/xlib/Drawable.java: New file. * gnu/gcj/xlib/Font.java: New file. * gnu/gcj/xlib/GC.java: New file. * gnu/gcj/xlib/Pixmap.java: New file. * gnu/gcj/xlib/Screen.java: New file. * gnu/gcj/xlib/Visual.java: New file. * gnu/gcj/xlib/WMSizeHints.java: New file. * gnu/gcj/xlib/Window.java: New file. * gnu/gcj/xlib/WindowAttributes.java: New file. * gnu/gcj/xlib/XAnyEvent.java: New file. * gnu/gcj/xlib/XButtonEvent.java: New file. * gnu/gcj/xlib/XColor.java: New file. * gnu/gcj/xlib/XConfigureEvent.java: New file. * gnu/gcj/xlib/XConnectException.java: New file. * gnu/gcj/xlib/XEvent.java: New file. * gnu/gcj/xlib/XException.java: New file. * gnu/gcj/xlib/XExposeEvent.java: New file. * gnu/gcj/xlib/XID.java: New file. * gnu/gcj/xlib/XImage.java: New file. * gnu/gcj/xlib/XUnmapEvent.java: New file. * gnu/gcj/xlib/natClip.cc: New file. * gnu/gcj/xlib/natColormap.cc: New file. * gnu/gcj/xlib/natDisplay.cc: New file. * gnu/gcj/xlib/natDrawable.cc: New file. * gnu/gcj/xlib/natFont.cc: New file. * gnu/gcj/xlib/natGC.cc: New file. * gnu/gcj/xlib/natPixmap.cc: New file. * gnu/gcj/xlib/natScreen.cc: New file. * gnu/gcj/xlib/natVisual.cc: New file. * gnu/gcj/xlib/natWMSizeHints.cc: New file. * gnu/gcj/xlib/natWindow.cc: New file. * gnu/gcj/xlib/natWindowAttributes.cc: New file. * gnu/gcj/xlib/natXAnyEvent.cc: New file. * gnu/gcj/xlib/natXButtonEvent.cc: New file. * gnu/gcj/xlib/natXColor.cc: New file. * gnu/gcj/xlib/natXConfigureEvent.cc: New file. * gnu/gcj/xlib/natXException.cc: New file. * gnu/gcj/xlib/natXExposeEvent.cc: New file. * gnu/gcj/xlib/natXImage.cc: New file. * gnu/gcj/xlib/natXUnmapEvent.cc: New file. * java/awt/EventDispatchThread.java: Start thead on creation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37005 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Rebuilt.tromey2000-10-201-1/+22
| | | | | | | | | | | | | | * Makefile.am: Include deps.mk. (GCJCOMPILE): Added -MD, -MT, and -MF. ($(javao_files)): Don't depend on libgcj.zip. (all-recursive): New target. (%.lo:%.cc): Do dependency tracking. ($(nat_headers)): Don't depend on libgcj.zip. * configure: Rebuilt. * configure.in: Make .d files and deps.mk. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36982 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-10-09 Alexandre Oliva <aoliva@redhat.com>tromey2000-10-091-3/+4
| | | | | | | | | | | | | | | * configure.in (GCJ): Avoid bogus error message when looking for (and not finding) gcj in the build tree. * configure: Rebuilt. 2000-10-09 Tom Tromey <tromey@cygnus.com> * configure: Rebuilt. * configure.in: Include sys/types.h when checking for socklen_t. From Arno J. Klaassen. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36811 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-09-30 Hans Boehm <boehm@acm.org>bryce2000-09-301-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bryce McKinlay <bryce@albatross.co.nz> Implement bitmap descriptor based marking for Boehm GC. * configure.in: Define JC1GCSPEC. Set it if boehm-gc is used. * configure: Rebuilt. * libgcj.spec.in: Pass JC1GCSPEC to jc1. * include/jvm.h (struct _Jv_VTable): New field `gc_descr'. New inline method get_finalizer(). (struct _Jv_ArrayVTable): Ditto. Declare method array with NUM_OBJECT_METHODS elements instead of NUM_OBJECT_METHODS + 1. (_Jv_AllocObj): Add new jclass parameter. (_Jv_AllocArray): Ditto. (_Jv_BuildGCDescr): New prototype. * prims.cc (_Jv_AllocObject): Rename parameter `c' to `klass'. Pass `klass' to _Jv_AllocObj. Don't set the new object's vtable. Use get_finalizer() instead of direct finalizer vtable offset. (_Jv_NewObjectArray): Rename parameter `clas' to `klass'. Pass `klass' to _Jv_AllocArray. Don't set the new array's vtable. (_Jv_NewPrimArray): Call _Jv_FindArrayClass before _Jv_AllocObj. Pass `klass' to _Jv_AllocObj. Don't set the new array's vtable. * resolve.cc (METHOD_NOT_THERE, METHOD_INACCESSIBLE): New #defines. (_Jv_ResolvePoolEntry): Use METHOD_NOT_THERE and METHOD_INACCESSIBLE. (_Jv_DetermineVTableIndex): Ditto. (_Jv_PrepareClass): Ditto. Remove offset-by-one adjustments from vtable calculations to account for new gc_descr field. * boehm.cc: #include gc_gcj.h. (obj_kind_x, obj_free_list): `#if 0'-ed away. (_Jv_MarkObj): Check that vtable doesn't point to a cleared object. New commentary from HB. Mark the classes vtable. (_Jv_MarkArray): Check that vtable doesn't point to a cleared object. (GC_DEFAULT_DESCR): New #define. (_Jv_BuildGCDescr): New function. Use GC_DEFAULT_DESCR, for now. (_Jv_AllocObj): New parameter `klass'. Use GC_GCJ_MALLOC (). (_Jv_AllocArray): New parameter `klass'. Allocate with GC_MALLOC and scan conservativly if size is less than min_heap_addr. Set vtable pointer of new object before returning. (_Jv_AllocBytes): Use GC_MALLOC_ATOMIC, not GC_GENERIC_MALLOC. (_Jv_InitGC): Call GC_init_gcj_malloc(). Don't set up marking and allocation for obj_kind_x. * nogc.cc (_Jv_BuildGCDescr): New function. Return 0. (_Jv_AllocObj): Set vtable on returned object. (_Jv_AllocArray): Ditto. * java/lang/Class.h (_Jv_NewObjectArray): No longer a friend. (_Jv_NewPrimArray): Ditto. (_Jv_AllocObj): Declare as a friend. (_Jv_AllocArray): Ditto. * java/lang/natClassLoader.cc (_Jv_FindArrayClass): Copy gc_descr from &ObjectClass into new array class. Remove offset-by-one adjustments from `method' size calculations to account for gc_descr field. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36679 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-09-13 Alexandre Oliva <aoliva@redhat.com>tromey2000-09-131-15/+18
| | | | | | | | | | | | | * configure.in (LIBDATASTARTSPEC): Use `%s' to search for libgcjdata.a. (GCJ): Support single-tree builds. Add -B`pwd`/ and -I$srcdir. * acinclude.m4: Arrange for automake to not bring in a new libtool.m4 for LT_AC_PROG_GCJ. AC_SUBST GCJ. * Makefile.am: Leave it up to automake to subst GCJ. * aclocal.m4, configure, Makefile.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36392 138bc75d-0d04-0410-961f-82ee72b054a4
* * gnu/gcj/convert/BytesToUnicode.java (getDefaultDecoder): Lettromey2000-09-111-2/+3
| | | | | | | | | | | | | default decoder use iconv. * gnu/gcj/convert/UnicodeToBytes.java (getDefaultEncoder): Let default encoder use iconv. * configure: Rebuilt. * configure.in: Check for nl_langinfo and <langinfo.h>. * java/lang/natSystem.cc (file_encoding): New function. (DEFAULT_FILE_ENCODING): Define to file_encoding() if possible. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36306 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Rebuilt.tromey2000-05-201-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am (hack1): Removed. (awto_files): Likewise. (libgcjawt_la_SOURCES): Likewise. (EXTRA_libgcjawt_la_SOURCES): Likewise. (libgcjawt_la_DEPENDENCIES): Likewise. (libgcjawt_la_LIBADD): Likewise. (libgcjawt_la_LDFLAGS): Likewise. (libgcjawt_la_LINK): Likewise. ($(awt_java_source_files:.java=.class)): Likewise. (libgcj.zip): Don't depend on AWT files. (MOSTLYCLEANFILES): Don't include AWT files. ($(awto_files)): Removed. (nat_headers): Removed AWT files. (cond_awt_java_source_files): Removed. (ordinary_java_source_files): Added awt_java_source_files. * libgcj.spec.in (*lib): Removed -lgcjawt. * configure: Rebuilt. * configure.in: Removed --enable-java-awt option. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34058 138bc75d-0d04-0410-961f-82ee72b054a4
* Jumbo patch:tromey2000-05-191-13/+22
| | | | | | | | | * Imported beans and serialization * Updated IA-64 port * Miscellaneous bug fixes git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34028 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix for PR libgcj/15:tromey2000-04-211-1/+8
| | | | | | | | | | | | | | | | | * java/util/natGregorianCalendar.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't define. * java/net/natInetAddress.cc (_REENTRANT): Don't define. * java/lang/natSystem.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't define. * java/io/natFile.cc (_REENTRANT, _POSIX_PTHREAD_SEMANTICS): Don't define. * configure: Rebuilt. * configure.in: If using POSIX threads, define _REENTRANT if needed. Define _POSIX_PTHREAD_SEMANTICS. Don't define GETHOSTBYNAME_R_NEEDS_REENTRANT. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33319 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure: Rebuilt.tromey2000-04-061-0/+12
| | | | | | | | | | | | | | | | | | | | | * configure.in: Recognize --enable-java-awt. (AWT): New conditional. * Makefile.in: Rebuilt. * Makefile.am (toolexeclib_LTLIBRARIES): Build libgcjawt.la if requested. (libgcjawt_la_SOURCES): New macro. (EXTRA_libgcjawt_la_SOURCES): Likewise. (libgcjawt_la_DEPENDENCIES): Likewise. (libgcjawt_la_LIBADD): Likewise. (libgcjawt_la_LDFLAGS): Likewise. (libgcj.zip): Depend on cond_java_awt_source_files (cond_awt_java_source_files): New macro. (MOSTLYCLEANFILES): Added awto_files. (awto_files): New macro. Use where javao_files used. (nat_headers): Use cond_awt_java_source_files. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32954 138bc75d-0d04-0410-961f-82ee72b054a4
* JVMPI changes...green2000-04-021-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sun Apr 2 08:27:18 2000 Anthony Green <green@redhat.com> * configure: Rebuilt. * configure.in: Add --disable-jvmpi. * include/config.h.in: Rebuilt. * acconfig.h: Add ENABLE_JVMPI. * include/jvm.h: Declare _Jv_DisableGC and _Jv_EnableGC. (_Jv_JVMPI_Notify_OBJECT_ALLOC): New define. (_Jv_JVMPI_Notify_THREAD_END): New define. (_Jv_JVMPI_Notify_THREAD_END): New define. * prims.cc (_Jv_JVMPI_Notify_OBJECT_ALLOC): Declare. (_Jv_JVMPI_Notify_THREAD_END): Declare. (_Jv_JVMPI_Notify_THREAD_END): Declare. * prims.cc (_Jv_AllocObject): Generate JVMPI object allocation events. * java/lang/natThread.cc: Include JVMPI headers if necessary. (finish_): Generate JVMPI thread end events. (run_): Generate JVMPI thread start events. * gnu/gcj/runtime/natFirstThread.cc (run): Call JNI_OnLoad for any preloaded JNI library. Include JVMPI headers if necessary. (run): Generate JVMPI thread start events. * boehm.cc: Define GC_disable and GC_enable. (_Jv_DisableGC): New function. (_Jv_EnableGC): New function. (disable_gc_mutex): Declare. * nogc.cc (_Jv_DisableGC): New function. (_Jv_EnableGC): New function. * jni.cc (_Jv_JNI_GetEnv): Handle JVMPI interface requests. (_Jv_JVMPI_Interface): Define. (jvmpiEnableEvent): New function. (_Jv_JNI_Init): Initialize _Jv_JVMPI_Interface. * include/jvmpi.h: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32866 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-03-26 Tom Tromey <tromey@cygnus.com>tromey2000-03-261-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/lang/mprec.h: Use SIZEOF_VOID_P. * interpret.cc: Use SIZEOF_VOID_P. * include/java-cpool.h (_Jv_storeLong): Use SIZEOF_VOID_P. (_Jv_loadLong): Likewise. (_Jv_storeDouble): Likewise. * configure: Rebuilt. * configure.in: Check size of void*. * resolve.cc (ncode): Use FFI_PREP_RAW_CLOSURE and FFI_RAW_SIZE. 2000-03-26 Hans Boehm <boehm@acm.org> * include/java-cpool.h (_Jv_storeLong, _Jv_loadLong, _Jv_storeDouble, _Jv_loadDouble): Define differently on 64 bit machine. * java/lang/ieeefp.h: Define __IEEE_BIG_ENDIAN or __IEEE_LITTLE_ENDIAN appropriately on IA64. * java/lang/mprec.h: Don't define Pack_32 on 64 bit machine. * javaprims.h (_Jv_word): Added `l' and `d' entries in 64 bit case. * resolve.cc (FFI_PREP_RAW_CLOSURE): New define. (FFI_RAW_SIZE): Likewise. (_Jv_InterpMethod::ncode): Use them. * interpret.cc (PUSHL, PUSHD, POPL, POPD, LOADL, LOADD, STOREL, STORED): Define differently on a 64 bit machine. (continue1): Use ffi_java_raw_call when appropriate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32754 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure: Rebuilt.green2000-03-041-1/+11
| | | | | | | | | | * configure.in (ZLIBTESTSPEC): New macro. (GCTESTSPEC): New macro. (LIBGCJTESTSPEC): New macro. * libgcj-test.spec.in: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32330 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/config.h.in: Rebuilt.tromey2000-01-311-1/+1
| | | | | | | | | | | | | | | | | | | | * acconfig.h (HAVE_ICONV): Define. * configure: Rebuilt. * configure.in: Check for `iconv' function. * gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if no specific encoder exists. * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if no specific encoder exists. * Makefile.in: Rebuilt. * Makefile.am (convert_source_files): Mention Input_iconv.java and Output_iconv.java. (nat_source_files): Added natIconv.cc. * gnu/gcj/convert/natIconv.cc: New file. * gnu/gcj/convert/Input_iconv.java: New file. * gnu/gcj/convert/Output_iconv.java: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31708 138bc75d-0d04-0410-961f-82ee72b054a4
* * include/config.h.in: Rebuilt.green2000-01-221-0/+10
| | | | | | | | | * acconfig.h: Add undef for __NO_MATH_INLINES. * configure: Rebuilt. * configure.in: Add test for `g++ -O2 -ffloat-store' bug. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31566 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-01-18 Bryce McKinlay <bryce@albatross.co.nz>tromey2000-01-191-0/+2
| | | | | | | | * configure: Rebuilt. * configure.in: Recognize --disable-interpreter. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31496 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-01-18 Andrew Haley <aph@cygnus.com>aph2000-01-181-0/+2
| | | | | | | | | | | * name-finder.cc (lookup): Check for dladdr function. acconfig.h (HAVE_DLADDR): Add. configure.in: Check for HAVE_DLADDR configure: Rebuilt. include/config.h.in: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31487 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure: Rebuilt.tromey2000-01-181-1/+1
| | | | | | | * configure.in: Fixed typo in AC_CONFIG_SUBDIRS call. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31482 138bc75d-0d04-0410-961f-82ee72b054a4
* * java/lang/Runtime.java (loadLibraryInternal): Declare.tromey2000-01-171-0/+13
| | | | | | | | | | | | | | | | | | | | | | | * java/lang/natClassLoader.cc (_Jv_FindClass): Removed dead copy. (_Jv_FindClassInCache): Likewise. (_Jv_FindClass): Don't conditionalize body on INTERPRETER. (findSystemClass): Try to load class from compiled module. Include Runtime.h. * java/lang/natRuntime.cc (load): Use UTF-8 copy of filename. (loadLibrary): Likewise. (lt_preloaded_symbols): Define. (loadLibraryInternal): New method. * include/config.h.in: Rebuilt. * acconfig.h (USE_LTDL): Added. * Makefile.am (SUBDIRS): Added $(DIRLTDL). (INCLUDES): Added $(INCLTDL).b (libgcj_la_DEPENDENCIES): Added $(LIBLTDL). (libgcj_la_LIBADD): Likewise. * aclocal.m4, configure: Rebuilt. * configure.in: Added libltdl support. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31472 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-01-14 Andrew Haley <aph@cygnus.com>aph2000-01-171-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/lang/natThrowable.cc: New file. * java/lang/Throwable.java (fillInStackTrace): Make native. (printStackTrace): Call native method to do this. (Throwable): Call fillInStackTrace. (stackTrace): New variable. * include/jvm.h: Add _Jv_ThisExecutable functions. * prims.cc: (_Jv_execName): New variable. (catch_segv): Call fillInStackTrace. (catch_fpe): Ditto. (_Jv_ThisExecutable): New functions. (JvRunMain): Set the name of this executable. * Makefile.am: Add java/lang/natThrowable.cc. Add name-finder.cc. * Makefile.in: Rebuilt. * acconfig.h: Add HAVE_PROC_SELF_EXE. * configure.in: Force link with __frame_state_for in FORCELIBGCCSPEC. Add new checks for backtrace. * include/config.h.in: Rebuilt. * name-finder.cc: New file. * include/name-finder.h: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31460 138bc75d-0d04-0410-961f-82ee72b054a4
* 2000-01-09 Anthony Green <green@cygnus.com>green2000-01-091-1/+6
| | | | | | | | | | | | | | | | | * java/lang/natString.cc (init): Test for overflow condition during out of bounds check. (getChars): Throw StringIndexOutOfBoundsException, not ArrayIndexOutOfBoundsException. (getBytes): Ditto. (regionMatches): Obey case option during string comparison. * configure.host (ligcj_interpreter): New variable. Enable interpreter by default on IA-32. * configure.in: Examine libgcj_interpreter. * configure: Rebuilt. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31300 138bc75d-0d04-0410-961f-82ee72b054a4