Commit Graph

35531 Commits

Author SHA1 Message Date
Martin Kahlert
c90efa7a1c natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors table index is within allowed bounds.
2001-06-05  Martin Kahlert  <martin.kahlert@infineon.com>
	    Bryce McKinlay  <bryce@waitaki.otago.ac.nz>

	* java/lang/natClass.cc (_Jv_IsAssignableFrom): Ensure that ancestors
	table index is within allowed bounds. Ensure that we dont try to access
	class itable at a negative offset. Avoid an ancestor table lookup if
	source is a primitive type class.
	(isInstance): Remove redundant isPrimitive() check.

Co-Authored-By: Bryce McKinlay <bryce@waitaki.otago.ac.nz>

From-SVN: r42898
2001-06-05 10:46:36 +01:00
Joseph Myers
bdef41acbe * doc/texinfo.tex: Update to version 2001-05-24.08.
From-SVN: r42897
2001-06-05 10:15:02 +01:00
Nathan Sidwell
b7442fb555 c-common.h (flag_dump_translation_unit): Remove.
* c-common.h (flag_dump_translation_unit): Remove.
	(enum tree_dump_index): Define.
	(TDF_ADDRESS, TDF_SLIM): New #defines.
	(dump_node_to_file): Remove.
	(dump_node): Make extern. Add flags.
	(dump_flag, dump_enabled_p, dump_begin, dump_end,
	dump_switch_p): Prototype.
	* c-common.c (flag_dump_translation_unit): Remove.
	* c-decl.c (c_decode_option): Remove -fdump-translation-unit
	logic. Use dump_switch_p.
	* c-dump.h (struct dump_info): Add node and user fields.
	(dump_pointer): Declare.
	* c-dump.c (dump_node): Make extern. Add flags.
	(SOL_COLUMN, EOL_COLUMN, COLUMN_ALIGNMENT): New #defines.
	(dump_new_line, dump_maybe_newline): Use them.
	(dump_pointer): New function.
	(dequeue_and_dump): Check TDF_SLIM before dumping a _DECL's
	chain or function's body. Dump address, if TDF_ADDRESS set.
	(dump_flag): Define.
	(dump_node_to_file): Remove.
	(struct dump_file_info): New struct.
	(dump_files): New array.
	(dump_begin, dump_end, dump_enabled_p, dump_switch_p): Define.
	* c-lang.c (finish_file): Adjust dumping.
	* toplev.h (dump_base_name): Make extern.
	* invoke.texi: Document new flags.
cp:
	* class.c (maybe_indent_hierarchy): New function.
	(dump_class_hierarchy_r): Add flags. Dump extra binfo
	information, if enabled. Use maybe_indent_hierarchy. Adjust
	output format.
	(dump_class_hierarchy): Adjust prototype. Adjust output format.
	(dump_array, dump_vtable, dump_vtt): New functions.
	(finish_struct_1): Adjust hierarchy dumping.
	(initialize_vtable): Call dump_vtable.
	(build_vtt): Call dump_vtt.
	(build_ctor_vtbl_group): Call dump_vtable.
	* decl2.c (flag_dump_class_layout): Remove.
	(cxx_decode_option): Remove dump translation unit
	and dump class hierarchy check. Call dump_switch_p.
	(finish_file): Adjust dumping.
	(dump.c): Only dump base classes if not TDF_SLIM.
	Only dump namespace members if not TDF_SLIM.
	* optimize.c (dump_function): New function.
	(optimize_function): Call dump_function.
	* semantics.c (expand_body): Use dump_enabled_p.

From-SVN: r42896
2001-06-05 08:03:45 +00:00
GCC Administrator
eb537d4fbb Daily bump.
From-SVN: r42894
2001-06-05 07:16:37 +00:00
Mark Mitchell
1f7317498d c-tree.h (lang_decl): Add pending_sizes fields.
* c-tree.h (lang_decl): Add pending_sizes fields.
	* c-decl.c (store_parm_decls): Save pending_sizes away for nested
	functions.
	(c_expand_body): Expand them.
	(lang_mark_tree): Mark lang_decl:pending_sizes.
	* function.c (expand_pending_sizes): New function, broken out
	from ...
	(expand_function_start): ... here.
	* tree.h (expand_pending_sizes): Declare it.

From-SVN: r42892
2001-06-05 06:51:02 +00:00
Loren J. Rittle
333e14b0da install.texi: Update FreeBSD information.
* doc/install.texi: Update FreeBSD information.  Generalize
	and update information for alpha-based platforms using ELF.

