Commit Graph

110 Commits

Author SHA1 Message Date
Bryce McKinlay ca12deb43e re PR java/21045 (Anonymous inner class constructor's exceptions can't be caught or thrown)
2005-07-07  Bryce McKinlay  <mckinlay@redhat.com>

        PR java/21045
	* parse.y (add_exception_to_throws): New function.
	(purge_unchecked_exceptions): Removed.
	(get_constructor_super): Renamed from verify_constructor_super. Now
	returns the super constructor after verification.
	(java_complete_expand_method): Don't use purge_unchecked_exceptions
	or save/restore the exception list.
	(check_thrown_exceptions): Add uncaught exceptions in anonymous
	class initializers and constructors to the throws clause of the
	method.

2005-07-07  Bryce McKinlay  <mckinlay@redhat.com>

        * testsuite/libjava.compile/PR21045.java: New test.
        * testsuite/libjava.jacks/jacks.xfail: Remove 15.9.5.1-exception-1,
        15.9.5.1-exception-3, 8.3.2-abrupt-6, 8.3.2-abrupt-7.

From-SVN: r101713
2005-07-07 15:34:53 +01:00
Bryce McKinlay b226520a2d re PR java/19674 (Empty declaration through semicolon (;) causes compile failure)
2005-07-05  Bryce McKinlay  <mckinlay@redhat.com>

        PR java/19674
        * parse.y (interface_member_declaration): Allow empty statements in
        interface declarations.

2005-07-05  Bryce McKinlay  <mckinlay@redhat.com>

	* testsuite/libjava.compile/PR19674.java: New test.

From-SVN: r101634
2005-07-05 22:09:57 +01:00
Tom Tromey 4ebe7d9317 PR java/21540, PR java/13788:
gcc/java/:
	PR java/21540, PR java/13788:
	* parse.y (java_complete_lhs) <CASE_EXPR>: Use
	fold_constant_for_init.
	(patch_binop): Added 'folding' argument.  Updated all callers.
	(patch_unaryop) <NOP_EXPR>: New case.
	(fold_constant_for_init) <NOP_EXPR>: Likewise.
	(fold_constant_for_init) <COND_EXPR>: Fix sense of test.
libjava/:
	PR java/21540, PR java/13788:
	* testsuite/libjava.compile/pr21540.java: New file.
	* testsuite/libjava.compile/pr13788.java: New file.
	* testsuite/libjava.jacks/jacks.xfail: Updated.

