Bryce McKinlay
e6cbdf26b4
libjava.exp (test_libjava): Test bytecode->native -findirect-dispatch compilation.
...
2006-05-02 Bryce McKinlay <mckinlay@redhat.com>
* testsuite/lib/libjava.exp (test_libjava): Test bytecode->native
-findirect-dispatch compilation.
From-SVN: r113477
2006-05-02 18:41:40 +01:00
Andreas Tobler
a5dfac10a2
configure.ac: Simplify the mmap check a bit more.
...
2006-05-01 Andreas Tobler <a.tobler@schweiz.ch>
* configure.ac: Simplify the mmap check a bit more.
* configure: Rebuilt.
* include/config.h.in: Likewise.
From-SVN: r113426
2006-05-01 22:02:27 +02:00
Roger Sayle
f0913ab8d6
boehm.cc (_Jv_InitGC): Check both HAVE_DLFCN_H and HAVE_DLADDR before calling...
...
* boehm.cc (_Jv_InitGC): Check both HAVE_DLFCN_H and HAVE_DLADDR
before calling GC_register_has_static_roots_callback.
(_Jv_RegisterLibForGc): Likewise, test for both HAVE_DLFCN_H and
HAVE_DLADDR before calling dladdr.
Co-Authored-By: Andrew Haley <aph@redhat.com>
From-SVN: r113417
2006-05-01 16:28:42 +00:00
Bryce McKinlay
23bc3a894d
link.cc (_Jv_Linker::resolve_pool_entry): Don't pass vtable_index to resolve_method.
...
2006-04-28 Bryce McKinlay <mckinlay@redhat.com>
* link.cc (_Jv_Linker::resolve_pool_entry): Don't pass vtable_index
to resolve_method.
* interpret.cc (insn_invokevirtual): Use method->index, not
vtable_index. Check accflag FINAL to determine finals. Only do
explicit null check if calling a final method. Use
throw_null_pointer_exception.
(invokevirtual_resolved): Likewise.
(null_pointer_exc): Remove static field.
(throw_null_pointer_exception): Always define. Throw a new
NullPointerException every time.
* include/java-interp.h (_Jv_ResolvedMethod): Remove vtable_index
field.
* include/execution.h (resolve_method): Remove vtable_index argument.
From-SVN: r113370
2006-04-29 02:35:50 +01:00
Andreas Tobler
2a67186a24
configure.ac: Add an additional checks for dladdr and dlopen on dld.
...
2006-04-28 Andreas Tobler <a.tobler@schweiz.ch>
* configure.ac: Add an additional checks for dladdr and dlopen on dld.
* configure: Rebuilt.
From-SVN: r113323
2006-04-28 00:20:03 +02:00
Tom Tromey
1f263074ea
natSharedLibLoader.cc: Include gc.h later.
...
* gnu/gcj/runtime/natSharedLibLoader.cc: Include gc.h later.
Include platform.h. Set GC_DEBUG before including gc.h, if
needed.
From-SVN: r113251
2006-04-25 15:20:33 +00:00
Andrew Haley
5233753562
natClassLoader.cc: Don't include link.h or dladdr.h.
...
2006-04-25 Andrew Haley <aph@redhat.com>
* java/lang/natClassLoader.cc: Don't include link.h or dladdr.h.
* boehm.cc: Don't include link.h.
(_Jv_RegisterLibForGc): Cast away const when calling dladdr().
From-SVN: r113246
2006-04-25 11:54:15 +00:00
Tom Tromey
0623a8c0c2
* java/lang/natClass.cc (_Jv_getInterfaceMethod): Skip <clinit>.
...
From-SVN: r113229
2006-04-24 21:28:36 +00:00
Andrew Haley
621ae65dcd
lang.c (java_init): Handle flag_indirect_classes.
...
2006-04-21 Andrew Haley <aph@redhat.com>
* lang.c (java_init): Handle flag_indirect_classes.
* jvgenmain.c: Use "class$$" instead of "class$".
* mangle.c (java_mangle_decl): Accept RECORD_TYPEs sw well as
DECLs.
(mangle_class_field): Special case "class$$" as well as "class$".
* constants.c (build_ref_from_constant_pool): If
flag_indirect_classes, generate a ref into the heap.
* decl.c (constants_field_decl_node,
constants_data_field_decl_node): New.
* class.c (build_static_class_ref): New.
(build_classdollar_field): Factor out from build_class_ref().
(make_field_value): Handle static fields in heap.
(make_class_data): Make sure we get a static ref to class.
Make class initializer const if flag_indirect_classes.
(register_class): Build a class_ref for initialization if
flag_indirect_classes.
(emit_indirect_register_classes): New.
2006-04-21 Andrew Haley <aph@redhat.com>
* include/execution.h (struct _Jv_CompiledEngine): Define for
compiled classes.
* java/lang/natClassLoader.cc (_Jv_RegisterClasses): Call
_Jv_RegisterLibForGc.
(_Jv_RegisterClasses_Counted): Likewise.
(_Jv_NewClassFromInitializer): New.
(_Jv_RegisterNewClasses): New.
* sources.am: Regenerate.
* boehm.cc (_Jv_GC_has_static_roots): new.
(_Jv_InitGC): Call GC_register_has_static_roots_callback.
(filename_node, find_file, _Jv_print_gc_store, new_node,
_Jv_GC_has_static_roots, _Jv_RegisterLibForGc): New.
* scripts/makemake.tcl: Add -fno-indirect-classes.
* Makefile.in: Regenerate.
* link.cc (resolve_pool_entry): Allocate constant pool.
Allocate fields.
From-SVN: r113224
2006-04-24 15:33:16 +00:00
Andreas Tobler
6d0b58a9aa
configure.ac: Weaken the check for MMAP.
...
2006-04-22 Andreas Tobler <a.tobler@schweiz.ch>
* configure.ac: Weaken the check for MMAP.
* configure: Rebuilt.
* include/config.h.in: Likewise.
From-SVN: r113182
2006-04-23 00:17:26 +02:00
Bryce McKinlay
405827c59d
re PR libgcj/27170 (Deadlock in garbage collector)
...
PR libgcj/27170
* gnu/gcj/runtime/natSharedLibLoader.cc: Include gc.h to override
dlopen(). From Anthony Green.
From-SVN: r113123
2006-04-21 00:47:56 +01:00
Tom Tromey
45c792f50b
re PR libgcj/21941 (NPE in Socket.connect())
...
PR libgcj/21941:
* gnu/java/net/natPlainDatagramSocketImplPosix.cc (send): Throw
UnknownHostException if needed.
* gnu/java/net/natPlainSocketImplPosix.cc (connect): Throw
UnknownHostException if needed.
From-SVN: r113118
2006-04-20 15:46:40 +00:00
Tom Tromey
453602827f
Makefile.in: Rebuilt.
...
* Makefile.in: Rebuilt.
* Makefile.am (CLEANFILES): Removed all_java_filelist_files,
all_java_deps_files.
From-SVN: r113101
2006-04-19 23:05:14 +00:00
Tom Tromey
37e7dc121d
natFileChannelPosix.cc (write): Properly handle EINTR.
...
* gnu/java/nio/channels/natFileChannelPosix.cc (write): Properly
handle EINTR.
From-SVN: r113082
2006-04-19 17:01:53 +00:00
Tom Tromey
dff81d4f4c
re PR libgcj/27171 (UTF8 PrintWriter goes haywire)
...
PR libgcj/27171:
* testsuite/libjava.lang/pr27171.java: New file.
* testsuite/libjava.lang/pr27171.out: New file.
* gnu/gcj/convert/Output_UTF8.java (havePendingBytes): Return
true if we've seen a high surrogate.
(write): Handle high surrogates at the end of the stream.
Properly emit isolated low surrogates.
From-SVN: r113013
2006-04-17 21:41:47 +00:00
Andreas Tobler
c60fe329d5
stringconst2.java: Print a stack trace in case of failure.
...
2006-04-17 Andreas Tobler <a.tobler@schweiz.ch>
* testsuite/libjava.lang/stringconst2.java: Print a stack trace in case
of failure.
From-SVN: r113011
2006-04-17 23:18:23 +02:00
Tom Tromey
eec69c4eca
re PR libgcj/26522 (gcc-4.1.0-RC{1,2} install headers into a top-level (root) /include)
...
PR libgcj/26522:
* Makefile.in: Rebuilt.
* Makefile.am (libsubdir): New variable.
From-SVN: r112925
2006-04-13 21:04:04 +00:00
NAKATA Maho
04522557c7
re PR libgcj/23829 (FreeBSD 5 support for libjava)
...
PR libgcj/23829
* configure.ac: Link against -lpthread rather than -lc_r on
FreeBSD 5 and above.
* configure: Regenerate.
From-SVN: r112897
2006-04-12 19:57:02 +00:00
Bryce McKinlay
20cbfac4e9
SystemClassLoader.java (addClass): Get the value of package-private field "loadedClasses" using reflection.
...
* gnu/gcj/runtime/SystemClassLoader.java (addClass): Get the value
of package-private field "loadedClasses" using reflection.
* java/lang/VMCompiler.java (compileClass): Remove unreachable catch
block.
From-SVN: r112858
2006-04-11 17:23:00 +01:00
Matthias Klose
615baed708
libjava.exp (libjava_init): Recognize multilib directory names containing underscores.
...
gcc/testsuite:
2006-04-10 Matthias Klose <doko@debian.org>
* testsuite/lib/libjava.exp (libjava_init): Recognize multilib
directory names containing underscores.
libffi:
2006-04-10 Matthias Klose <doko@debian.org>
* testsuite/lib/libjava.exp (libjava_init): Recognize multilib
directory names containing underscores.
libgomp:
2006-04-10 Matthias Klose <doko@debian.org>
* testsuite/lib/libjava.exp (libjava_init): Recognize multilib
directory names containing underscores.
libjava:
2006-04-10 Matthias Klose <doko@debian.org>
* testsuite/lib/libjava.exp (libjava_init): Recognize multilib
directory names containing underscores.
libmudflap:
2006-04-10 Matthias Klose <doko@debian.org>
* testsuite/lib/libjava.exp (libjava_init): Recognize multilib
directory names containing underscores.
libstdc++:
2006-04-10 Matthias Klose <doko@debian.org>
* testsuite/lib/libjava.exp (libjava_init): Recognize multilib
directory names containing underscores.
From-SVN: r112833
2006-04-10 21:34:19 +00:00
Andrew Haley
e92857a103
x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): New.
...
2006-04-10 Andrew Haley <aph@redhat.com>
* include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): New.
(SIGNAL_HANDLER): Mark arg as unused.
* configure.host (x86_64-* DIVIDESPEC): Use
fno-use-divide-subroutine.
From-SVN: r112827
2006-04-10 16:01:23 +00:00
Andreas Tobler
a05906031a
configure: Rebuilt.
...
2006-04-08 Andreas Tobler <a.tobler@schweiz.ch>
* configure: Rebuilt.
From-SVN: r112766
2006-04-08 00:33:30 +02:00
Andrew Haley
544c479db3
InetAddress.java: Throw an UnknownHostException if lookup fails.
...
2006-04-07 Andrew Haley <aph@redhat.com>
* java/net/InetAddress.java: Throw an UnknownHostException if
lookup fails.
From-SVN: r112754
2006-04-07 15:42:07 +00:00
Andreas Tobler
6e6bfd3a7b
acinclude.m4 (AC_LTDL_SHLIBEXT): Add GCJ LOCAL marker to indicate GCJ specific stuff.
...
2006-04-06 Andreas Tobler <a.tobler@schweiz.ch>
* acinclude.m4 (AC_LTDL_SHLIBEXT): Add GCJ LOCAL marker to indicate
GCJ specific stuff.
From-SVN: r112736
2006-04-06 21:22:45 +02:00
Tom Tromey
f441078656
re PR libgcj/26625 (libgcj-4.2.0.jar not rebuilt after a source file change)
...
libjava/classpath:
PR libgcj/26625:
* lib/Makefile.in: Rebuilt.
* lib/Makefile.am (compile-classes): Touch the output file.
libjava:
PR libgcj/26625:
* Makefile.in: Rebuilt.
* Makefile.am (libgcj-$(gcc_version).jar): Depend on
classpath/lib/compile-classes.
From-SVN: r112724
2006-04-05 22:47:51 +00:00
Ranjit Mathew
20762656fa
configure.host: Add -fno-omit-frame-pointer to libgcj_flags for MinGW since EBP is used for...
...
* configure.host: Add -fno-omit-frame-pointer to libgcj_flags for
MinGW since EBP is used for backtracking through call frames on this
platform.
From-SVN: r112708
2006-04-05 15:18:19 +00:00
Archit Shah
917173f4d2
re PR libgcj/25414 (should update rmic)
...
2006-04-05 Archit Shah <ashah@redhat.com>
PR java/25414
* gnu/java/rmi/rmic/CompilerProcess.java (computeTypicalArguments):
Add classpath argument.
* gnu/java/rmi/rmic/Compile_gcj.java (computeArguments): Adjust
caller.
* gnu/java/rmi/rmic/Compile_jikes.java (computeArguments): Likewise.
* gnu/java/rmi/rmic/Compile_kjc.java (computeArguments): Likewise.
* gnu/java/rmi/rmic/Compiler.java (getClasspath, setClasspath): New.
* gnu/java/rmi/rmic/RMIC.java: Set classpath for compiler, call
mkdirs for destination directory, correct handling of superclasses
and interfaces of the remote class, correct handling of exceptions
declared by remote methods.
From-SVN: r112699
2006-04-05 09:53:08 +00:00
Tom Tromey
119afc377a
re PR classpath/26990 (SecurityManager.checkExit() problem)
...
PR libgcj/26990:
* prims.cc (_Jv_RunMain): Use exitNoChecksAccessor.
* gnu/java/lang/natMainThread.cc (call_main): Use
exitNoChecksAccessor.
* testsuite/libjava.lang/pr26990.out: New file.
* testsuite/libjava.lang/pr26990.java: New file.
* java/lang/Runtime.java (exitNoChecks): New method.
(exitNoChecksAccessor): Likewise.
(exit): Call exitNoChecks.
From-SVN: r112685
2006-04-04 23:25:09 +00:00
Tom Tromey
7812310c7a
gen-classlist.sh.in: Correct handle generated files.
...
* lib/gen-classlist.sh.in: Correct handle generated files.
2006-04-04 Mark Wielaard <mark@klomp.org>
* lib/gen-classlist.sh.in: Use classes.tmp, not classes.2
as temporary file name.
2006-04-04 Tom Tromey <tromey@redhat.com>
* lib/split-for-gcj.sh: Updated for multi-field format.
* lib/Makefile.am (CLEANFILES): Added classes.2.
* lib/gen-classlist.sh.in (GCJ): Removed. Create classes.1 and
classes.2 using multiple fields.
From-SVN: r112677
2006-04-04 20:05:01 +00:00
Tom Tromey
41ed243ff0
Temporarily reverting previous patch due to build-breaking bug.
...
From-SVN: r112671
2006-04-04 15:44:59 +00:00
Tom Tromey
67913890b2
[multiple changes]
...
2006-04-04 Mark Wielaard <mark@klomp.org>
* lib/gen-classlist.sh.in: Use classes.tmp, not classes.2
as temporary file name.
2006-04-04 Tom Tromey <tromey@redhat.com>
* lib/split-for-gcj.sh: Updated for multi-field format.
* lib/Makefile.am (CLEANFILES): Added classes.2.
* lib/gen-classlist.sh.in (GCJ): Removed. Create classes.1 and
classes.2 using multiple fields.
From-SVN: r112664
2006-04-04 14:06:20 +00:00
Tom Tromey
76c6ea0c8b
Makefile.in: Rebuilt.
...
fastjar
Removed
libjava
* Makefile.in: Rebuilt.
* Makefile.am (ZIP): Removed.
(libgcj-$(gcc_version).jar): Use $(JAR).
(src.zip): Likewise.
* configure: Rebuilt.
* configure.ac: Check for jar. Removed code to set ZIP.
From-SVN: r112654
2006-04-04 00:30:05 +00:00
Andrew Haley
f096660b46
Float_2.java: New file.
...
2006-04-03 Andrew Haley <aph@redhat.com>
* testsuite/libjava.lang/Float_2.java: New file.
From-SVN: r112636
2006-04-03 10:15:25 +00:00
Andreas Tobler
6b04402b92
posix.cc (_Jv_platform_nanotime): Declare id with clockid_t.
...
2006-03-31 Andreas Tobler <a.tobler@schweiz.ch>
* posix.cc (_Jv_platform_nanotime): Declare id with clockid_t.
From-SVN: r112587
2006-03-31 22:38:55 +02:00
Tom Tromey
105aa1532e
aclocal.m4, [...]: Rebuilt.
...
* aclocal.m4, configure, Makefile.in: Rebuilt.
* configure.ac: Use AM_MAINTAINER_MODE.
From-SVN: r112542
2006-03-30 16:59:27 +00:00
Tom Tromey
1549c4e552
re PR java/26042 (ICE in mark_reference_fields, at java/boehm.c:105)
...
gcc/java
PR java/26042:
* parse.y (java_reorder_fields): Reset superclass field's size as
well.
libjava
PR java/26042:
* testsuite/libjava.compile/pr26042.java: New file.
From-SVN: r112540
2006-03-30 16:39:17 +00:00
Tom Tromey
9b71c701c6
re PR bootstrap/26901 (../../../../../gcc/libjava/classpath/tools/gnu/classpath/tools/AbstractMethodGenerator.java:1: fatal error: unknown encoding: 'roman8')
...
PR gcc/26901:
* Makefile.in: Rebuilt.
* Makefile.am (SUBDIRS): Remove 'tools'.
(DIST_SUBDIRS): Likewise.
From-SVN: r112510
2006-03-29 21:33:08 +00:00
Tom Tromey
d4e3674320
sources.am, [...]: Rebuilt.
...
* sources.am, Makefile.in: Rebuilt.
* scripts/makemake.tcl: Scan classpath/external/relaxngDatatype.
From-SVN: r112506
2006-03-29 20:13:23 +00:00
Andreas Tobler
94a0c1fc2a
acinclude.m4: Restore the situation that we don't build modules on darwin.
...
2006-03-29 Andreas Tobler <a.tobler@schweiz.ch>
* acinclude.m4: Restore the situation that we don't build modules on
darwin.
* configure: Regenerated.
From-SVN: r112503
2006-03-29 20:47:39 +02:00
Tom Tromey
531e214a01
re PR java/26390 (Problem dispatching method call when method does not exist in superclass)
...
gcc/java
PR java/26390:
* parse.y (find_most_specific_methods_list): Added 'class'
argument.
(lookup_method_invoke): Updated.
libjava
PR java/26390:
* testsuite/libjava.lang/pr26390.out: New file.
* testsuite/libjava.lang/pr26390.java: New file.
* sources.am, Makefile.in: Rebuilt.
* scripts/makemake.tcl: Compile gnu/java/awt/peer/swing.
From-SVN: r112499
2006-03-29 16:31:53 +00:00
Tom Tromey
bd4ca42499
posix.cc (_Jv_platform_nanotime): Look for CLOCK_MONOTONIC and CLOCK_HIGHRES.
...
* posix.cc (_Jv_platform_nanotime): Look for CLOCK_MONOTONIC and
CLOCK_HIGHRES.
From-SVN: r112494
2006-03-29 15:22:30 +00:00
Tom Tromey
8887f02b44
Correcting PR number in ChangeLog:
...
PR libgcj/26441:
* Merged libltdl 1.5.16 from vendor branch.
From-SVN: r112465
2006-03-28 19:05:21 +00:00
Tom Tromey
fa275f0a5c
re PR libgcj/26441 (Old libltdl may cause memory leak in Class.forName())
...
PR libgcj/26641:
* Merged libltdl 1.5.16 from vendor branch.
From-SVN: r112464
2006-03-28 19:02:25 +00:00
Anthony Balkissoon
792617a52a
unicode-muncher.pl: Removed this file.
...
2006-03-28 Anthony Balkissoon <abalkiss@redhat.com>
* scripts/unicode-muncher.pl: Removed this file.
* scripts/MakeCharTables.java: Likewise.
* scripts/unicode-to-chartables.pl: New file.
* java/lang/natCharacter.cc:
(UNASSIGNED_TYPE): New field.
(UNASSIGNED_DIGIT): Likewise.
(UNASSIGNED_DIRECTION): Likewise.
(UNASSIGNED_NUMERIC_VALUE): Likewise.
(PRIVATE_TYPE): Likewise.
(PRIVATE_DIRECTION): Likewise.
(readCodePoint): New method.
(getType(jint)): Likewise.
(toLowerCase(jint)): Likewise.
(toUpperCase(jint)): Likewise.
(toTitleCase(jint)): Likewise.
(digit(jint, jint)): Likewise.
(getNumericValue(jint)): Likewise.
(getDirectionality(jint)): Likewise.
(readChar),
(getType(jchar)),
(toLowerCase(jchar)),
(toUpperCase(jchar)),
(toTitleCase(jchar)),
(digit(jchar, jint)),
(getNumericValue(jchar)),
(getDirectionality(jchar)): Changed references from data to data[0],
blocks to blocks[0], direction to direction[0], numValue to
numValue[0], upper to upper[0], lower to lower[0], and shift to
shift[0] to reflect the new structures in java-chartables.h.
* java/lang/Character.java:
(readCodePoint): Declared new native method.
(getType(int)): Likewise.
(toLowerCase(int)): Likewise.
(toUpperCase(int)): Likewise.
(toTitleCase(int)): Likewise.
(digit(int, int)): Likewise.
(getNumericValue(int)): Likewise.
(getDirectionality(int)): Likewise.
(isLowerCase(int)): New method.
(isUpperCase(int)): Likewise.
(itTitleCase(int)): Likewise.
(isDigit(int)): Likewise.
(isDefined(int)): Likewise.
(isLetter(int)): Likewise.
(isLetterOrDigit(int)): Likewise.
(isJavaIdentifierStart(int)): Likewise.
(isJavaIdentifierPart(int)): Likewise.
(isUnicodeIdentifierStart(int)): Likewise.
(isUnicodeIdentifierPart(int)): Likewise.
(isIdentifierIgnorable(int)): Likewise.
(isSpaceChar(int)): Likewise.
(isWhitespace(int)): Likewise.
(isISOControl(int)): Likewise.
(isMirrored(int)): Likewise.
* include/java-chartables.h: Generated from
scripts/unicode-to-chartables.h.
From-SVN: r112454
2006-03-28 16:12:52 +00:00
David Daney
ccf37f7736
re PR libgcj/26858 (NullPointerException not generated for large classes...)
...
* testsuite/libjava.lang/PR26858.java: New test.
* testsuite/libjava.lang/PR26858.out: Ditto.
* testsuite/libjava.lang/PR26858.xfail: Ditto.
From-SVN: r112374
2006-03-25 01:53:48 +00:00
Tom Tromey
3406876bb2
re PR libgcj/26706 ([4.1/4.2] Unexpanded macro in libjava/classpath/configure)
...
PR libgcj/26706:
* aclocal.m4, configure: Rebuilt.
* configure.ac (GCC_NO_EXECUTABLES): Moved earlier.
From-SVN: r112142
2006-03-16 19:08:07 +00:00
Kaz Kojima
3062335c07
linux-unwind.h (shmedia_fallback_frame_state): Set fs->signal_frame.
...
* config/sh/linux-unwind.h (shmedia_fallback_frame_state): Set
fs->signal_frame.
(sh_fallback_frame_state): Likewise.
* include/sh-signal.h (MAKE_THROW_FRAME): Change into empty
macro.
From-SVN: r112122
2006-03-16 02:44:10 +00:00
Tom Tromey
289e97d2c5
re PR classpath/26688 (Classpath Makefiles assume CVS source control)
...
PR libgcj/26688:
* lib/Makefile.in: Rebuilt.
* lib/Makefile.am (propertydirs): Ignore .svn directories.
(metafiles): Likewise.
From-SVN: r112115
2006-03-16 01:54:51 +00:00
Tom Tromey
b32d6f93f8
jcf-write.c (generate_bytecode_insns): Use qualifying type for non-static method calls.
...
gcc/java
* jcf-write.c (generate_bytecode_insns): Use qualifying type for
non-static method calls.
libjava
* testsuite/libjava.jacks/jacks.xfail: Removed
13.1-runtime-method-5.
From-SVN: r112102
2006-03-16 00:08:12 +00:00
Tom Tromey
492edb3ac5
Correctly reference PR java/26638 in ChangeLogs
...
From-SVN: r112094
2006-03-15 18:45:02 +00:00