From-SVN: r42887
2001-06-04 22:56:53 +00:00
Tom Tromey
0f2257011a PublicKey.java: Extend Key.
* java/security/PublicKey.java: Extend Key.
	* java/security/PrivateKey.java: Extend Key.

From-SVN: r42886
2001-06-04 22:55:49 +00:00
Phil Edwards
ae3ca0a985 config.guess: Import CVS version 1.194.
2001-06-04  Phil Edwards  <pme@sources.redhat.com>

	* config.guess:  Import CVS version 1.194.  All gcc-local changes
	appear to also be in the master copy.
	* config.sub:  Import CVS version 1.211.

From-SVN: r42884
2001-06-04 21:32:44 +00:00
John David Anglin
3d3daefdd7 * gcc.c-torture/execute/20010604-1.c: New test.
From-SVN: r42883
2001-06-04 20:30:45 +00:00
John David Anglin
b6d6aa84df c-decl.c (get_parm_info): Use INTEGRAL_TYPE_P.
* c-decl.c (get_parm_info): Use INTEGRAL_TYPE_P.
	(store_parm_decls): Likewise.
	* c-typeck.c (convert_arguments): Likewise.

From-SVN: r42882
2001-06-04 20:26:16 +00:00
Richard Henderson
1696785eab sibcall.c (optimize_sibling_and_tail_recursive_call): Suppress optimization if current_function_calls_setjmp.
* sibcall.c (optimize_sibling_and_tail_recursive_call): Suppress
        optimization if current_function_calls_setjmp.

From-SVN: r42880
2001-06-04 13:20:35 -07:00
Joseph Myers
2846f342f9 c-tree.texi: Fix documentation of TREE_STRING_LENGTH for wide strings.
* doc/c-tree.texi: Fix documentation of TREE_STRING_LENGTH for
	wide strings.

From-SVN: r42878
2001-06-04 20:50:50 +01:00
Mark Mitchell
066bd40d6a ltcf-c.sh (archive_cmds, [...]): Use `gcc -shared' to build a shared library.
* ltcf-c.sh (archive_cmds, archive_expsym_cmds) [solaris,
with_gcc]: Use `gcc -shared' to build a shared library.

From-SVN: r42874
2001-06-04 19:33:03 +00:00
Benjamin Kosnik
fdf1b60d2b locale_facets.h (ctype<_CharT>): Add definitions for generic ctype virtuals.
2001-06-04  Brendan Kehoe  <brendan@zen.org>
	    Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/3017
	* include/bits/locale_facets.h (ctype<_CharT>): Add definitions
	for generic ctype virtuals.
	* src/locale.cc: Minor tweaks, naming consistency.
	* testsuite/22_locale/ctype.cc: Add test.

From-SVN: r42872
2001-06-04 19:25:41 +00:00
John David Anglin
4aef4f331f ltcf-c.sh (archive_cmd): Use gcc to link shared archives.
* ltcf-c.sh (archive_cmd) [hpux, with_gcc]: Use gcc to link shared
archives.

From-SVN: r42870
2001-06-04 19:24:57 +00:00
Loren J. Rittle
05ac674047 * gcc.c-torture/execute/ieee/rbug.x: XFAIL FreeBSD 5.x.
From-SVN: r42869
2001-06-04 19:02:11 +00:00
Jan Hubicka
1ffb3f9ac1 simplify-rtx.c (simplify_subreg): Fix combining of paradoxical subregs.
* simplify-rtx.c (simplify_subreg): Fix combining of
	paradoxical subregs.

From-SVN: r42868
2001-06-04 18:44:57 +00:00
Jan Hubicka
978f547fa2 rtlanal.c (rtx_unsable_p): ADDRESSOF is stable.
* rtlanal.c (rtx_unsable_p): ADDRESSOF is stable.
	(no_labels_between_p): Short circuit case beg==end.

From-SVN: r42867
2001-06-04 18:16:34 +00:00
Kenny Simpson
31990cd54c PR libstdc++/3035 and PR libstdc++/3036
2001-06-04  Kenny Simpson <theonetruekenny@yahoo.com>
            Phil Edwards  <pme@sources.redhat.com>

	PR libstdc++/3035 and PR libstdc++/3036
	* include/bits/stl_pair.h:  Fix pair ctor and make_pair according
	to LWG DR 181 and 265.

Co-Authored-By: Phil Edwards <pme@gcc.gnu.org>

