Commit Graph

31772 Commits

Author SHA1 Message Date
Anthony Green
00e930367b libjava.exp (bytecompile_file): Change default from javac to gcj -C.
Fri Nov 24 11:25:20 2000  Anthony Green  <green@redhat.com>

	* lib/libjava.exp (bytecompile_file): Change default from javac to
 	gcj -C.
	(libjava_arguments): Fix classpath.

	* libjava.compile/PR129_B.no-link: New file.

From-SVN: r37719
2000-11-24 21:38:16 +00:00
Tom Tromey
ad86a903a2 prims.cc (_Jv_NewObjectArray): Use palcement new to create array.
* prims.cc (_Jv_NewObjectArray): Use palcement new to create
	array.
	(_Jv_NewPrimArray): Likewise.
	Include <new>.
	* gcj/array.h (__JArray): `length' field now const.  Added
	constructor.
	(class JArray): Added constructor.

From-SVN: r37718
2000-11-24 21:02:36 +00:00
Tom Tromey
81d87b4e64 * libjava.compile/PR375.java: New file. For PR gcj/375.
From-SVN: r37717
2000-11-24 20:54:56 +00:00
Tom Tromey
b5a50b6457 * libjava.compile/PR374.java: New file. For PR gcj/374.
From-SVN: r37716
2000-11-24 20:54:44 +00:00
Denis Chertykov
33f7735588 avr.c (out_tsthi,out_tstsi): Test simplification bug fixed.
* config/avr/avr.c (out_tsthi,out_tstsi): Test simplification bug
	fixed.
	(machine_dependent_reorg): Wrong optimization based on
	NOTICE_UPDATE_CC removed.

From-SVN: r37715
2000-11-24 23:02:40 +03:00
J"orn Rennecke
692dc9c635 jump.c (delete_computation): Re-instate deletion of feeding insn.
* jump.c (delete_computation): Re-instate deletion of feeding insn.
	(delete_insn): Look for REG_LABEL notes.
	(redirect_tablejump): Delete feeding insns.

From-SVN: r37714
2000-11-24 19:51:09 +00:00
Bernd Schmidt
90d10fb9c6 Make operand numbers contiguous in four patterns.
From-SVN: r37713
2000-11-24 17:51:51 +00:00
Bernd Schmidt
7cf5c9e1a0 Fix crash in fold_range_test
From-SVN: r37712
2000-11-24 17:45:04 +00:00
Bernd Schmidt
ff6534ad16 Fix code that substitutes reloadreg into SET_DEST of previous insn.
From-SVN: r37711
2000-11-24 17:40:09 +00:00
Bernd Schmidt
176f9a7b1c Treat ready list as a (for now, semi-)abstract datatype. Lose max_priority.
From-SVN: r37710
2000-11-24 17:36:47 +00:00
Bernd Schmidt
222de5be45 New testcase
From-SVN: r37709
2000-11-24 17:11:10 +00:00
Anthony Green
1510057a32 jcf-parse.c (init_jcf_parse): Register current_file_list root.
* jcf-parse.c (init_jcf_parse): Register current_file_list root.
        Move current_file_list out of yyparse and make it static.

        * expr.c: Declare quick_stack and tree_list_free_list as static
        (init_expr_processing): Register quick_stack and
        tree_list_free_list roots.

From-SVN: r37708
2000-11-24 15:29:39 +00:00
Bernd Schmidt
52a84e4270 Fix bug in previous change.
From-SVN: r37707
2000-11-24 14:22:01 +00:00
Bernd Schmidt
235cfbc40f Overhaul sequence point warnings (again)
From-SVN: r37706
2000-11-24 11:49:46 +00:00
Richard Sandiford
58ecb5e2cd Avoid a bit of copy propagation when there's a REG_EQUIV note
From-SVN: r37705
2000-11-24 11:36:27 +00:00
Bernd Schmidt
c34102419d Avoid hard register combinations
From-SVN: r37704
2000-11-24 11:28:51 +00:00
Nathan Sidwell
2f401cc807 c-parse.in (unary_expr): Move VA_ARG from here ...
* c-parse.in (unary_expr): Move VA_ARG from here ...
        (primary): ... to here.
cp:
        * parse.y (unary_expr): Move VA_ARG from here ...
        (primary): ... to here.

testsuite:
        * g++.old-deja/g++.other/vaarg4.C: New test.
        * gcc.c-torture/compile/20001123-1.c: New test.

From-SVN: r37703
2000-11-24 10:30:46 +00:00
Nathan Sidwell
3d7e9ba41e semantics.c (finish_id_expr): If type is error_mark, return error_mark.
cp:
	* semantics.c (finish_id_expr): If type is error_mark, return
	error_mark.
testsuite:
	* g++.other/crash24.C: Adjust and remove XFAIL.
	* g++.other/crash37.C: New test.

From-SVN: r37702
2000-11-24 09:56:27 +00:00
Jeff Law
f4f6bd8d30 Daily bump.
From-SVN: r37701
2000-11-24 01:45:08 -07:00
Graham Stott
963a2a84a4 expr.c (store_constructor): If a field is non addressable and the target is a MEM use MEM_ALIAS_SET...
* expr.c (store_constructor): If a field is non addressable and
	the target is a MEM use MEM_ALIAS_SET otherwise use get_alias_set.

From-SVN: r37700
2000-11-23 20:15:36 +00:00
Bernd Schmidt
f9b697bfa1 Try to dump some information before aborting.
From-SVN: r37699
2000-11-23 18:19:18 +00:00
Nathan Sidwell
ab09753510 pt.c (lookup_template_class): Simplify loop exit constructs.
cp:
	* pt.c (lookup_template_class): Simplify loop exit constructs.
	Cope when there is no partial instantiation of a template
	template member.
testsuite:
	* g++.old-deja/g++.pt/instantiate9.C: New test.

From-SVN: r37698
2000-11-23 15:19:36 +00:00
Alexandre Oliva
8d4af2d7a9 Use UNSPEC_MOVA in newly-introduced mova_const
From-SVN: r37697
2000-11-23 13:24:28 +00:00
Alexandre Oliva
69295d6d26 emit-rtl.c (gen_lowpart_common): Use word 0 if register mode is narrower than requested mode.
* emit-rtl.c (gen_lowpart_common): Use word 0 if register mode
is narrower than requested mode.
(gen_highpart): Abort if register mode is narrower than
requested mode.

From-SVN: r37696
2000-11-23 13:23:04 +00:00
Hans-Peter Nilsson
d0c3e4f498 os_defines.h: Include <features.h>.
* config/os/gnu-linux/bits/os_defines.h: Include <features.h>.
	If not glibc 2.1 or higher, include <gnu/types.h> and define
	__off64_t as __loff_t and #define __THROW as empty.

	* libio/libio.h [__P]: Move __THROW and __PMT into their own
	ifndef:s.

From-SVN: r37695
2000-11-23 11:30:46 +00:00
Graham Stott
99a9c9460d cse.c (cse_insn): Initialise all regcost variables.
* cse.c (cse_insn): Initialise all regcost variables.
        Fix a typo add missing '='.
        Only compare costs if there is a replacement insn.

From-SVN: r37694
2000-11-23 11:04:45 +00:00
Jeff Law
f9b383f20f Daily bump.
From-SVN: r37693
2000-11-23 01:45:07 -07:00
Benjamin Kosnik
4ce69c7f61 Make deprecated strstream header consistent with new and new.h.
2000-11-22  Benjamin Kosnik  <bkoz@redhat.com>

	Make deprecated strstream header consistent with new and new.h.
	* include/backward/strstream.h: Add. Use using declarations to
	scope strstreambuf, istrstream, ostrstream, strstream to global
	scope.
	* include/backward/strstream: Remove using declarations.
	* src/Makefile.am (base_headers): Add strstream.
	* src/Makefile.in: Regenerate.

	* include/backward/new.h (_CPP_BACKWARD_NEW_H): Change macro guard
	to be consistent with other headers.

From-SVN: r37692
2000-11-23 06:46:31 +00:00
Alexandre Oliva
422be3c3cc final.c (output_addr_const): Simplify.
* final.c (output_addr_const) [LABEL_REF]: Simplify.
[MINUS]: Enclose non-CONST_INTs in parentheses.
[default]: Try OUTPUT_ADDR_CONST_EXTRA.
* tm.texi (OUTPUT_ADDR_CONST_EXTRA): Document it.
* varasm.c (decode_rtx_const) [CONST]: If it's not something
PLUS or MINUS a CONST_INT, use the whole CONST with offset 0
instead of abort()ing.
* sh.c (output_pic_addr_const): Removed.  Fixed all callers.
* sh.h (OUTPUT_ADDR_CONST_EXTRA): New.  Handle the UNSPECs
formerly handled in output_pic_addr_const.
* sh.md (sym_label2reg, symPLT_label2reg): Enclose UNSPEC
operands of MINUS in CONSTs so that decode_rtx_const() will
accept them.

From-SVN: r37691
2000-11-23 06:37:23 +00:00
Alexandre Oliva
43c0563453 sh.md (mova_const): New pattern.
* config/sh/sh.md (mova_const): New pattern.
(GOTaddr2picreg): Use it.
* config/sh/sh.c (broken_move): Match it.
(mova_p): Don't match it.
(machine_dependent_reorg): Adjust it.

From-SVN: r37690
2000-11-23 06:20:16 +00:00
Alexandre Petit-Bianco
5e18f6d629 parse.y (build_outer_field_access): New local `decl_ctx', use it.
2000-11-22  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (build_outer_field_access): New local `decl_ctx', use
	it. Check for field's context and current class immediate outer
	context inheritance.
	(outer_field_access_p): Consider fields inherited from the last
	enclosing context.
	(build_access_to_thisn): Stop at the last enclosing context if
	necessary.
	Fixes gcj/367.

(http://gcc.gnu.org/ml/gcc-patches/2000-11/msg01335.html)

From-SVN: r37689
2000-11-22 22:04:16 -08:00
David Edelsohn
54214152bd * porting.texi: Expand libtool information.
From-SVN: r37688
2000-11-23 00:51:07 -05:00
Mark Wielaard
abb32cf595 name-finder.cc (lookup): Check for a NULL _Jv_argv before attempting lookup.
2000-11-23  Mark Wielaard  <mark@klomp.org>

	* name-finder.cc (lookup): Check for a NULL _Jv_argv before
	attempting lookup.

From-SVN: r37687
2000-11-23 05:45:47 +00:00
Alexandre Oliva
e11cddecea Formatting and coment changes
From-SVN: r37686
2000-11-23 05:40:27 +00:00
Bryce McKinlay
ebb66eb5fa Vector.java: Improve exception messages.
2000-11-23  Bryce McKinlay  <bryce@albatross.co.nz>

	* java/util/Vector.java: Improve exception messages.
	(Vector): Check initialCapacity for IllegalArgumentException.
	(tromToSize): Don't check for elementCount == elementData.length
	case.
	(toArray): Don't try to set null marker if target array is the same
	length as the vector.

From-SVN: r37685
2000-11-23 05:18:41 +00:00
Gabriel Dos Reis
23a5b4448c ios_base.h (ios_base::failure::~failure, [...]): Move defintion to ...
* include/bits/ios_base.h (ios_base::failure::~failure,
	ios_base::failure::what): Move defintion to ...

	* src/ios.cc (ios_base::failure::~failure): ... here.
	src/ios.cc (ios::failure::what): Likewise.

From-SVN: r37684
2000-11-23 04:53:40 +00:00
Alexandre Oliva
4773afa487 sh.h (FIRST_GENERAL_REG, [...]): New.
* config/sh/sh.h (FIRST_GENERAL_REG, LAST_GENERAL_REG): New.
Moved most register-number #defines...
* config/sh/sh.md (define_constants): ... here.  Use macros to
refer to registers and unspecs.
* config/sh/sh.c: Likewise.

From-SVN: r37683
2000-11-23 04:22:48 +00:00
Benjamin Kosnik
27ddcd48c1 Make deprecated strstream header consistent with new and new.h.
2000-11-22  Benjamin Kosnik  <bkoz@redhat.com>

	Make deprecated strstream header consistent with new and new.h.
	* include/backward/strstream.h: Add. Use using declarations to
	scope strstreambuf, istrstream, ostrstream, strstream to global
	scope.
	* include/backward/strstream: Remove using declarations.
	* src/Makefile.am (base_headers): Add strstream.
	* src/Makefile.in: Regenerate.

	* include/backward/new.h (_CPP_BACKWARD_NEW_H): Change macro guard
	to be consistent with other headers.

From-SVN: r37682
2000-11-23 03:25:47 +00:00
Richard Henderson
ea88c0f77e ctype_inline.h (is): Fix order of expressions.
2000-11-22  Richard Henderson  <rth@redhat.com>

	* config/os/bsd/bits/ctype_inline.h (is): Fix order of expressions.

From-SVN: r37681
2000-11-23 03:03:33 +00:00
J"orn Rennecke
9196ece5c2 gcc toplevel:
* Makefile.in (HOST_CFLAGS): Add -DGENERATOR_FILE.
	(rtl.o, print-rtl.o, bitmap.o, obstack.o): Build with -DGENERATOR_FILE.
	(alloca.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
	(splay-tree.o, hash.o): Likewise.
	GCONFIG_H: New.
	(rtl.o, print-rtl.o): Depend on $(GCONFIG_H) instead of $(CONFIG_H).
	(bitmap.o, obstack.o, vfprintf.o, ggc-none.o, errors.o): Likewise.
	(hashtab.o): Likewise.
	(gcov.o): Depend on $(CONFIG_H).
	* configure.in: #include insn-codes.h in tm.h.

	f:

	* Make-lang.in (g77spec.o): Depend on $(CONFIG_H).

	java:

	* Make-lang.in (jvspec.o): Depend on $(CONFIG_H).

	cp:

	* Make-lang.in (g++spec.o, cxxmain.o): Depend on $(CONFIG_H).

From-SVN: r37680
2000-11-23 02:22:03 +00:00
H.J. Lu
3b3bd9a786 * cplus-dem.c (main): Handle gnat_demangling.
From-SVN: r37679
2000-11-22 23:57:50 +00:00
Mark Mitchell
6e1b44bce7 mangle.c (mangle_conv_op_name_for_type): Don't use `__op' prefix.
* mangle.c (mangle_conv_op_name_for_type): Don't use `__op'
	prefix.

