Commit Graph

35570 Commits

Author SHA1 Message Date
Rainer Orth
09e983244e alpha.c (alpha_va_arg): Handle TFmode, TCmode args, passed by reference.
* config/alpha/alpha.c (alpha_va_arg): Handle TFmode, TCmode args,
	passed by reference.

From-SVN: r42969
2001-06-07 16:56:31 +00:00
Joseph Myers
561c1ae113 tm.texi (TARGET_SWITCHES, [...]): Adjust markup.
* doc/tm.texi (TARGET_SWITCHES, TARGET_OPTIONS): Adjust markup.
	Document use of N_(...), and show it in examples.  Note that
	documentation should be added to invoke.texi.  Avoid an overfull
	hbox.

From-SVN: r42965
2001-06-07 17:41:27 +01:00
Nathan Sidwell
fcebb2ddda re PR c++/2914 (gcc 3.0 crashes on xalan DoubleSupport.cpp)
cp:
	PR c++/2914
	* decl.c (pushtag): Don't push into a complete type's scope.
testsuite:
	* g++.old-deja/g++.ext/anon3.C: New test.

From-SVN: r42962
2001-06-07 16:15:45 +00:00
Jan Hubicka
d7e5d7feae toplev.c (rest_of_compilation): Revert previous patch.
* toplev.c (rest_of_compilation): Revert previous patch.
	* final.c (shorten_branches): Likewise.

From-SVN: r42961
2001-06-07 15:10:58 +00:00
Gerald Pfeifer
f9b23f0c9c pself.c, [...]: Remove.
* pself.c, pself1.c, pself2.c, pself3.c, pself4.c, pself5.c:
	Remove.

From-SVN: r42959
2001-06-07 13:58:25 +00:00
Joseph Myers
8825dfbd2f * doc/install-old.texi: Remove more obsolete documentation.
From-SVN: r42957
2001-06-07 12:38:06 +01:00
Jan Hubicka
b47f8cfcfc Thu Jun 7 13:20:14 CEST 2001 Jan Hubicka <jh@suse.cz>
* expr.c (copy_blkmode_from_reg): Fix operand_subword_force call.

Thu Jun  7 12:12:58 CEST 2001  Jan Hubicka  <jh@suse.cz>

	* toplev.c (rest_of_compilation): Call split_all_insns
	before reg-stack and shorten-branches. Do shorten-branches
	after reg-stack.
	* final.c (shorten_branches): Remove insn splitting code.

From-SVN: r42956
2001-06-07 11:23:34 +00:00
Nathan Sidwell
43160d015f configure.in (sparc*-*-*): Check assembler R_SPARC_UA32 support.
* configure.in (sparc*-*-*): Check assembler R_SPARC_UA32 support.
	* configure: Rebuilt.

From-SVN: r42955
2001-06-07 08:32:03 +00:00
Andreas Jaeger
750c925888 * emit-rtl.c (operand_subword): Remove unused variable.
From-SVN: r42953
2001-06-07 09:54:54 +02:00
Joseph Myers
f890c4fd48 update_web_docs, [...]: Check out files that may be in the Attic.
* update_web_docs, doc_exclude: Check out files that may be in the
	Attic.  Check out texinfo.tex.  Don't generate anything from
	c-tree.texi.  Generate PostScript output from manuals.