From-SVN: r42865
2001-06-04 18:04:52 +00:00
Jan Hubicka
0631e0bfb7 rtlanal.c (operand_preference): Fix preference for objects.
* rtlanal.c (operand_preference): Fix preference for objects.

	* gcse.c (handle_avail_expr): Be prepared to handle single_set
	parallels.

	* combine.c (if_then_else_cond): Use simplify_subreg instead
	of operand_subword.
	* integreate.c (sub_constants): Likewise.

	* emit-rtl.c (constant_subword): Deprecate; remove most of code
	and use simplify_gen_subreg.

Mon Jun  4 19:55:23 CEST 2001  Lars Brinkhoff  <lars@nocrew.org>

	* sibcall.c (skip_copy_to_return_value): recognize the situation
	when the called function's return value is copied into an
	intermediate pseudo, and then into the calling functions return
	value register.

From-SVN: r42864
2001-06-04 18:04:36 +00:00
Phil Edwards
5c626f5260 re PR libstdc++/3034 (DR 214)
2001-06-04  Phil Edwards  <pme@sources.redhat.com>

	PR libstdc++/3034
	* include/bits/stl_multiset.h (find, lower_bound, upper_bound,
	equal_range):  Add const overloads as per LWG DR 214.
	* include/bits/stl_set.h:  Likewise.

From-SVN: r42862
2001-06-04 17:50:18 +00:00
Brendan Kehoe
84b9f762bb std_bitset.h (bitset::test): Fix __pos >= _Nb comparison; all positions must be < _Nb.
2001-06-04  Brendan Kehoe  <brendan@zen.org>
            Phil Edwards  <pme@sources.redhat.com>

	* include/bits/std_bitset.h (bitset::test):  Fix __pos >= _Nb
	comparison; all positions must be < _Nb.
	* testsuite/23_containers/bitset_members.cc:  New file.

Co-Authored-By: Phil Edwards <pme@gcc.gnu.org>

From-SVN: r42859
2001-06-04 17:42:22 +00:00
Brendan Kehoe
5890be1892 re PR libstdc++/3016 (stl_queue.h bugs wrt compliance)
2001-06-04  Brendan Kehoe  <brendan@zen.org>

	PR libstdc++/3016
	* include/bits/stl_queue.h (classes queue, priority_queue):  Fix
	ctors to match the standard.

From-SVN: r42857
2001-06-04 17:34:36 +00:00
Jeffrey Oldham
c0e17dafb2 char_traits.h (move): Reverse qualification of memmove with std::.
2001-06-04  Jeffrey Oldham  <oldham@codesourcery.com>

	* include/bits/char_traits.h (move): Reverse qualification of
	memmove with std::.
	(copy): Reverse qualification of memcpy with std::.

From-SVN: r42856
2001-06-04 16:57:04 +00:00
Richard Kenner
c940f36d68 c-tree.texi (ARRAY_REF): Say what type of expression must be.
* doc/c-tree.texi (ARRAY_REF): Say what type of expression must be.
	(ARRAY_RANGE_REF): Added description.

From-SVN: r42855
2001-06-04 11:48:16 -04:00
Jeffrey Oldham
1007e271a3 char_traits.h (move): Qualify memmove with std::.
2001-06-04  Jeffrey Oldham  <oldham@codesourcery.com>

	* include/bits/char_traits.h (move): Qualify memmove with std::.
	(copy): Qualify memcpy with std::.
	* testsuite/27_io/filebuf_virtuals.cc (test01): Qualify strlen and
	strncmp with std::.
	(test02): Likewise.
	* testsuite/27_io/stringbuf_virtuals.cc (test01): Likewise.

From-SVN: r42854
2001-06-04 15:46:03 +00:00
Jeffrey Oldham
6bdfaf0910 g++.exp (g++_include_flags): Change `args' to gccpath's value.
2001-06-04  Jeffrey Oldham  <oldham@codesourcery.com>

	* lib/g++.exp (g++_include_flags): Change `args' to gccpath's value.
	(g++_link_flags): Likewise.
	(g++_init): Pass gccpath's value to two previous functions.

