gcc/libjava/java/lang
Bernd Edlinger 54fde020cc Enable Java on Cygwin-64
Currently it is not possible to build GCC's libjava support on Cygwin-64.

This patch fixes the current build-problems on Cygwin-64 and the most
fundamental bugs on that platform.

Note you must still add --enable-threads=posix to successfully build the
java language support.


boehm-gc/ChangeLog:

2014-05-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        Fix current cygwin-64 build problems.
        * include/gc_config_macros.h (GC_PTHREADS): Use __CYGWIN__ instead
        of __CYGWIN32__ here.
        * win32_threads.c (GC_push_all_stacks): Push all X86_64 registers.
        (GC_get_thread_stack_base): Get the stack base for X86_64.

libffi/ChangeLog:

2014-05-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        Fix current cygwin-64 build problems.
        * src/java_raw_api.c: Remove if !defined(FFI_NO_RAW_API).
        * src/x86/ffi.c: Add if defined(__CYGWIN__).
        * src/x86/win64.S (ffi_closure_win64, ffi_call_win64): Added
        handling for FFI_TYPE_UINT64, FFI_TYPE_POINTER and FFI_TYPE_INT.
        Added SEH information.  Fixed formatting.

libgcc/ChangeLog:

2014-05-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * unwind-seh.c (_Unwind_Backtrace): Uncommented, finished
        implementation.

libjava/ChangeLog:

2014-05-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        Fix current cygwin-64 build problems.
        * configure.host: Added handling for x86_64-*-cygwin/mingw.
        * boehm.cc (_Jv_GCAttachThread, _Jv_GCDetachThread): Don't compile if
        GC_WIN32_THREADS is defined.
        * java/lang/natClass.cc (_Jv_InterfaceAssignableFrom): Rename interface
        to source_interface.

libjava/classpath/ChangeLog:

2014-05-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        Fix current cygwin-64 build problems.
        * native/fdlibm/mprec.c (_REENT_CHECK_MP, _REENT_MP_FREELIST,
        _REENT_MP_P5S, __ULong, __Long): Undefine previous definitions.

