Tom Tromey
cd3352b625
re PR libgcj/21785 (ClassNotFound during deserialization)
...
PR libgcj/21785:
* java/io/natObjectInputStream.cc (currentClassLoader): Removed.
(currentLoader): New method.
* java/io/ObjectInputStream.java (resolveProxyClass): Use
currentLoader.
(currentLoader): Now native.
(currentClassLoader): Removed.
* testsuite/libjava.lang/pr21785.java: New file.
* testsuite/libjava.lang/pr21785.out: New file.
From-SVN: r100462
2005-06-01 19:58:25 +00:00
Ranjit Mathew
27358466f9
Testsuite adjustments for PR java/19870.
...
* testsuite/libjava.lang/PR19870.java: New testcase.
* testsuite/libjava.lang/PR19870.out: Expected output for the
testcase.
* testsuite/libjava.jacks/jacks.xfail: Add
8.5.2-accessible-static-member-usage-3 and 15.8.4-static-2
From-SVN: r100245
2005-05-27 05:11:44 +00:00
David Daney
6bca4ff625
re PR libgcj/18220 (Test case libjava.lang/Process_3 does not end if "sed" not available)
...
2005-05-17 David Daney <ddaney@avtrex.com>
PR libgcj/18220
* testsuite/libjava.lang/Process_3.java (run): Exit on error.
From-SVN: r99877
2005-05-18 01:00:16 +00:00
Andrew Haley
58bf803e6c
bytearray.java: New file.
...
2005-04-06 Andrew Haley <aph@redhat.com>
* testsuite/libjava.lang/bytearray.java: New file.
* testsuite/libjava.lang/bytearray.out: New file.
* java/lang/ClassLoader.java (loadClassFromSig): Declare
(loadClass): Use it.
* java/lang/natClassLoader.cc (loadClassFromSig): New method.
From-SVN: r97756
2005-04-06 22:30:01 +00:00
Bryce McKinlay
b1e11d1e30
[multiple changes]
...
2005-03-07 Ranjit Mathew <rmathew@hotmail.com>
* lang.c (flag_new_verifier): Enable by default, regardless of ABI.
2005-03-08 Bryce McKinlay <mckinlay@redhat.com>
* testsuite/libjava.lang/pr13107_2.xfail: Remove xfail.
* testsuite/libjava.lang/pr13107_3.xfail: Likewise.
From-SVN: r96114
2005-03-08 16:24:21 +00:00
Tom Tromey
b55cb4a133
re PR java/20056 ('verification failed: incompatible type on stack' with --indirect-dispatch)
...
PR java/20056:
* verify.cc (type::equals): Fixed test.
* testsuite/libjava.lang/PR20056.out: New file.
* testsuite/libjava.lang/PR20056.java: New file.
From-SVN: r95266
2005-02-19 03:57:21 +00:00
Tom Tromey
5728cb6687
* testsuite/libjava.lang/PR19921.java: Use correct class name.
...
From-SVN: r95046
2005-02-14 20:56:11 +00:00
Tom Tromey
3cc0646dbc
re PR java/19921 (wrong argument count for invokeInterface with new multidimensional array)
...
* testsuite/libjava.lang/PR19921.out: Renamed from PR19929.out.
* testsuite/libjava.lang/PR19921.java: Renamed from PR19929.java.
From-SVN: r95045
2005-02-14 20:51:07 +00:00
Tom Tromey
adfec6a67b
re PR java/19921 (wrong argument count for invokeInterface with new multidimensional array)
...
gcc/java:
PR java/19921:
* jcf-write.c (generate_bytecode_insns) <CALL_EXPR>: Note the
stack effect of multianewarray.
libjava:
For PR java/19929:
* testsuite/libjava.lang/PR19929.out: New file.
* testsuite/libjava.lang/PR19929.java: New file.
From-SVN: r95041
2005-02-14 20:04:36 +00:00
Eric Botcazou
cde7853d20
Process_4.java (Process_4): Expect only a non-zero exit status from 'false'.
...
* testsuite/libjava.lang/Process_4.java (Process_4): Expect only
a non-zero exit status from 'false'.
From-SVN: r92860
2005-01-03 19:13:12 +00:00
Bryce McKinlay
28a6dfca3d
re PR libgcj/18699 (SIGSEGV in GC_local_gcj_malloc)
...
2004-12-01 Bryce McKinlay <mckinlay@redhat.com>
PR libgcj/18699
* testsuite/libjava.lang/PR18699.java,
testsuite/libjava.lang/PR18699.out: New test.
From-SVN: r91573
2004-12-01 18:34:54 +00:00
Tom Tromey
367390404d
* Merged gcj-abi-2-dev-branch to trunk.
...
(Actual changes too large to list in the commit message;
see ChangeLog.)
From-SVN: r91270
2004-11-25 03:47:08 +00:00
Mark Wielaard
bc2fed82b5
ExtraClassLoader.java: New.
...
2004-10-18 Mark Wielaard <mark@klomp.org>
Andrew Haley <aph@redhat.com>
* testsuite/libjava.lang/ExtraClassLoader.java: New.
Co-Authored-By: Andrew Haley <aph@redhat.com>
From-SVN: r89222
2004-10-18 14:13:18 +00:00
Rutger Ovidius
2abb138b79
re PR libgcj/17903 (Incorrect SHA result)
...
2004-10-12 Rutger Ovidius <ovidr@users.sourceforge.net>
PR libgcj/17903:
* testsuite/libjava.lang/md5test.java: New file.
* testsuite/libjava.lang/md5test.out: Likewise.
* testsuite/libjava.lang/shatest.java: Likewise.
* testsuite/libjava.lang/shatest.out: Likewise.
From-SVN: r88922
2004-10-12 12:13:39 +02:00
Tom Tromey
0a08595abd
re PR java/16789 (ICE in force_evaluation_order() on valid code)
...
PR java/16789:
* testsuite/libjava.lang/pr16789.out: New file.
* testsuite/libjava.lang/pr16789.java: New file.
From-SVN: r88046
2004-09-24 15:41:17 +00:00
David Daney
faa03cf1b4
Process_1.java: New test.
...
2004-08-03 David Daney <ddaney@avtrex.com>
* testsuite/libjava.lang/Process_1.java: New test.
* testsuite/libjava.lang/Process_2.java: New test.
* testsuite/libjava.lang/Process_3.java: New test.
* testsuite/libjava.lang/Process_4.java: New test.
* testsuite/libjava.lang/Process_5.java: New test.
* testsuite/libjava.lang/Process_6.java: New test.
* testsuite/libjava.lang/Process_1.out: Expected result.
* testsuite/libjava.lang/Process_2.out: Expected result.
* testsuite/libjava.lang/Process_3.out: Expected result.
* testsuite/libjava.lang/Process_4.out: Expected result.
* testsuite/libjava.lang/Process_5.out: Expected result.
* testsuite/libjava.lang/Process_6.out: Expected result.
From-SVN: r85881
2004-08-12 16:24:56 +00:00
Diego Novillo
c597ef4eab
re PR tree-optimization/16867 (Inline array initializer miscompilation at -O)
...
PR tree-optimization/16867
* tree.c (is_global_var): New function.
(needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
Call is_global_var.
* tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
Update all users.
(is_global_var): Declare.
* tree-dfa.c (dump_variable): Display global and addressable
attributes.
(add_referenced_var): Clarify documentation when marking
variables call-clobbered.
* tree-flow-inline.h (is_call_clobbered): Call is_global_var
instead of needs_to_live_in_memory.
(mark_call_clobbered): If the variable is a tag, mark it
DECL_EXTERNAL.
* tree-gimple.c (is_gimple_reg): Don't check for
TREE_ADDRESSABLE.
(is_gimple_non_addressable): Likewise.
* tree-ssa-alias.c (get_nmt_for): Always check whether the tag
needs to be marked call-clobbered.
(setup_pointers_and_addressables): Call is_global_var instead
of needs_to_live_in_memory.
* tree-ssa-dce.c (need_to_preserve_store): Remove.
Update all users with is_global_var.
(mark_stmt_if_obviously_necessary): Fix processing of aliased
stores. Don't check the virtual definitions. Rather, check
whether the store is going into global memory.
(find_obviously_necessary_stmts): Get the symbol from the PHI
result.
* tree-ssa-operands.c (get_call_expr_operands): Do not add
clobbering may-defs if the call does not have side effects.
libjava/ChangeLog
PR tree-optimization/16867
* testsuite/libjava.lang/PR16867.java: New test.
From-SVN: r85874
2004-08-12 10:34:11 -04:00
Andrew Haley
50ab464c2e
err14.java: New file.
...
2004-08-10 Andrew Haley <aph@redhat.com>
* testsuite/libjava.lang/err14.java: New file.
* testsuite/libjava.lang/err14.out: New file.
From-SVN: r85752
2004-08-10 14:21:05 +00:00
Bryce McKinlay
ce961468b7
TLtest.java: Reduce sleep time.
...
2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
* testsuite/libjava.lang/TLtest.java: Reduce sleep time.
* testsuite/libjava.lang/Thread_Alive.java: Remove old email address.
Reduce sleep time.
* testsuite/libjava.lang/Thread_HoldsLock.java: Modify to work around
compiler bug.
* testsuite/libjava.lang/Thread_Interrupt.java: Remove old email
address. Reduce sleep times. Synchronize with target threads before
attempting to interrupt them. Don't try to calibrate yeild count,
instead, always loop for a fixed time.
* testsuite/libjava.lang/Thread_Join.java: Remove old email address.
* testsuite/libjava.lang/Thread_Monitor.java: Likewise.
* testsuite/libjava.lang/Thread_Wait.java: Likewise.
* testsuite/libjava.lang/Thread_Wait_2.java: Likewise.
* testsuite/libjava.lang/Thread_Wait_Interrupt.java: Likewise.
* testsuite/libjava.lang/pr179.java: Likewise.
* testsuite/libjava.lang/Thread_Sleep.java: Likewise. Reduce sleep
time. Remove upper bounds check on sleep time.
From-SVN: r85248
2004-07-28 03:44:06 +01:00
Bryce McKinlay
0954f3eb52
Thread_HoldsLock.java: New test case.
...
2004-07-27 Bryce McKinlay <mckinlay@redhat.com>
* testsuite/libjava.lang/Thread_HoldsLock.java: New test case.
* testsuite/libjava.lang/Thread_HoldsLock.out: New.
From-SVN: r85234
2004-07-27 23:04:37 +01:00
Bryce McKinlay
ae066484df
ObjectStreamField (ObjectStreamField): Don't unset 'toset' for final fields.
...
2004-07-23 Bryce McKinlay <mckinlay@redhat.com>
* java/io/ObjectStreamField (ObjectStreamField): Don't unset 'toset'
for final fields.
* testsuite/libjava.lang/Serialization.java: New test.
* testsuite/libjava.lang/Serialization.out: New.
From-SVN: r85096
2004-07-23 22:46:09 +01:00
Bryce McKinlay
b845ed9ff8
re PR libgcj/16204 (File I/O fails on files >= 2^31 bytes (2GB))
...
2004-07-14 Bryce McKinlay <mckinlay@redhat.com>
PR libgcj/16204
* Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
large file support.
* Makefile.in: Rebuilt.
* testsuite/libjava.lang/LargeFile.java: New test case.
* testsuite/libjava.lang/LargeFile.out: New file.
From-SVN: r84733
2004-07-15 01:58:41 +01:00
Roger Sayle
2d99c042fc
builtins.c (java_builtins): Add acos, asin, ceil and floor.
...
* builtins.c (java_builtins): Add acos, asin, ceil and floor.
(initialize_builtins): Likewise, define acos, asin, ceil and floor.
* testsuite/libjava.lang/MathBuiltin.java: Add tests for acos, asin,
ceil and floor.
From-SVN: r81341
2004-04-30 14:15:08 +00:00
Bryce McKinlay
d7afe286b3
[multiple changes]
...
2004-04-14 Andrew Haley <aph@redhat.com>
Bryce McKinlay <mckinlay@redhat.com>
* java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Use
_Jv_LookupInterfaceMethodIdx for calls to interfaces.
* include/jvm.h (_Jv_CallAnyMethodA): Add new face' arg.
* testsuite/libjava.lang/InvokeInterface.java: New file.
* testsuite/libjava.lang/InvokeInterface.out: New file.
2004-04-14 Bryce McKinlay <mckinlay@redhat.com>
* class.c (get_interface_method_index): New function. Return
dispatch index for interface method.
(make_method_value): For interface methods, set index field to
iface dispatch index, not DECL_VINDEX.
* expr.c (build_invokeinterface): Use get_interface_method_index.
From-SVN: r80684
2004-04-14 18:45:20 +01:00
Tom Tromey
fe1081b017
re PR libgcj/13107 (Wrong verification error in gij: recursive subroutine call)
...
PR libgcj/13107:
* testsuite/libjava.lang/pr13107_2.xfail: New file.
* testsuite/libjava.lang/pr13107_3.xfail: New file.
* testsuite/libjava.lang/pr13107_3.java: New file.
* testsuite/libjava.lang/pr13107_3.out: New file.
* testsuite/libjava.lang/pr13107_2.java: New file.
* testsuite/libjava.lang/pr13107_2.out: New file.
* testsuite/libjava.lang/pr13107.java: New file.
* testsuite/libjava.lang/pr13107.out: New file.
* verify.cc (jsr_ptrs): Removed.
(entry_points): Likewise.
(struct subr_info): Likewise.
(struct subr_entry_info): Likewise.
(type_val::unused_by_subroutine_type): Likewise.
(type::merge): Don't handle unused_by_subroutine_type.
(type::print): Likewise.
(state::flags): Removed.
(state::subroutine): Likewise.
(state::seen_subrs): Likewise.
(state::NO_STACK): Likewise.
(state::FLAG_CHANGED, state::FLAG_UNUSED): Likewise.
(state): Updated all methods.
(state::clean_subrs): Removed.
(state::state): Removed `ret_semantics' flag.
(state::copy): Likewise.
(state::add_subr): Removed.
(state::enter_subroutine): Likewise.
(type::set_return_address): New method.
(handle_jsr_insn): Set return address on the type. Always
invalidate PC after call.
(check_nonrecursive_call): Removed.
(~_Jv_BytecodeVerifier): Updated.
(branch_prepass): Removed special handling of jsr.
(note_branch_target): Likewise.
(get_subroutine): Removed.
(state::merge): Don't merge subroutines and don't handle
NO_STACK. Removed ret_semantics and jsr_semantics arguments.
(state::note_variable): Removed.
(state::is_unmerged_ret_state): Likewise.
(state::print): Updated.
(set_variable): Likewise.
(merge_into): Renamed from push_jump_merge. Removed ret_semantics
and jsr_semantics arguments. Updated for new reverification
list.
(pop_jump): Rewrote.
(construct_primitive_array_type): Updated.
(state::next): Removed.
(INVALID_STATE): New define.
(state::INVALID): Removed.
(state::NO_NEXT): New value.
(state::pc, state::next): New fields.
(state::get_pc): New method.
(next_verify_pc): Removed.
(next_verify_state): New field.
(verify_instructions_0): Always check for falling off end.
(linked): New type.
(linked_utf8): Removed.
(states): Changed type.
(type::state_mergeable_p): New method.
(state::state_mergeable_p): Likewise.
(handle_ret_insn): Removed most code.
(state::reverify): New method.
(add_new_state): Likewise.
(state::set_pc): Likewise.
From-SVN: r76395
2004-01-23 02:49:57 +00:00
Tom Tromey
ec629ef5a4
For PR java/12915:
...
* libjava.lang/PR12915.java: New file.
* libjava.lang/PR12915.out: New file.
From-SVN: r73460
2003-11-11 20:11:43 +00:00
Tom Tromey
ab3ec830b3
re PR libgcj/12416 (java.lang.Class.getFields returns duplicate entries.)
...
PR libgcj/12416:
* libjava.lang/PR12416.out: New file.
* libjava.lang/PR12416.java: New file.
From-SVN: r72817
2003-10-22 19:28:15 +00:00
Tom Tromey
fc41584e92
re PR libgcj/12656 (Inherited main( ) Method Not Seen At Runtime)
...
PR libgcj/12656:
* libjava.lang/PR12656.java: New file.
* libjava.lang/PR12656.out: New file.
From-SVN: r72810
2003-10-22 18:04:35 +00:00
Ralph Loader
35e1369c77
StringBuffer.java (getChars): Fix array index checks.
...
* java/lang/StringBuffer.java (getChars): Fix array index checks.
(append, substring, insert): Likewise.
* testsuite/libjava.lang/StringBuffer_overflow.java: New file.
* testsuite/libjava.lang/StringBuffer_overflow.out: New file.
From-SVN: r72579
2003-10-16 21:35:42 +00:00
Ralph Loader
2488a51e82
natString.cc (getChars): Fix validation of array indexes.
...
* java/lang/natString.cc (getChars):
Fix validation of array indexes.
(getBytes, regionMatches, startsWith, valueOf): Likewise.
* testsuite/libjava.lang/String_overflow.java: New file.
* testsuite/libjava.lang/String_overflow.out: New file.
From-SVN: r72578
2003-10-16 21:28:23 +00:00
Ralph Loader
bf1b388d0e
prims.cc (_Jv_NewObjectArray): Make sure byte size doesn't overflow a jint.
...
* prims.cc (_Jv_NewObjectArray): Make sure byte size doesn't
overflow a jint.
(_Jv_NewPrimArray): Check for overflowing a jint, replacing a
check for overflowing size_t, since the lower level functions
take a jint.
* testsuite/libjava.lang/newarray_overflow.java: New file.
* testsuite/libjava.lang/newarray_overflow.out: New file.
From-SVN: r72577
2003-10-16 21:19:53 +00:00
Ralph Loader
88962108fc
re PR libgcj/12350 (StringBuffer.substring handles shared flag incorrected.)
...
2003-09-21 Ralph Loader <suckfish@ihug.co.nz>
PR java/12350:
* java/lang/StringBuffer.java (substring): Fix handling of shared
flag.
2003-09-21 Ralph Loader <suckfish@ihug.co.nz>
PR java/12350
* libjava.lang/PR12350.java: New file.
* libjava.lang/PR12350.out: New file.
From-SVN: r71651
2003-09-22 09:17:49 +01:00
Jeff Sturm
09edb09355
compile.exp: Test with -O3 rather than -O.
...
* libjava.compile/compile.exp: Test with -O3 rather than -O.
* libjava.lang/lang.exp: Likewise.
From-SVN: r71102
2003-09-05 01:54:21 +00:00
Andreas Tobler
0099b66d36
re PR libgcj/8823 (gij doesn't handle "Miranda methods" (abstract class that implements interface but doesn't define all methods))
...
2003-08-23 Andreas Tobler <a.tobler@schweiz.ch>
PR libgcj/8823
* libjava.lang/pr8823.xfail: Removed.
From-SVN: r70730
2003-08-23 07:31:36 +02:00
Tom Tromey
1c41b3d6cf
For PR libgcj/7482:
...
* libjava.lang/PR7482.java: New file.
* libjava.lang/PR7482.out: New file.
From-SVN: r69750
2003-07-24 17:17:24 +00:00
Jeff Sturm
cd61dacbc8
SyncTest.java (run): Cache .class value.
...
2003-07-09 Jeff Sturm <jsturm@one-point.com>
* libjava.lang/SyncTest.java (run): Cache .class value.
From-SVN: r69153
2003-07-09 21:07:42 +00:00
Roger Sayle
5f158b4400
builtins.c (define_builtin_type, [...]): Delete.
...
* builtins.c (define_builtin_type, builtin_types): Delete.
(define_builtin): Rewritten to take just the built-in code,
the function's name, type and fallback library function name.
All built-ins used by Java are implicit and BUILT_IN_NORMAL.
(initialize_builtins): Overhaul to define the GCC builtins
used by gcj manually, providing the Java run-time's
implementations as the fallback library function.
* libjava.lang/MathBuiltin.java: New test case.
* libjava.lang/MathBuiltin.out: New file.
From-SVN: r67632
2003-06-08 18:17:53 +00:00
Roger Sayle
4fa26a6079
flags.h (flag_wrapv): New flag controlling overflow semantics.
...
* flags.h (flag_wrapv): New flag controlling overflow semantics.
* toplev.c (flag_wrapv): Declare the variable with default false.
(lang_independent_options): New option "-fwrapv" to set the above.
* fold-const.c (extract_muldiv_1): Disable optimization of (2*x)/2
as x, when signed arithmetic overflow wraps around.
(fold): Optimize "-A - B" as "-B - A" if overflow wraps around.
* loop.c (basic_induction_var): Ignore BIVs that rely on undefined
overflow when flag_wrapv is true.
* java/lang.c (java_init_options): Prescribe wrap-around two's
complement arithmetic overflow by setting flag_wrapv.
* doc/invoke.texi: Document new -fwrapv command line option.
* doc/c-tree.texi: Mention that the overflow semantics of
NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR and MULT_EXPR is dependent
upon both flag_wrapv and flag_trapv.
* gcc.dg/fwrapv-1.c: New test case.
* gcc.dg/fwrapv-2.c: New test case.
* libjava.lang/Overflow.java: New test.
* libjava.lang/Overflow.out: New file.
From-SVN: r67270
2003-05-31 13:23:32 +00:00
Tom Tromey
ac7aae5e2b
verify.java: New file.
...
* libjava.lang/verify.java: New file.
* libjava.lang/verify.out: New file.
From-SVN: r66547
2003-05-07 01:23:16 +00:00
Tom Tromey
c93139b826
re PR libgcj/10582 (array assignment fails in some situations)
...
PR libgcj/10582:
* libjava.lang/assign.java: New file.
* libjava.lang/assign.out: New file.
From-SVN: r66347
2003-05-01 21:31:58 +00:00
Mark Mitchell
f2d80e7e81
re PR middle-end/8866 (Bug in switch statement code generation -- missing label)
...
PR middle-end/8866
* cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
jumptables.
PR middle-end/8866
* libjava.lang/PR8866.java: New test.
From-SVN: r65698
2003-04-16 20:39:12 +00:00
Andrew Haley
5a30c9b7ab
Throw_2.java (main): Make a successful test produce some output.
...
2003-04-16 Andrew Haley <aph@redhat.com>
* libjava.lang/Throw_2.java (main): Make a successful test produce
some output.
From-SVN: r65678
2003-04-16 11:43:04 +00:00
Tom Tromey
218d1401af
initfield.java: New file.
...
* libjava.lang/initfield.java: New file.
* libjava.lang/initfield.out: New file.
From-SVN: r64184
2003-03-11 20:36:34 +00:00
Jeff Sturm
ba5d2d3dc1
CompareNaN.java: New test.
...
* libjava.lang/CompareNaN.java: New test.
* libjava.lang/CompareNaN.out: New test.
From-SVN: r63003
2003-02-17 16:07:49 +00:00
Kaveh R. Ghazi
4f8d9f2be6
* libjava.lang/pr8823.xfail: New file, add "xfail-byte".
...
From-SVN: r61917
2003-01-28 01:34:49 +00:00
Tom Tromey
453eac4a7d
pr8945.java: New file.
...
* libjava.lang/pr8945.java: New file.
* libjava.lang/pr8945.out: New file.
From-SVN: r60286
2002-12-19 06:40:03 +00:00
Tom Tromey
1d9033cb3f
Test for PR libgcj/8823:
...
* libjava.lang/pr8823.java: New file.
* libjava.lang/pr8823.out: New file.
From-SVN: r59953
2002-12-09 01:20:38 +00:00
Tom Tromey
0c4077f9c7
override.java: New file.
...
* libjava.lang/override.java: New file.
* libjava.lang/override.out: New file.
From-SVN: r59848
2002-12-05 08:06:10 +00:00
Tom Tromey
fc589541ad
For PR java/8676:
...
* libjava.lang/pr8676.java: New file.
* libjava.lang/pr8676.out: New file.
From-SVN: r59379
2002-11-22 16:54:22 +00:00
Andrew Haley
deb778c249
utilTest.java: New.
...
2002-11-04 Andrew Haley <aph@redhat.com>
* libjava.lang/utilTest.java: New.
* libjava.lang/utilTest.out: New.
From-SVN: r58795
2002-11-04 17:34:09 +00:00