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
instrument
management Import GNU Classpath (classpath-0_97_2-release). 2008-06-28 13:29:13 +00:00
ref
reflect Import GNU Classpath (20121202). 2012-12-19 17:03:15 +00:00
AbstractMethodError.h
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
ArithmeticException.h
ArrayIndexOutOfBoundsException.h
ArrayStoreException.h
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
Character.java
Character$Subset.h
Character$UnicodeBlock.h
Character$UnicodeBlock$NameType.h
CharSequence.h
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
ClassCircularityError.h
ClassFormatError.h
ClassLoader.h
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
ClassNotFoundException.h Import GNU Classpath (20121202). 2012-12-19 17:03:15 +00:00
Cloneable.h
CloneNotSupportedException.h
Comparable.h
Compiler.h
Deprecated.h
Double.h re PR libgcj/37636 (java tools are unable to find resource files) 2008-10-21 17:55:01 +00:00
EcosProcess.h
EcosProcess.java
Enum.h
EnumConstantNotPresentException.h
Error.h
Exception.h
ExceptionInInitializerError.h
Float.h re PR libgcj/37636 (java tools are unable to find resource files) 2008-10-21 17:55:01 +00:00
IllegalAccessError.h
IllegalAccessException.h Import GNU Classpath (20121202). 2012-12-19 17:03:15 +00:00
IllegalArgumentException.h
IllegalMonitorStateException.h
IllegalStateException.h
IllegalThreadStateException.h
IncompatibleClassChangeError.h
IndexOutOfBoundsException.h
InheritableThreadLocal.h
InstantiationError.h
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
InterruptedException.h
Iterable.h
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
Math.java
natAbstractStringBuffer.cc re PR libgcj/37636 (java tools are unable to find resource files) 2008-10-21 17:55:01 +00:00
natCharacter.cc
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
natMath.cc
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
natRuntime.cc
natString.cc
natSystem.cc
natThread.cc
natThreadLocal.cc
natVMClassLoader.cc * java/lang/natVMClassLoader.cc 2009-04-28 03:49:13 +00:00
natVMDouble.cc
natVMFloat.cc
natVMProcess.cc
natVMThrowable.cc
natWin32Process.cc
NegativeArraySizeException.h
NoClassDefFoundError.h
NoSuchFieldError.h
NoSuchFieldException.h Import GNU Classpath (20121202). 2012-12-19 17:03:15 +00:00
NoSuchMethodError.h
NoSuchMethodException.h Import GNU Classpath (20121202). 2012-12-19 17:03:15 +00:00
NullPointerException.h
Number.h
NumberFormatException.h
Object.h
Object.java
OutOfMemoryError.h
Override.h
Package.h
PosixProcess.h
PosixProcess.java
PosixProcess$EOFInputStream.h
PosixProcess$ProcessManager.h
Process.h
ProcessBuilder.h
Readable.h
ReflectiveOperationException.h Import GNU Classpath (20121202). 2012-12-19 17:03:15 +00:00
Runnable.h
Runtime.h
Runtime.java
RuntimeException.h
RuntimePermission.h
SecurityException.h
SecurityManager.h
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
StackTraceElement.h
StrictMath.h
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
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
SuppressWarnings.h
System.h
System.java
System$EnvironmentCollection.h
System$EnvironmentMap.h
System$EnvironmentSet.h
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
Thread$UncaughtExceptionHandler.h
ThreadDeath.h
ThreadGroup.h
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
TypeNotPresentException.h
UnknownError.h
UnsatisfiedLinkError.h
UnsupportedClassVersionError.h
UnsupportedOperationException.h
VerifyError.h
VirtualMachineError.h
VMClassLoader.h
VMClassLoader.java
VMCompiler.h
VMCompiler.java
VMDouble.h
VMDouble.java
VMFloat.h
VMFloat.java
VMProcess.h
VMProcess.java
VMThrowable.h
VMThrowable.java
Void.h
Win32Process.h
Win32Process.java
Win32Process$EOFInputStream.h