From-SVN: r42952
2001-06-07 08:27:49 +01:00
GCC Administrator
cffd96a090 Daily bump.
From-SVN: r42950
2001-06-07 07:16:13 +00:00
Jason Merrill
d0cd8b4401 cp-tree.h (THUNK_GENERATE_WITH_VTABLE_P): Lose.
* cp-tree.h (THUNK_GENERATE_WITH_VTABLE_P): Lose.
        (struct lang_decl_flags): Lose generate_with_vtable_p.
        (BV_GENERATE_THUNK_WITH_VTABLE_P): Lose.
        * class.c (copy_virtuals): Adjust.
        * decl2.c (mark_vtable_entries): Adjust.
        * method.c (make_thunk, build_vtable_entry): Adjust.
        * class.c (update_vtable_entry_for_fn): Only look as far as the
        first defining class.
        (build_vtbl_initializer): Put nothing in the slot for a function only
        defined in a lost primary virtual base.
        (add_vcall_offset_vtbl_entries_1): Use the same code for
        the lost primary case and the normal case.
        (dfs_unshared_virtual_bases): Don't lose a non-virtual primary base.
        (get_vfield_offset, get_derived_offset): Lose.
        (dfs_find_final_overrider): Use look_for_overrides_here.
        (get_matching_virtual): New fn.
        * semantics.c (emit_associated_thunks): Check BV_USE_VCALL_INDEX_P,
        not BV_VCALL_INDEX.
        * search.c (look_for_overrides_here): Split out from...
        (look_for_overrides_r): Here.

        * class.c (find_final_overrider): Return error_mark_node on error.

From-SVN: r42949
2001-06-06 17:52:52 -04:00
John David Anglin
acf97e0b75 call.c (convert_default_arg): Use INTEGRAL_TYPE_P.
* call.c (convert_default_arg): Use INTEGRAL_TYPE_P.
	(build_over_call): Likewise.
	* decl.c (grokparms): Likewise.
	* pt.c (tsubst_decl): Likewise.
	* typeck.c (convert_arguments): Likewise.

From-SVN: r42947
2001-06-06 17:10:52 +00:00
Jan Hubicka
ef6257cdab i386.md (floatdi?f): Avoid usinf of SSE instructions if TARGET_64BIT is false.
* i386.md (floatdi?f): Avoid usinf of SSE instructions
	if TARGET_64BIT is false.
	(floatdi?f_i386_only): New insn.
	(floatdi?f_i386): Disable for !TARGET_64BIT.

	* (min?f, max?f splitters): Handle case where
	operands are cross-matched.

	* i386.h (HI_REGISTER_NAMES): Remove redundant definition
	(MMX_REGISTER_NAMES): Kill.
	(PRINT_OPERAND): Fix comment.
	(PRINT_REG): Likewise.
	* i386.c (print_reg): Kill support for 'm' CODE; simplify.
	(print_operand): Update comment; kill 'm'.

	* i386.c (x86_branch_hints): New global variable
	(print_operand): Support outputting of branch prediction hints.
	* i386.md (conditional jump patterns): Add branch prediction hints
	to the template.
	* i386.h (x86_branch_hints): Declare
	(TARGET_BRANCH_PREDICTION_HINTS): New macro.
	(PRINT_OPERAND_FUNCT_VALID_P): New.
	* final.c (final_forward_branch_p): New function.

From-SVN: r42945
2001-06-06 12:57:31 +00:00
Benjamin Kosnik
3b8fd08f82 string-inst.cc (_Rep::_S_max_size): Add instantiation.
2001-06-06  Benjamin Kosnik  <bkoz@redhat.com>

	* src/string-inst.cc (_Rep::_S_max_size): Add instantiation.

From-SVN: r42943
2001-06-06 08:49:10 +00:00
Richard Henderson
37bb27091e flow.c (mark_used_reg): Clean up looping over multiple hard registers.
* flow.c (mark_used_reg): Clean up looping over multiple hard
        registers.  Do conditional life bits across multiple hard regs.

From-SVN: r42942
2001-06-06 00:33:57 -07:00
GCC Administrator
e7580d2ee7 Daily bump.
From-SVN: r42939
2001-06-06 07:16:15 +00:00
Mark Mitchell
47ee89044d * semantics.c (begin_class_definition): Robustify.
From-SVN: r42937
2001-06-06 07:03:03 +00:00
Jeffrey D. Oldham
1b577f5a58 reload1.c (reload): Revert Schmidt's change so all USEs are not deleted during reload.
2001-06-05  Jeffrey D. Oldham  <oldham@codesourcery.com>

	* reload1.c (reload): Revert Schmidt's change so all USEs are not
	deleted during reload.