From-SVN: r42852
2001-06-04 15:23:05 +00:00
Jan Hubicka
e0e08ac26c simplify_rtx.c (simplify_subreg): Keep subregs on return values...
* simplify_rtx.c (simplify_subreg): Keep subregs on return values,
	check CLASS_CANNOT_CHANGE_MODE before avoiding subreg on hard reg,
	in case register wasn't OK previously, accept it now; allow
	subregs of frame pointer if reload completed and frame pointer
	is not needed.

	* combine.c (sombine_simplify_rtx): Fix comment;
	use subreg_lowpart_offset instead of subreg_lowpart_p
	(gen_lowpart_for_combine): Use subreg_lowpart_offset.
	* rtl.h (subreg_lowpart_parts_p): Kill.
	(subreg_lowpart_offset, subreg_highpart_offset): Declare.
	* simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset.
	* emit-rtl.c (gen_lowpart_SUBREG): Use subreg_lowpart_offset;
	(gen_lowpart_common): Likewise.
	(subreg_lowpart_p): Likewise.
	(subreg_lowpart_parts_p): Kill.
	(subreg_lowpart_offset, subreg_highpart_offset): New function.

	* emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
	to simplify SUBREG and REG.
	(gen_highpart): Use simplify_gen_subreg for all simplifications.

	* emit-rtl.c (gen_realpart, gen_imagpart): Do not handle
	CONCAT specially.

	* rtlanal.c (replace_regs):  Use simplify_gen_subreg

From-SVN: r42850
2001-06-04 14:52:14 +00:00
Gerald Pfeifer
95307c8e01 update_web_docs (WWWBASE_PREFORMATTED, PREPROCESS): New variables.
* update_web_docs (WWWBASE_PREFORMATTED, PREPROCESS): New
	variables.
	Fix a comment and add another one.
	Generate the installation documentation in HTML format from
	gcc/doc/install.texi.

From-SVN: r42849
2001-06-04 14:12:47 +00:00
Richard Kenner
b4e3fabb4d tree.def (ARRAY_RANGE_REF): New code.
* tree.def (ARRAY_RANGE_REF): New code.
	* alias.c (handled_component_p, can_address_p): Handle it.
	* dwarf2out.c (loc_descriptor_from_tree): Likewise.
	* explow.c (set_mem_attributes): Likewise.
	* expr.c (expand_assignment, get_inner_reference): Likewise.
	(expand_expr, expand_expr_unaligned, do_jump): Likewise.
	* fold-const.c (operand_equal_p): Likewise.
	* tree.c (staticp, stabilize_reference): Likewise.
	* varasm.c (decode_addr_const): Likewise.

From-SVN: r42848
2001-06-04 09:21:38 -04:00
GCC Administrator
c7d468e698 Daily bump.
From-SVN: r42846
2001-06-04 07:16:08 +00:00
Hans-Peter Nilsson
38fae3e375 Makefile.am (install-glibcppinstallHEADERS, [...]): Have explicit rules catering to SUN make VPATH peculiarities.
* libsupc++/Makefile.am (install-glibcppinstallHEADERS,
	uninstall-glibcppinstallHEADERS): Have explicit rules catering to
	SUN make VPATH peculiarities.
	* libsupc++/Makefile.in: Regenerate.

From-SVN: r42844
2001-06-04 02:24:06 +00:00
Richard Kenner
35fb60c476 reload.c (reload_inner_reg_of_subreg): Return 1 for PLUS.
* reload.c (reload_inner_reg_of_subreg): Return 1 for PLUS.
	(push_reload): Handle non-REG in reload_inner_reg_of_subreg case.

From-SVN: r42843
2001-06-03 21:58:24 -04:00
Kaz Kojima
b91455de3d sh.c (print_operand_address, [...]): Call mark_constant_pool_use before output_addr_const.
* gcc/config/sh/sh.c (print_operand_address, print_operand): Call
mark_constant_pool_use before output_addr_const.
(struct pool_node): New field wend.
(add_constant): Note a sequence of constants that are referenced
by a given label.
(pool_window_label, pool_window_last): New variables.
(dump_table): Emit a unspec_volatile representing the end of a
sequence of constants.
(mark_constant_pool_use): New function.
* gcc/config/sh/sh.md (UNSPECV_WINDOW_END): New constant.
(consttable_2): Add the second operand which flags whether
this consttable entry was used or not.
(consttable_4, consttable_8, consttable_sf, consttable_df):
Likewise.
(consttable_window_end): New insn.

From-SVN: r42841
2001-06-04 00:20:46 +00:00
Richard Kenner
5d9669fd54 Minor whitespace edits
From-SVN: r42840
2001-06-03 20:19:17 -04:00
Alexandre Oliva
77411c845e insn-addr.h (INSN_ADDRESSES_NEW): Make insn_uid__ unsigned.
* insn-addr.h (INSN_ADDRESSES_NEW): Make insn_uid__ unsigned.
Reformat according to coding standards.