From-SVN: r210386
2014-05-13 16:23:11 +00:00
..
annotation Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
instrument Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
management Import GNU Classpath (classpath-0_97_2-release). 2008-06-28 13:29:13 +00:00
ref Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
reflect Import GNU Classpath (20121202). 2012-12-19 17:03:15 +00:00
AbstractMethodError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
AbstractStringBuffer.h re PR libgcj/37636 (java tools are unable to find resource files) 2008-10-21 17:55:01 +00:00
AbstractStringBuffer.java re PR libgcj/37636 (java tools are unable to find resource files) 2008-10-21 17:55:01 +00:00
Appendable.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ArithmeticException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ArrayIndexOutOfBoundsException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ArrayStoreException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
AssertionError.h Import GNU Classpath (20121202). 2012-12-19 17:03:15 +00:00
AutoCloseable.h Import GNU Classpath (20121202). 2012-12-19 17:03:15 +00:00
Boolean.h Import GNU Classpath (20121202). 2012-12-19 17:03:15 +00:00
Byte.h Import GNU Classpath (20121202). 2012-12-19 17:03:15 +00:00
Character.h libjava 2007-04-19 00:24:09 +00:00
Character.java libjava/classpath/ChangeLog.gcj: 2007-06-03 23:18:43 +00:00
Character$Subset.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Character$UnicodeBlock.h Character.java: Re-merged with Classpath. 2007-03-05 17:27:44 +00:00
Character$UnicodeBlock$NameType.h Character.java: Re-merged with Classpath. 2007-03-05 17:27:44 +00:00
CharSequence.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Class.h Missed part of regenerated file. 2011-04-08 18:12:14 +02:00
Class.java re PR libgcj/35020 (Class.getSimpleName() differs from Sun Java) 2008-05-28 15:12:47 +00:00
Class$1.h re PR libgcj/42676 (javah doesn't generate the header files as checked in in the archive) 2010-03-13 14:27:27 +00:00
ClassCastException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ClassCircularityError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ClassFormatError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ClassLoader.h natClassLoader.cc (_Jv_RegisterInitiatingLoader): Check loading constraints. 2008-03-13 16:43:54 +00:00
ClassLoader.java re PR libgcj/37636 (java tools are unable to find resource files) 2008-10-21 17:55:01 +00:00
ClassLoader$AnnotationsKey.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ClassNotFoundException.h Import GNU Classpath (20121202). 2012-12-19 17:03:15 +00:00
Cloneable.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
CloneNotSupportedException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Comparable.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Compiler.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Deprecated.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Double.h re PR libgcj/37636 (java tools are unable to find resource files) 2008-10-21 17:55:01 +00:00
EcosProcess.h sources.am, [...]: Rebuilt. 2007-03-05 15:57:13 +00:00
EcosProcess.java sources.am, [...]: Rebuilt. 2007-03-05 15:57:13 +00:00
Enum.h libjava/classpath/ChangeLog.gcj: 2007-06-03 23:18:43 +00:00
EnumConstantNotPresentException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Error.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Exception.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ExceptionInInitializerError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Float.h re PR libgcj/37636 (java tools are unable to find resource files) 2008-10-21 17:55:01 +00:00
IllegalAccessError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
IllegalAccessException.h Import GNU Classpath (20121202). 2012-12-19 17:03:15 +00:00
IllegalArgumentException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
IllegalMonitorStateException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
IllegalStateException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
IllegalThreadStateException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
IncompatibleClassChangeError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
IndexOutOfBoundsException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
InheritableThreadLocal.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
InstantiationError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
InstantiationException.h Import GNU Classpath (20121202). 2012-12-19 17:03:15 +00:00
Integer.h Import GNU Classpath (20121202). 2012-12-19 17:03:15 +00:00
InternalError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
InterruptedException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Iterable.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
LinkageError.h Import GNU Classpath (20121202). 2012-12-19 17:03:15 +00:00
Long.h Import GNU Classpath (20121202). 2012-12-19 17:03:15 +00:00
Math.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Math.java re PR libgcj/27731 (Math cbrt(), cosh(), expm1(), hypot(), log1p(), sinh() and tanh() not implemented) 2006-05-24 17:14:45 +00:00
natAbstractStringBuffer.cc re PR libgcj/37636 (java tools are unable to find resource files) 2008-10-21 17:55:01 +00:00
natCharacter.cc natCharacter.cc (Character::getType): Handle negative code points. 2007-05-02 23:27:03 +00:00
natClass.cc Enable Java on Cygwin-64 2014-05-13 16:23:11 +00:00
natClassLoader.cc [multiple changes] 2009-03-12 16:13:19 +00:00
natEcosProcess.cc Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
natMath.cc re PR libgcj/27731 (Math cbrt(), cosh(), expm1(), hypot(), log1p(), sinh() and tanh() not implemented) 2006-05-24 17:14:45 +00:00
natObject.cc natObject.cc (_Jv_MonitorEnter): Add missing parenthesis around comparison with (address | LOCKED) in JvAssert. 2014-03-11 17:41:07 +01:00
natPosixProcess.cc natPosixProcess.cc (sigchld_handler): Remove 'si' and 'third' parameters. 2007-08-15 08:19:32 +00:00
natRuntime.cc sources.am, [...]: Rebuilt. 2007-03-05 15:57:13 +00:00
natString.cc re PR libgcj/36252 (OutOfMemoryError on simple text conversion.) 2008-05-21 03:49:03 +00:00
natSystem.cc win32.cc (_Jv_platform_nanotime): New function. 2006-03-09 18:47:54 +00:00
natThread.cc configure.ac (INTERPRETER): New AM_CONDITIONAL. 2007-07-31 16:17:21 +00:00
natThreadLocal.cc Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
natVMClassLoader.cc * java/lang/natVMClassLoader.cc 2009-04-28 03:49:13 +00:00
natVMDouble.cc natVMPipeEcos.cc: Renamed from gnu/java/nio/natPipeImplEcos.cc. 2007-01-18 11:32:40 +00:00
natVMFloat.cc natVMPipeEcos.cc: Renamed from gnu/java/nio/natPipeImplEcos.cc. 2007-01-18 11:32:40 +00:00
natVMProcess.cc re PR libgcj/31084 (TRUE or FALSE defined) 2007-04-25 01:24:47 +00:00
natVMThrowable.cc prims.cc (_Jv_CreateJavaVM): Move setting runtimeInitialized from the start to the end of the function. 2006-07-28 07:40:17 +00:00
natWin32Process.cc Win32Process.java: Added nested class EOFInputStream. 2007-03-07 18:05:39 +00:00
NegativeArraySizeException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
NoClassDefFoundError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
NoSuchFieldError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
NoSuchFieldException.h Import GNU Classpath (20121202). 2012-12-19 17:03:15 +00:00
NoSuchMethodError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
NoSuchMethodException.h Import GNU Classpath (20121202). 2012-12-19 17:03:15 +00:00
NullPointerException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Number.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
NumberFormatException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Object.h Object.h (throwNoSuchMethodError): New method. 2005-12-08 14:19:13 +00:00
Object.java LogManager.java (loggers): Genericized. 2007-02-01 21:36:01 +00:00
OutOfMemoryError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Override.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Package.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
PosixProcess.h re PR libgcj/29324 (add wait handling hook) 2007-05-12 17:37:55 +00:00
PosixProcess.java re PR libgcj/29324 (add wait handling hook) 2007-05-12 17:37:55 +00:00
PosixProcess$EOFInputStream.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
PosixProcess$ProcessManager.h re PR libgcj/29324 (add wait handling hook) 2007-05-12 17:37:55 +00:00
Process.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ProcessBuilder.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Readable.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ReflectiveOperationException.h Import GNU Classpath (20121202). 2012-12-19 17:03:15 +00:00
Runnable.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Runtime.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Runtime.java re PR classpath/26990 (SecurityManager.checkExit() problem) 2006-04-04 23:25:09 +00:00
RuntimeException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
RuntimePermission.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
SecurityException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
SecurityManager.h Updating header files. Earlier change here seems to have been in error. 2007-03-05 14:29:47 +00:00
SecurityManager$1.h re PR libgcj/42676 (javah doesn't generate the header files as checked in in the archive) 2010-03-13 14:27:27 +00:00
Short.h Import GNU Classpath (20121202). 2012-12-19 17:03:15 +00:00
StackOverflowError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
StackTraceElement.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
StrictMath.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
String.h re PR libgcj/37636 (java tools are unable to find resource files) 2008-10-21 17:55:01 +00:00
String.java re PR libgcj/37636 (java tools are unable to find resource files) 2008-10-21 17:55:01 +00:00
String$CaseInsensitiveComparator.h libjava 2007-04-19 00:24:09 +00:00
StringBuffer.h re PR libgcj/37636 (java tools are unable to find resource files) 2008-10-21 17:55:01 +00:00
StringBuffer.java re PR libgcj/37636 (java tools are unable to find resource files) 2008-10-21 17:55:01 +00:00
StringBuilder.h re PR libgcj/37636 (java tools are unable to find resource files) 2008-10-21 17:55:01 +00:00
StringBuilder.java re PR libgcj/37636 (java tools are unable to find resource files) 2008-10-21 17:55:01 +00:00
StringIndexOutOfBoundsException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
SuppressWarnings.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
System.h libjava/classpath/ChangeLog.gcj: 2007-06-03 23:18:43 +00:00
System.java libjava/classpath/ChangeLog.gcj: 2007-06-03 23:18:43 +00:00
System$EnvironmentCollection.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
System$EnvironmentMap.h libjava 2007-04-19 00:24:09 +00:00
System$EnvironmentSet.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Thread.h re PR libgcj/37636 (java tools are unable to find resource files) 2008-10-21 17:55:01 +00:00
Thread.java re PR libgcj/37636 (java tools are unable to find resource files) 2008-10-21 17:55:01 +00:00
Thread$State.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Thread$UncaughtExceptionHandler.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ThreadDeath.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ThreadGroup.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
ThreadLocal.h re PR libgcj/37636 (java tools are unable to find resource files) 2008-10-21 17:55:01 +00:00
ThreadLocal.java re PR libgcj/37636 (java tools are unable to find resource files) 2008-10-21 17:55:01 +00:00
ThreadLocalMap.h re PR libgcj/37636 (java tools are unable to find resource files) 2008-10-21 17:55:01 +00:00
ThreadLocalMap$Entry.h re PR libgcj/37636 (java tools are unable to find resource files) 2008-10-21 17:55:01 +00:00
Throwable.h re PR libgcj/37636 (java tools are unable to find resource files) 2008-10-21 17:55:01 +00:00
Throwable$StaticData.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
TypeNotPresentException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
UnknownError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
UnsatisfiedLinkError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
UnsupportedClassVersionError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
UnsupportedOperationException.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
VerifyError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
VirtualMachineError.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
VMClassLoader.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
VMClassLoader.java VMClassLoader.java (initialize): Set default library control to LIB_NEVER. 2006-05-31 17:47:44 +00:00
VMCompiler.h DecimalFormatSymbols.java: Added the year 2007 to Copyright information and introduced new variable, currency. 2007-04-05 00:15:16 +00:00
VMCompiler.java 2007-02-23 Gary Benson <gbenson@redhat.com> 2007-02-23 15:15:58 +00:00
VMDouble.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
VMDouble.java re PR java/22578 (should inline floatToIntBits et al) 2006-02-08 18:06:11 +00:00
VMFloat.h Import GNU Classpath (libgcj-import-20070727). 2007-08-04 10:53:49 +00:00
VMFloat.java Import GNU Classpath (libgcj-import-20070727). 2007-08-04 10:53:49 +00:00
VMProcess.h sources.am, [...]: Rebuilt. 2007-03-05 15:57:13 +00:00
VMProcess.java sources.am, [...]: Rebuilt. 2007-03-05 15:57:13 +00:00
VMThrowable.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
VMThrowable.java prims.cc (_Jv_CreateJavaVM): Move setting runtimeInitialized from the start to the end of the function. 2006-07-28 07:40:17 +00:00
Void.h Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Win32Process.h sources.am, [...]: Rebuilt. 2007-03-05 15:57:13 +00:00
Win32Process.java Win32Process.java: Added nested class EOFInputStream. 2007-03-07 18:05:39 +00:00
Win32Process$EOFInputStream.h Win32Process.java: Added nested class EOFInputStream. 2007-03-07 18:05:39 +00:00