From-SVN: r42935
2001-06-06 03:32:54 +00:00
Mark Mitchell
7e9abee913 pt.c (instantiate_decl): Tell the repository code about the clones, not the cloned functions.
* pt.c (instantiate_decl): Tell the repository code about the
	clones, not the cloned functions.
	* repo.c (repo_template_used): Explicitly instantiate the cloned
	function, not the clones.

From-SVN: r42931
2001-06-06 03:15:33 +00:00
Mark Mitchell
7b2b3f29e5 c-semantics.c (genrtl_scope_stmt): Write out nested inline functions here, instead of ...
* c-semantics.c (genrtl_scope_stmt): Write out nested inline
	functions here, instead of ...
	* c-decl.c (c_expand_body): ... here.

From-SVN: r42930
2001-06-06 03:08:21 +00:00
Jeff Sturm
9166f7a36a libjava.exp (libjava_arguments): Build with `-no-install' when $mode == "link".
* lib/libjava.exp (libjava_arguments): Build with `-no-install'
when $mode == "link".

From-SVN: r42928
2001-06-06 02:53:52 +00:00
David O'Brien
910e231e80 config.gcc, bsd.h: Do not directly include sparc/sparc.h.
2001-06-05  David O'Brien  <obrien@FreeBSD.org>
	* config.gcc, config/sparc/bsd.h:  Do not directly include
	sparc/sparc.h.  Instead do it via tm_file.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20010604154759.G25044@redhat.com>

From-SVN: r42927
2001-06-06 02:13:37 +00:00
Richard Henderson
099c8b17ac dwarf2.h (DW_EH_PE_aligned): New.
* dwarf2.h (DW_EH_PE_aligned): New.
        * dwarf2asm.c (eh_data_format_name): Name it.
        (dw2_asm_output_encoded_addr_rtx): Align for it.
        * dwarf2out.c (output_call_frame_info): Handle it for personality
        routine and LSDA pointers.

        * unwind-pe.h (DW_EH_PE_aligned): New.
        (base_of_encoded_value): Handle it.
        (read_encoded_value_with_base): Likewise.
        * unwind-dw2-fde.c (base_from_object): Likewise.
        (get_cie_encoding): Likewise.

        * config/alpha/elf.h: Remove ecoff commentary.
        * config/alpha/osf.h (ASM_PREFERRED_EH_DATA_FORMAT): New.

From-SVN: r42926
2001-06-05 18:57:49 -07:00
David O'Brien
c51f6c6bd5 config.gcc, bsd386.h: Do not directly include i386/386bsd.h.
2001-06-05  David O'Brien  <obrien@FreeBSD.org>
	* config.gcc, config/i386/bsd386.h:  Do not directly include
	i386/386bsd.h.  Instead do it via tm_file.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20010604154739.F25044@redhat.com>

From-SVN: r42925
2001-06-06 01:54:45 +00:00
Benjamin Kosnik
5de197f210 basic_ios.tcc: Formatting tweaks.
2001-06-05  Benjamin Kosnik  <bkoz@redhat.com>

	libstdc++/3045
	* include/bits/basic_ios.tcc: Formatting tweaks.
	* include/bits/ios_base.h: Formatting tweaks.
	* src/ios.cc (ios_base::Init::_S_ios_create): Use filebufs here.
	(ios_base::Init::_S_ios_destroy): ..and here. Explicitly call dtors.
	* src/globals.cc: Allocate filebufs for standard streams here.
	(buf_cout, buf_cin, buf_cerr): Like so.
	(buf_wcout, buf_wcin, buf_wcerr): And so.
	* testsuite/27_io/ios_init.cc: Add.

From-SVN: r42922
2001-06-06 01:31:58 +00:00
David O'Brien
938b21d3de elfos.h (USING_ELFOS_H): Identify the use of elfos.h in the same way svr4.h does.
2001-06-05  David O'Brien  <obrien@FreeBSD.org>
	* elfos.h (USING_ELFOS_H):  Identify the use of elfos.h in the same
	way svr4.h does.