From-SVN: r42839
2001-06-03 22:58:08 +00:00
Alexandre Oliva
c5b9ef021f Warning removal.
* config/sh/sh.c (print_operand_address): Cast INTVAL to int.
(shl_and_kind): Cast wide constant.
(gen_far_branch): Define as static, as in declaration.
(barrier_align): Compute cache-line length as unsigned.  Add
parentheses in initial credit computation.
(rounded_frame_size): Add parentheses.
(permanent_obstack): Remove declaration.  Include ggc.h for
declaration of ggc_add_root_rtx().
(get_free_reg): Removed declaration of unused variable reg.
(legitimize_pic_address): Mark mode argument as unused.

From-SVN: r42837
2001-06-03 22:50:27 +00:00
Igor Shevlyakov
667c49250f sh.c (output_branch): Support for insn with lenght attr 12 & 16 which represents cond branches...
* config/sh/sh.c (output_branch): Support for insn with lenght
attr 12 & 16 which represents cond branches outside +-4096 range.

From-SVN: r42835
2001-06-03 22:17:11 +00:00
Alexandre Oliva
9d4d725bb8 lib1funcs.asm (ic_invalidate): Align the cache-mirroring sequence.
* config/sh/lib1funcs.asm (ic_invalidate): Align the
cache-mirroring sequence.  Add nops.

From-SVN: r42833
2001-06-03 22:08:26 +00:00
Joseph Myers
f85b8d1a2f install-old.texi: Remove more old installation documentation.
* doc/install-old.texi: Remove more old installation
	documentation.
	* doc/install.texi: Add relevant parts here.

From-SVN: r42831
2001-06-03 20:06:55 +01:00
Toon Moene
aad82b4388 root.texi: Fix typo in patches e-mail address.
2001-06-03  Toon Moene  <toon@moene.indiv.nluug.nl>

	* root.texi: Fix typo in patches e-mail address.

From-SVN: r42830
2001-06-03 14:14:26 +00:00
Andrew Haley
552cb45af3 osf.S: Add unwind info.
2001-06-03  Andrew Haley  <aph@redhat.com>

        * src/alpha/osf.S: Add unwind info.
        * src/powerpc/sysv.S: Add unwind info.
        * src/powerpc/ppc_closure.S: Likewise.

From-SVN: r42828
2001-06-03 14:05:38 +00:00
Gerald Pfeifer
c777a6def9 * doc/install.texi2html: New script.
From-SVN: r42826
2001-06-03 12:11:43 +00:00
Toon Moene
096c33c36a root.texi: Define help' and patches' mailing list addresses.
2001-06-03  Toon Moene  <toon@moene.indiv.nluug.nl>
	    Jan van Male  <jan.vanmale@fenk.wau.nl>

	* root.texi: Define `help' and `patches' mailing list
	addresses.
	* news.texi: Remove `prerelease' from 0.5.26
	* g77.texi: Use two spaces between command options, eliminate
	some 'overfull hboxes'.  Use help and patches mailing list
	addresses where appropriate.

Co-Authored-By: Jan van Male <jan.vanmale@fenk.wau.nl>

From-SVN: r42825
2001-06-03 11:45:59 +00:00
GCC Administrator
8ab0785536 Daily bump.
From-SVN: r42821
2001-06-03 07:16:42 +00:00
David Edelsohn
5791e6da36 doc/install.texi: Update AIX information again.
From-SVN: r42819
2001-06-03 02:40:15 -04:00
Joseph Myers
b8df899a1c gcc.texi, [...]: Remove old system-specific installation documentation.
* doc/gcc.texi, doc/install-old.texi: Remove old system-specific
	installation documentation.
	* doc/install.texi: Move it to here.

From-SVN: r42816
2001-06-02 23:33:30 +01:00
Kaveh R. Ghazi
873279879c linkage.exp: Use wildcards when matching N32.
* gcc.misc-tests/linkage.exp: Use wildcards when matching N32.
	Ensure logfile entry matches exec command line.

From-SVN: r42814
2001-06-02 20:35:08 +00:00
Anthony Green
20f914dc05 !defined(USE_LTDL) fix
From-SVN: r42813
2001-06-02 19:40:53 +00:00
Anthony Green
9f0fbbabfb Remove libgcjdata hack. Fix jv-scan usage in dejagnu.
From-SVN: r42812
2001-06-02 19:13:52 +00:00