Commit Graph

129 Commits

Author SHA1 Message Date
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
Tom Tromey
863d115f33 initexc.java (fail): Static initializers must be able to complete normally.
* libjava.lang/initexc.java (fail): Static initializers must be
	able to complete normally.  From Eric Blake.

From-SVN: r58765
2002-11-03 01:30:28 +00:00
Tom Tromey
2640ad1110 initexc.java: New file.
* libjava.lang/initexc.java: New file.
	* libjava.lang/initexc.out: New file.

From-SVN: r58761
2002-11-02 23:36:47 +00:00
Tom Tromey
a70b59e1db For PR java/8415:
* libjava.lang/pr8415.java: New file.
	* libjava.lang/pr8415.out: New file.

From-SVN: r58732
2002-11-02 00:19:52 +00:00
Tom Tromey
f7d11ebda1 Primes.java: Removed.
* libjava.lang/Primes.java: Removed.
	* libjava.lang/Primes.out: Removed.

From-SVN: r58498
2002-10-24 17:45:23 +00:00
Tom Tromey
6ddbb7ebba For PR java/6388:
* libjava.lang/pr6388.java: New file.
	* libjava.lang/pr6388.out: New file.

From-SVN: r58475
2002-10-23 22:56:13 +00:00
Andrew Haley
20a5fa3d0c cvs commit fubar.
From-SVN: r58178
2002-10-15 19:25:13 +00:00
Andrew Haley
de78b090db Fix bad checkin.
From-SVN: r58177
2002-10-15 19:00:24 +00:00
Andrew Haley
f95eae39f8 EvaluationOrder.java (EvaluationOrder): New.
2002-10-15  Andrew Haley  <aph@redhat.com>

        * libjava.lang/EvaluationOrder.java (EvaluationOrder): New.
        * libjava.lang/EvaluationOrder.out (EvaluationOrder): New.

From-SVN: r58176
2002-10-15 18:43:11 +00:00
Andrew Haley
006941eb2f StaticConstructor.java: New.
2002-10-14  Andrew Haley  <aph@redhat.com>

        * libjava.lang/StaticConstructor.java: New.
        * libjava.lang/StaticConstructor.out: New.

From-SVN: r58131
2002-10-14 19:02:56 +00:00
Andrew Haley
cd8dbeeff3 Array_3.java (baz): New.
2002-10-03  Andrew Haley  <aph@redhat.com>

	* libjava.lang/Array_3.java (baz): New.
	(main): Call baz.

From-SVN: r57774
2002-10-03 13:12:01 +00:00
Anthony Green
d3cc3f10da Add Proxy support.
From-SVN: r57635
2002-09-30 05:19:09 +00:00
Rainer Orth
c1740ae3c1 compile.exp: Sort sources.
* libjava.compile/compile.exp: Sort sources.
	* libjava.jni/jni.exp (gcj_jni_run): Likewise.
	* libjava.lang/lang.exp: Likewise.

From-SVN: r55558
2002-07-18 17:42:31 +00:00
Andrew Haley
6ac0c1e36f inline.java: New file.
2002-07-02  Andrew Haley  <aph@redhat.com>

        * libjava.lang/inline.java: New file.
        * libjava.lang/inline.out: Likewise.

        * libjava.lang/Array_3.java: Add another case.

From-SVN: r55186
2002-07-02 17:21:10 +00:00
Tom Tromey
1632a23685 * libjava.lang/PR6520.java: Fixed typo.
From-SVN: r54503
2002-06-11 14:38:44 +00:00
Tom Tromey
d8f19ccfab * libjava.lang/PR6520.java: New file. For PR java/6520.
From-SVN: r54482
2002-06-11 03:50:30 +00:00
Bryce McKinlay
1457a0b52a re PR java/6820 (miscompilation of (a,++a) as arguments to final method)
* libjava.lang/PR6820.java: New file.
	* libjava.lang/PR6820.out: New file.

From-SVN: r53908
2002-05-27 06:47:40 +01:00
Bryce McKinlay
30def3f537 re PR java/6729 (Compiler error causing break of java.lang.Character.isWhitespace)
* libjava.lang/PR6729.java: New file.
	* libjava.lang/PR6729.out: New file.

From-SVN: r53759
2002-05-23 04:32:05 +01:00
Bryce McKinlay
851ac95734 Test case for PR 6729.
From-SVN: r53758
2002-05-23 04:30:13 +01:00
Mark Wielaard
de6ba6e546 For PR java/6519:
* libjava.lang/emptystring.java: New.
	* libjava.lang/emptystring.out: New.

From-SVN: r53157
2002-05-04 13:24:40 +00:00
Mark Wielaard
03408d2b80 negzero.java: New.
* libjava.lang/negzero.java: New.
	* libjava.lang/negzero.out: New.

From-SVN: r52429
2002-04-17 16:39:47 +00:00
Loren J. Rittle
4b4248b674 SyncGlobal.java, [...]: New test case.
* libjava.lang/SyncGlobal.java, libjava.lang/SyncGlobal.out:
	New test case.

From-SVN: r52207
2002-04-12 08:33:13 +00:00
Bryce McKinlay
973348ec02 re PR java/6204 (gcj generates invalid byte code)
* libjava.lang/PR6204.java, libjava.lang/PR6204.out: New test case.
	* libjava.lang/PR6085.java, libjava.lang/PR6085.out: Likewise.

From-SVN: r52056
2002-04-09 06:25:11 +01:00
Andrew Haley
4d00945e45 Throw_2.java: New.
2002-03-28  Andrew Haley  <aph@redhat.com>

	* libjava.lang/Throw_2.java: New.
	* libjava.lang/Throw_2.out: New.

From-SVN: r51515
2002-03-28 16:24:21 +00:00
Anthony Green
f5cfade6fa InvokeReturn.java: Modify test for targets which do not yet support reflection.
2002-03-27  Anthony Green  <green@redhat.com>

	* libjava.lang/InvokeReturn.java: Modify test for targets
	which do not yet support reflection.

From-SVN: r51455
2002-03-27 16:31:18 +00:00
Andrew Haley
f42f14a9ca Thread_Interrupt.java (Looper.calibrate): New.
2002-03-21  Andrew Haley  <aph@redhat.com>

	* libjava.lang/Thread_Interrupt.java (Looper.calibrate): New.
	(yields): New.

From-SVN: r51169
2002-03-22 11:18:03 +00:00