From-SVN: r37678
2000-11-22 23:53:03 +00:00
Nick Clifton
dc60a41bed Fix typo
From-SVN: r37677
2000-11-22 23:30:37 +00:00
Mark Mitchell
a862e95888 decl4.C: Tweak so that it fails with the new ABI, too.
* g++.old-deja/g++.other/decl4.C: Tweak so that it fails with the
	new ABI, too.

From-SVN: r37676
2000-11-22 23:24:43 +00:00
Phil Edwards
c361fee040 porting.texi: Minor tweaks to vocabulary.
2000-11-22  Phil Edwards  <pme@sources.redhat.com>

	* porting.texi:  Minor tweaks to vocabulary.

From-SVN: r37675
2000-11-22 23:23:53 +00:00
Mark Mitchell
71ca6fe964 p6610a.C: This test no longer fails.
* g++.old-deja/g++.mike/p6610a.C: This test no longer fails.
	* g++.old-deja/g++.robertl/eb55.C: Likewise.

From-SVN: r37674
2000-11-22 23:10:04 +00:00
Mark Mitchell
cac78ea281 pt.c (do_decl_instantiate): Explicitly clone constructors and destructors that haven't already been cloned.
* pt.c (do_decl_instantiate): Explicitly clone constructors and
	destructors that haven't already been cloned.

From-SVN: r37673
2000-11-22 22:43:49 +00:00
Nick Clifton
57f56af4c5 Make 'newstr' a const char * to avoid a compile time warning.
From-SVN: r37672
2000-11-22 20:51:18 +00:00
Nick Clifton
48a08b9cab Define symbolic names for the link register, last integer register and the fake CC register.
Define symbolic names for the link register, last integer register and the
fake CC register.  Update patterns to use these symbolic names.

From-SVN: r37671
2000-11-22 20:46:40 +00:00
Neil Booth
a16f893b63 * gcc.gd/cpp/Wtrigraphs.c: New test.
From-SVN: r37670
2000-11-22 20:37:44 +00:00