Approved by:  Richard Henderson <rth@redhat.com>
              Message-ID: <20010604154656.E25044@redhat.com>

From-SVN: r42921
2001-06-06 00:46:01 +00:00
Pascal Obry
9dd53f2c1b configure.in: Quote $enable_win32_registry in case the value has spaces in it.
* configure.in: Quote $enable_win32_registry in case the value has
spaces in it.
* configure: Ditto.

From-SVN: r42920
2001-06-05 18:00:22 -04:00
Mark Mitchell
d558416ef3 print-rtl.c (xspaces): Remove.
* print-rtl.c (xspaces): Remove.
	(print_rtx): Use printf field-width, rather than xpsaces, to
	indent.
	* toplev.c (main): Disable sibling-call optimization if we are
	handling exceptions.

	* reload1.c (reload): Delete all USEs generated during reload.

From-SVN: r42917
2001-06-05 20:32:41 +00:00
Scott Snyder
b0317102a8 gccbug.in: Fix typo.
2001-06-05  scott snyder  <snyder@fnal.gov>

	* gccbug.in:  Fix typo.

From-SVN: r42913
2001-06-05 18:38:44 +00:00
Andreas Jaeger
2d94a1fa11 builtins.def: Fix definition of __builtin_cosf, it uses float as parameter and return value.
* builtins.def: Fix definition of __builtin_cosf, it uses float as
	parameter and return value.

From-SVN: r42911
2001-06-05 18:02:56 +02:00
Alexandre Petit-Bianco
0c90837b16 expr.c (force_evaluation_order): Match wrapped ctor calls, locate arguments accordingly.
2001-06-04  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* expr.c (force_evaluation_order): Match wrapped ctor calls, locate
	arguments accordingly.

(http://gcc.gnu.org/ml/gcc-patches/2001-06/msg00214.html)

From-SVN: r42910
2001-06-05 08:48:58 -07:00
Anthony Green
7f471801f0 Remove -Amachine and -Acpu from here.
From-SVN: r42908
2001-06-05 13:06:54 +00:00
Nathan Sidwell
bea09693c9 call.c (build_user_type_conversion_1): Set ICS_USER_FLAG and ICS_BAD_FLAG on created conversion.
cp:
	* call.c (build_user_type_conversion_1): Set ICS_USER_FLAG and
	ICS_BAD_FLAG on created conversion.
	(compare_ics): Break out rank.
testsuite:
	* g++.old-deja/g++.other/conv7.C: New test.

From-SVN: r42907
2001-06-05 12:53:52 +00:00
Nathan Sidwell
8f7550cae8 decl.c (xref_tag): Remove extraneous %s on dependent name lookup warning.
* decl.c (xref_tag): Remove extraneous %s on dependent name
	lookup warning.

From-SVN: r42905
2001-06-05 11:57:59 +00:00
Nathan Sidwell
442e01b67c class.c (layout_vtable_decl): Fix off by one error on build_index_type.
* class.c (layout_vtable_decl): Fix off by one error on
	build_index_type.
	(build_vtt): Likewise.
	(build_ctor_vtbl_group): Likewise.

From-SVN: r42903
2001-06-05 11:53:28 +00:00
Nathan Sidwell
e76b482084 Correct CVS resurrection of invoke.texi.
* doc/invoke.texi: Document new tree dump flags.

From-SVN: r42902
2001-06-05 10:36:31 +00:00
Richard Kenner
75c2550ab5 Update comments for ARRAY_RANGE_REF
From-SVN: r42901
2001-06-05 06:27:44 -04:00
Joseph Myers
f375b7a705 re PR c/2735 (can't cast a union type defined by a typedef to itself)
* c-typeck.c (build_c_cast): Use TYPE_MAIN_VARIANT when checking
	for casting an aggregate to its own type.  Fixes PR c/2735.

testsuite:
	* gcc.c-torture/compile/20010605-2.c: New test.

From-SVN: r42900
2001-06-05 11:16:57 +01:00
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