From-SVN: r101358
2005-06-27 18:40:16 +00:00
Bryce McKinlay c0f6dc941d re PR java/20697 (Invalid Can't find method error on call to super)
PR java/20697
	* parse.y (find_most_specific_methods_list): Remove special case for
	inner classes.

From-SVN: r101270
2005-06-23 16:00:50 +01:00
Tom Tromey b4220f64e3 re PR java/21519 (ICE in generate_bytecode_conditional, at java/jcf-write.c:1337)
gcc/java:
	PR java/21519:
	* jcf-write.c (generate_bytecode_insns) <SAVE_EXPR>: Don't call
	NOTE_PUSH.
libjava:
	PR java/21519:
	* testsuite/libjava.compile/pr21519.java: New file.
	* testsuite/libjava.compile/pr21519.no-link: New file.

From-SVN: r99739
2005-05-15 18:28:29 +00:00
Ranjit Mathew ca1593fda4 re PR java/20312 (No warning on bad method)
* testsuite/libjava.compile/PR20312.java: New file.
	* testsuite/libjava.compile/PR20312.xfail: Likewise.
	* testsuite/libjava.jacks/jacks.xfail: Remove 9.2-implicit-15.

From-SVN: r96252
2005-03-10 18:57:01 +00:00
Roger Sayle d5f625555a re PR java/19295 (Incorrect bytecode produced for bitwise AND)
PR java/19295
	* jcf-write.c (generate_bytecode_insns): Conversions between
	integer types of the same precision shouldn't generate widening
	or narrowing conversion bytecodes.

	* testsuite/libjava.compile/PR19295.java: New test case.

From-SVN: r94162
2005-01-24 14:34:19 +00:00
Ranjit Mathew 4059e82d29 re PR java/19277 (allows array.length++ although it is final)
* testsuite/libjava.compile/PR19277.java: New file for PR java/19277.
        * testsuite/libjava.compile/PR19277.xfail: Likewise.

From-SVN: r93146
2005-01-10 18:07:22 +00:00
Tom Tromey 0bc371d376 For PR java/14853:
* testsuite/libjava.compile/PR14853.java: New file.
	* testsuite/libjava.compile/PR14853.xfail: New file.

From-SVN: r91777
2004-12-06 15:30:57 +00:00
Tom Tromey 0396df8ac4 For PR java/16675:
* testsuite/libjava.compile/PR16675.java: New file.

From-SVN: r91655
2004-12-02 19:38:49 +00:00
Tom Tromey 4b2582f055 re PR java/17500 (Anonymous inner class compile freakout)
PR java/17500:
	* testsuite/libjava.compile/pr17500.java: New file.

From-SVN: r88107
2004-09-25 19:08:27 +00:00
Tom Tromey 013303df1b re PR java/15656 (ICE segfault in lex.c)
PR java/15656:
	* testsuite/libjava.compile/pr15656.xfail: New file.
	* testsuite/libjava.compile/pr15656.java: new file.

From-SVN: r88047
2004-09-24 15:42:57 +00:00
Andrew Haley 0a41faf022 re PR java/16927 (assert statement fails at -O1 and above)
2004-09-24  Andrew Haley  <aph@redhat.com>

        PR java/16927
        * testsuite/libjava.compile/AssertBug.java: New file.

From-SVN: r88035
2004-09-24 13:55:42 +00:00
Tom Tromey 51c9fed94b re PR java/17329 (ICE: SEGV in java_gimplify_expr)
PR java/17329:
	* testsuite/libjava.compile/pr17329.java: New file.

From-SVN: r87960
2004-09-23 16:24:42 +00:00
Bryce McKinlay 899deeca6c re PR java/16701 (Error when constant initializer depends on another constant with restricted access)
2004-08-02  Bryce McKinlay  <mckinlay@redhat.com>

	PR java/16701
	* parse.y (fold_constant_for_init): Call resolve_field_access with
	correct current_class context.

2004-08-02  Bryce McKinlay  <mckinlay@redhat.com>

	* testsuite/libjava.compile/PR16701.java: New test.

From-SVN: r85453
2004-08-02 22:20:46 +01:00
Bryce McKinlay 6e342fc100 Fix or remove some bogus test cases.
2004-07-09  Bryce McKinlay  <mckinlay@redhat.com>

	Fix or remove some bogus test cases.
	* testsuite/libjava.compile/pr10459_2.java: Removed.
	* testsuite/libjava.compile/pr10459.java: Test using its own method,
	not Object.clone().
	* testsuite/libjava.compile/inner_data.java: Test against its own
	protected field.

From-SVN: r84420
2004-07-10 00:36:51 +01:00
Bryce McKinlay b4bbd47e22 re PR tree-optimization/16249 (ICE in calculate_live_on_entry, at tree-ssa-live.c:724)
* testsuite/libjava.compile/PR16249.java: New test case. PR
	gcc/16249.

From-SVN: r83869
2004-06-29 19:09:58 +01:00
Andrew Pinski a921159ad4 re PR java/15769 (ICE: infinite recursion through gimplify_expr)
2004-06-08  Andrew Pinski  <pinskia@physics.uc.edu>

        PR java/15769
        * libjava.compile/PR15769.java: New test.

From-SVN: r82757
2004-06-08 06:30:33 -07:00
Jeff Sturm b24faf1e3b re PR java/13733 (The result of an assignment operator is the LHS after assignment, not the RHS)
PR java/13733
* libjava.compile/PR13733.java: New file.
* libjava.compile/PR13733.xfail: New file.

From-SVN: r76389
2004-01-23 00:21:05 +00:00
Ralph Loader c6a25d3a3d re PR java/12374 (Segfault on "".x)
PR java/12374:
	* parse.y (qualify_ambiguous_name): Remove lots of broken
	field access processing - there's no need to do that here,
	because we have resolve_field_access.  Remove
	RESOLVE_EXPRESSION_NAME_P as it isn't used anywhere else.
	* java-tree.h: Remove RESOLVE_EXPRESSION_NAME_P as it isn't
	used.

From-SVN: r74217
2003-12-03 07:04:19 +00:00
Jeff Sturm c25d9caa3b re PR rtl-optimization/13024 (gcj can't build current rhug)
* libjava.compile/PR13024.java: New file.
* libjava.compile/PR13237.java: New file.

From-SVN: r74157
2003-12-02 04:43:25 +00:00
Jeff Sturm 217ec3ae92 * libjava.compile/PR12857.java: New test case.
From-SVN: r73692
2003-11-18 04:19:24 +00:00
Jeff Sturm 1b64e33f3f * libjava.compile/InnerExcept.java: New File.
From-SVN: r73240
2003-11-04 01:51:15 +00: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
Tom Tromey b9172475ad re PR java/5641 (Verifier ICE on reference to inherited method)
* libjava.jacks/jacks.xfail: Updated to account for new passes.
	* libjava.compile/abstr.xfail: Now can compile from bytecode.
	* libjava.compile/PR5641.xfail: Now can compile from bytecode.

From-SVN: r70387
2003-08-12 20:32:28 +00:00
Tom Tromey 10063dff3b For PR java/11600:
* libjava.compile/PR11600.xfail: New file.
	* libjava.compile/PR11600.java: New file.

From-SVN: r70183
2003-08-05 19:43:20 +00:00
Tom Tromey a6f1f688a6 re PR java/10459 (ICE with certain expressions as 3rd clause of for loop)
PR java/10459:
	* libjava.compile/pr10459_2.java: New file.
	* libjava.compile/pr10459.java: New file.

From-SVN: r66410
2003-05-03 00:33:18 +00:00
Tom Tromey d52c5b0a9c consthrow.java: New file.
* libjava.compile/consthrow.java: New file.
	* libjava.compile/consthrow.xfail: New file.

From-SVN: r61959
2003-01-28 06:19:48 +00:00
Tom Tromey 1778c8ff34 * libjava.compile/pr8712.java: New file, for PR java/8712.
From-SVN: r60856
2003-01-03 23:07:23 +00:00
Tom Tromey 3c32ae1c35 * libjava.compile/pr8955.java: New test, for PR java/8955.
From-SVN: r60764
2003-01-02 00:05:14 +00:00
Tom Tromey 5dbc91f572 * libjava.compile/pr7912.java: New file.
From-SVN: r58806
2002-11-05 04:07:39 +00:00
Tom Tromey 8632ed40b6 * libjava.compile/narrow_case.java: New file.
From-SVN: r56604
2002-08-27 16:07:02 +00:00
Tom Tromey 9cc37f69d2 * libjava.compile/zeroexp.java: New file.
From-SVN: r55663
2002-07-23 03:15:02 +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
Tom Tromey a8fa30f301 re PR java/6865 (gcj: segmentation fault on incorrect input)
* lib/libjava.exp (test_libjava): Fixed typo.
	* libjava.compile/PR6865.xfail: New file.

From-SVN: r54594
2002-06-13 17:34:49 +00:00
Tom Tromey e9024f7f38 * libjava.compile/PR6865.java: New file. For PR java/6865.
From-SVN: r54505
2002-06-11 14:46:11 +00:00
Tom Tromey d6ee617dd7 re PR libgcj/6389 (System.getProperty("") should always throw an IllegalArgumentException)
* libjava.compile/T20020604.java: New file.

	For PR libgcj/6389:
	* libjava.mauve/xfails: Now passes System.getProperty test.

	For PR java/1343 and PR java/6336:
	* libjava.compile/PR1343.java: New file.

	For PR java/5913:
	* libjava.compile/PR5913.xfail: Removed.

From-SVN: r54259
2002-06-04 19:39:02 +00:00
Bryce McKinlay 5549d65dfb * libjava.compile/T20020529.java: New file.
From-SVN: r54039
2002-05-30 03:53:13 +01:00
Eric Blake 4e9a8e8d6d For PR java/6026:
2002-03-22  Eric Blake  <ebb9@email.byu.edu>

	For PR java/6026:
	* libjava.compile/PR6026.java: New file.

From-SVN: r51209
2002-03-23 00:05:44 +00:00
Eric Blake 08bcc159d9 For PR java/5902:
2002-03-15  Eric Blake  <ebb9@email.byu.edu>

	For PR java/5902:
	* libjava.compile/PR5902.java: Does not need to execute.
	For PR java/5913:
	* libjava.compile/PR5913.java: Ditto.

From-SVN: r50829
2002-03-15 19:17:39 +00:00
Tom Tromey 5a471df6f9 Test for PR java/5848:
* libjava.compile/PR5848.xfail: New file.
	* libjava.compile/PR5848.java: New file.

From-SVN: r50674
2002-03-12 19:51:44 +00:00
Eric Blake 36e5138325 re PR java/5913 (Core dump for String constant instanceof)
2002-03-12  Eric Blake  <ebb9@email.byu.edu>

	* libjava.compile/PR5913.java: Expand test.

From-SVN: r50638
2002-03-12 07:40:46 +00:00
Eric Blake 76a43492ea re PR java/5902 (Gcj fails to parse float)
2002-03-11  Eric Blake  <ebb9@email.byu.edu>

	* libjava.compile/PR5902.java: New file.
	* libjava.compile/PR5913.java: New file.
	* libjava.compile/PR5913.xfail: New file.

From-SVN: r50637
2002-03-12 07:23:25 +00:00
Tom Tromey 62deb2118b For PR java/5641:
* libjava.compile/PR5641.xfail: New file.
	* libjava.compile/PR5641.java: New file.

From-SVN: r49660
2002-02-11 00:18:52 +00:00
Tom Tromey e6a8345b03 For PR java/4766:
* libjava.compile/PR4766.java: New file.

From-SVN: r48209
2001-12-20 18:05:20 +00:00
Tom Tromey 8c5bc4d56e For PR java/3417:
* libjava.compile/PR3417.xfail: New file.
	* libjava.compile/PR3417.java: New file.

From-SVN: r48161
2001-12-18 16:36:40 +00:00
Tom Tromey e94c6dee73 * libjava.compile/BlankFinal.java: Removed; incorrect test.
From-SVN: r47739
2001-12-07 00:12:56 +00:00
Alexandre Petit-Bianco 5952078834 final_initialization_in_ctor.java: New file
2001-09-27  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* libjava.compile/final_initialization_in_ctor.java: New file

( http://gcc.gnu.org/ml/gcc-patches/2001-09/msg01160.html )

From-SVN: r45843
2001-09-27 12:17:16 -07:00
Alexandre Petit-Bianco bb52725527 final_assignment_check.java: New file.
2001-08-28  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* libjava.compile/final_assignment_check.java: New file.
	* libjava.compile/final_assignment_check.xfail: Likewise.
	* libjava.compile/final_local_switch.java: Likewise.

(http://gcc.gnu.org/ml/java-patches/2001-q3/msg00342.html )

From-SVN: r45346
2001-08-31 21:54:05 -07:00
Alexandre Petit-Bianco 9fba6f962f XercesBug.java: New file.
2001-08-17  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* libjava.compile/XercesBug.java: New file.

(http://gcc.gnu.org/ml/gcc-patches/2001-08/msg01066.html)

From-SVN: r44987
2001-08-17 15:26:15 -07:00