Commit Graph

33699 Commits

Author SHA1 Message Date
Mark Mitchell
69a59a49f6 class.c (add_vcall_offset_vtbl_entries_1): Only add one entry for a destructor.
* class.c (add_vcall_offset_vtbl_entries_1): Only add one entry
	for a destructor.

From-SVN: r39847
2001-02-18 20:41:10 +00:00
Mark Mitchell
8fa33dfa93 invoke.texi (-fsquangle): Remove documentation.
* invoke.texi (-fsquangle): Remove documentation.
	(-fname-mangling-version): Likewise.

	* cp-tree.h (new_abi_rtti_p): Remove.
	(name_mangling_version): Likewise.
	(flag_do_squangling): Likewise.
	* class.c (build_rtti_vtbl_entries): Remove old ABI support.
	* decl.c (grokfndecl): Likewise.
	* decl2.c (name_mangling_version): Remove.
	(flag_do_squangling): Likewise.
	(lang_f_options): Remove `squangle'.
	(unsupported_options): Add `squangle'.
	(cxx_decode_option): Issue a warning about uses of
	-fname-mangling-version.
	(finish_file): Remove old ABI support.
	* pt.c (check_explicit_specialization): Likewise.
	(tsubst_decl): Likewise.
	* rtti.c (init_rtti_processing): Likewise.
	(build_headof): Likewise.
	(get_tinfo_decl_dynamic): Likewise.
	(tinfo_from_decl): Likewise.
	(build_dynamic_cast_1): Likewise.
	(synthesize_tinfo_var): Likewise.
	* init.c (build_new): Allow enumeration types for the array-bounds
	in a direct-new-declarator.

From-SVN: r39845
2001-02-18 20:31:44 +00:00
Lars Brinkhoff
e1078cfca6 optabs.c (expand_abs): Remove reference to HAVE_contitional_arithmetic.
* optabs.c (expand_abs): Remove reference to
        HAVE_contitional_arithmetic.
        * combine.c (simplify_set): Likewise.

From-SVN: r39844
2001-02-18 12:24:10 -08:00
Richard Henderson
3bd2411724 ifcvt.c (dead_or_predicable): Don't move code if eh regions would be disrupted.
* ifcvt.c (dead_or_predicable): Don't move code if eh regions
        would be disrupted.

From-SVN: r39843
2001-02-18 12:06:51 -08:00
Jason Merrill
e0fff4b3a7 Do put the VTT parameter in DECL_ARGUMENTS.
* cp-tree.h (struct cp_language_function): Add x_vtt_parm.
        (current_vtt_parm): New macro.
        (struct lang_decl_flags): Add has_vtt_parm_p, remove vtt_parm.
        (DECL_HAS_VTT_PARM_P): New macro.
        (DECL_VTT_PARM): Remove.
        (FUNCTION_FIRST_USER_PARMTYPE, FUNCTION_FIRST_USER_PARM): New macros.
        * decl.c (duplicate_decls): Only copy the operator code if
        appropriate.
        (start_function): Set current_vtt_parm.
        (lang_mark_tree): Don't mark vtt_parm.
        * decl2.c (maybe_retrofit_in_chrg): Do add the VTT parm to
        DECL_ARGUMENTS.  Set DECL_HAS_VTT_PARM_P.
        * class.c (build_clone): Maybe remove the VTT parm.
        * optimize.c (maybe_clone_body): Set up the VTT parm.
        * pt.c (copy_default_args_to_explicit_spec): Preserve the VTT parm.
        * call.c (build_over_call): Just allow the VTT arg.
        * method.c (make_thunk): Don't set DECL_VTT_PARM.
        (do_build_copy_constructor): Use FUNCTION_FIRST_USER_PARM.
        (synthesize_method): Use FUNCTION_FIRST_USER_PARMTYPE.
        * decl.c (grokdeclarator, copy_args_p, grok_ctor_properties): Likewise.
        * error.c (dump_function_decl): Likewise.
        * call.c (build_user_type_conversion_1, convert_like_real): Abort
        if we try to call a constructor with in-charge or VTT parms.
        * method.c (skip_artificial_parms_for): New fn.
        * call.c (add_function_candidate, build_over_call): Call it.
        * call.c (build_new_method_call): Use current_vtt_parm.
        * init.c (expand_virtual_init): Likewise.
        * class.c (same_signature_p): No longer static.
        * cp-tree.h: Declare it.
        * search.c (look_for_overrides_r): Use it.

From-SVN: r39841
2001-02-18 14:08:00 -05:00
Richard Henderson
3118975871 * config/ns32k/ns32k.h (ADJSP): Upcase arguments.
From-SVN: r39840
2001-02-18 10:40:02 -08:00
Richard Henderson
e491fe9a89 * config/alpha/alpha.md (movsi_fix): Fix typo in pattern name.
From-SVN: r39838
2001-02-18 10:36:37 -08:00
Richard Henderson
5cada0648a * reload1.c (reload_cse_simplify_set): Fix typo.
From-SVN: r39836
2001-02-18 10:24:10 -08:00
Richard Kenner
e28a09a451 * diagnostic.c (_fatal_insn): Decrement errorcount.
From-SVN: r39834
2001-02-18 10:17:36 -05:00
Richard Kenner
d0a5eb32df * invoke.texi (-I): Add note avoiding use for system header files.
From-SVN: r39833
2001-02-18 09:47:39 -05:00
Richard Kenner
751aa7cc88 rtl.h (add_clobbers): Remove duplicate declaration.
* rtl.h (add_clobbers): Remove duplicate declaration.
	* recog.h (added_clobbers_hard_reg_p): New declaration.
	* genemit.c (struct clobber_pat): New field has_hard_reg.
	(gen_insn): Record if added clobbers clobber hard reg.
	(gen_split): Avoid unused warning if number of operands is 0.
	(output_added_clobbers_hard_reg_p): New function.
	(main): Call it.

From-SVN: r39832
2001-02-18 09:34:57 -05:00
GCC Administrator
ad37f6ea74 Daily bump.
From-SVN: r39830
2001-02-18 08:16:09 +00:00
Jeff Law
f1df04f379 Revert experimental hunk accidentally included in committed change.
From-SVN: r39828
2001-02-18 00:32:20 -07:00
Alan Modra
31d689474b pa.c (hppa_expand_prologue): Simplify code storing return pointer.
* pa.c (hppa_expand_prologue): Simplify code storing return
 	pointer.  For large (>=8k) frames with a post_store, adjust stack
 	pointer by 8k-64 first rather than by 64.  When testing with
 	VAL_14_BITS_P, always use the actual value rather than the value
 	negated.  Add blockage to prevent scheduling of spills before
 	stack frame has been created.
	(hppa_expand_epilogue): Simplify code loading return pointer.
 	Allow a slightly larger range for merge_sp_adjust_with_load case.
 	When testing with VAL_14_BITS_P, always use the actual value.

From-SVN: r39826
2001-02-18 00:27:59 -07:00
Alan Modra
4096479e2e pa.c (pa_adjust_insn_length): Check that block move pattern is a set before looking at operands.
2001-02-18  Alan Modra <alan@linuxcare.com.au>

        * config/pa/pa.c (pa_adjust_insn_length): Check that block move
        pattern is a set before looking at operands.

From-SVN: r39825
2001-02-18 00:25:25 -07:00
Mark Mitchell
68626d4f0e fold-const.c (fold_binary_op_with_conditional_arg): New function, split out from ...
* fold-const.c (fold_binary_op_with_conditional_arg): New
	function, split out from ...
	(fold): ... here.
	* tree.def (COND_EXPR): Document the use of VOID_TYPE for
	conditional arms that throw exceptions.

From-SVN: r39822
2001-02-18 06:53:19 +00:00
Mark Mitchell
9c2c54dc94 print-tree.c (print_node): Do not use BLOCK_CHAIN when we're not looking at a BLOCK.
* print-tree.c (print_node): Do not use BLOCK_CHAIN when we're not
	looking at a BLOCK.

From-SVN: r39818
2001-02-18 06:03:09 +00:00
Mark Mitchell
12fa82db7d init.c (build_new): Allow enumeration types for the array-bounds in a direct-new-declarator.
* init.c (build_new): Allow enumeration types for the array-bounds
	in a direct-new-declarator.

	* semantics.c (finish_typeof): Resolve OFFSET_REFs.

From-SVN: r39817
2001-02-18 05:59:45 +00:00
Kaveh R. Ghazi
7afe8c419b aclocal.m4 (gcc_AC_CHECK_DECL): Before attempting the test...
* aclocal.m4 (gcc_AC_CHECK_DECL): Before attempting the test,
	define HAVE_DECL_* to 1 to mask potential backup declarations.
	* configure: Regenerated.

From-SVN: r39814
2001-02-18 03:18:38 +00:00
Mark Mitchell
c750255cac pt.c (check_explicit_specialization): Copy TREE_PRIVATE and TREE_PROTECTED from the template being specialized.
* pt.c (check_explicit_specialization): Copy TREE_PRIVATE and
	TREE_PROTECTED from the template being specialized.

From-SVN: r39813
2001-02-18 00:29:00 +00:00
Jason Merrill
a714e5c5d3 decl2.c (build_artificial_parm): Set TREE_READONLY.
* decl2.c (build_artificial_parm): Set TREE_READONLY.

        * decl.c (bad_specifiers): Allow throw specs on things with
        pointer-to-function or -member-function type.
        * init.c (build_default_init): Don't use a CONSTRUCTOR to initialize
        a pmf.

From-SVN: r39810
2001-02-17 19:00:29 -05:00
Mark Mitchell
8084b91ec4 * call.c (check_dtor_name): Handle template names correctly.
From-SVN: r39809
2001-02-17 23:54:42 +00:00
Mark Mitchell
3747f3dc72 * invoke.texi (-Woverloaded-virtual): Clarify documentation.
From-SVN: r39807
2001-02-17 23:45:54 +00:00
Jason Merrill
d9579a59fd improve comment
From-SVN: r39806
2001-02-17 18:38:08 -05:00
Richard Henderson
78adc5a03d reload1.c (reload_cse_simplify_set): Respect LOAD_EXTEND_OP when replacing a memory load with a register.
* reload1.c (reload_cse_simplify_set): Respect LOAD_EXTEND_OP
        when replacing a memory load with a register.

From-SVN: r39805
2001-02-17 15:07:06 -08:00
Richard Kenner
e2373f9555 recog.c (validate_replace_src_1): New.
* recog.c (validate_replace_src_1): New.
	(validate_replace_src_data): Likewise.
	(validate_replace_src): Use note_uses.
	* rtl.h (note_uses): Declare.
	* rtlanal.c (note_uses): New.

Co-Authored-By: Jan Hubicka <jh@suse.cz>

From-SVN: r39804
2001-02-17 14:50:58 -05:00
Greg Bumgardner
f5d3e93f97 std_ostream.h: Replaced usage of _Traits::_S_eos() with _CharT() as per section 17.2.2.1.3.
2001-02-16  Greg Bumgardner <bumgard@roguewave.com>

	libstdc++/1734
        * include/bits/std_ostream.h: Replaced usage of
        _Traits::_S_eos() with _CharT() as per section 17.2.2.1.3.
        * include/bits/char_traits.h: Removed non-standard
        methods that cannot be used elsewhere.

	libstdc++/1885
        * include/bits/basic_ios.h: Uncommented #include of
        bits/basic_ios.tcc

	libstdc++/1897
        * include/bits/codecvt.h: See next...
        * include/bits/fstream.tcc: See next...
        * include/bits/ostream.tcc: Add __extension__
        to variable-length arrays.

	libstdc++/1967
        * include/bits/localefwd.h: Changed int counter type to size_t.

	libstdc++/1968
        * include/bits/std_fstream.h: Added typedef for __ctype_type.

From-SVN: r39802
2001-02-17 17:51:45 +00:00
Mark Wielaard
6483cbecc4 * java/util/TimerTask.java: New version from Classpath.
From-SVN: r39801
2001-02-17 15:27:34 +00:00
Mark Wielaard
3f57b973f3 Remerge with Classpath (changes by Bryce McKinlay <bryce@albatross.co.nz>)
Remerge with Classpath
    (changes by Bryce McKinlay  <bryce@albatross.co.nz>)
    * java/io/DataInputStream.java (readBoolean): Use convertToBoolean().
    (readByte): Use convertToByte().
    (readChar): Use convertToChar().
    (readInt): Use convertToInt().
    (readLong): Use convertToLong().
    (readShort): Use convertToShort().
    (readUnsignedByte): Use convertToUnsignedByte().
    (readUnsignedShort): Use convertToUnsignedShort().
    (readUTF): Use convertToUTF().

    (convertToBoolean): Resurrected.
    (convertToByte): Ditto.
    (convertToChar): Ditto.
    (convertToInt): Ditto.
    (convertToLong): Ditto.
    (convertToShort): Ditto.
    (convertToUnsignedByte): Ditto.
    (convertToUnsignedShort): Ditto.
    (convertToUTF): Ditto.

From-SVN: r39800
2001-02-17 15:09:46 +00:00
Mark Wielaard
a7e96ed41a * HACKING: new file
From-SVN: r39799
2001-02-17 14:24:41 +00:00
Mark Wielaard
f74fd2bbc1 DataInputStream.java: update copyright notice
* java/io/DataInputStream.java: update copyright notice
    * java/io/PrintWriter.java: idem
    * java/io/Reader.java: idem
    * java/io/StreamTokenizer.java: idem
    * java/io/StringReader.java: idem
    * java/lang/reflect/ReflectPermission.java: idem

From-SVN: r39798
2001-02-17 13:59:13 +00:00
Jan Hubicka
b00b2cc23e reg-stack.c (stack_def): Make field reg unsigned.
* reg-stack.c (stack_def): Make field reg unsigned.
	(remove_regno_note): Unsignetize parameter.

From-SVN: r39794
2001-02-17 09:55:46 +00:00
GCC Administrator
7dc55d5090 Daily bump.
From-SVN: r39793
2001-02-17 08:16:41 +00:00
Richard Kenner
d6447708d8 Fix error in previous entry
From-SVN: r39790
2001-02-16 21:13:03 -05:00
Nick Clifton
2437d4ed72 Allow configuration of texinfo for Cygwin hosts.
From-SVN: r39787
2001-02-17 00:52:44 +00:00
Jason Merrill
48f22ed28f cp-tree.h (DECL_USE_VTT_PARM): Remove.
* cp-tree.h (DECL_USE_VTT_PARM): Remove.
        * decl2.c (maybe_retrofit_in_chrg): Don't create it.
        * optimize.c (maybe_clone_body): Don't substitute it.
        * call.c (build_new_method_call): Check in_chrg instead.
        * init.c (expand_virtual_init): Likewise.

From-SVN: r39785
2001-02-16 19:12:44 -05:00
Benjamin Kosnik
b8f971fc25 char_traits.cc: Move to ...
2001-02-16  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/21_strings/char_traits.cc: Move to ...
	* testsuite/21_strings/char_traits_requirements.cc: ..here.
	* testsuite/21_strings/char_traits-int_type.cc: Move to ...
	* testsuite/21_strings/char_traits_typedefs.cc: ..here.

From-SVN: r39784
2001-02-16 23:58:28 +00:00
Loren J. Rittle
4031ed6598 cplus-dem.c (main): Initialize style.
2001-02-16  Loren J. Rittle  <ljrittle@acm.org>

	* cplus-dem.c (main): Initialize style.

From-SVN: r39782
2001-02-16 23:28:14 +00:00
Gabriel Dos Reis
e8186ecfef decl.c (check_tag_decl): Make sure a typedef for an anonymous class-type introduces at least a type-name.
cp/
        * decl.c (check_tag_decl): Make sure a typedef for an anonymous
        class-type introduces at least a type-name.

testsuite/
        * g++.old-deja/g++.other/decl9.C: New test.

From-SVN: r39781
2001-02-16 22:52:29 +00:00
Alexandre Petit-Bianco
055adbaa1e expr.c (build_instanceof): Check for arrays when trying fold to false.
2001-02-15  Alexandre Petit-Bianco  <apbianco@redhat.com>

	* expr.c (build_instanceof): Check for arrays when trying fold to
	false.

(http://gcc.gnu.org/ml/gcc-patches/2001-02/msg00993.html)

From-SVN: r39778
2001-02-16 14:31:52 -08:00
Jakub Jelinek
2c1be3223f call.c (convert_like_real): Create a temporary for non-lvalue.
* call.c (convert_like_real): Create a temporary for non-lvalue.

	* g++.old-deja/g++.other/init16.C: Update the test so that it does
	not need <string> and also tests the initialization at runtime.

From-SVN: r39776
2001-02-16 23:30:06 +01:00
Jes Sorensen
f5bbdc0c54 Patch from Jes Sorensen for build failure.
* ia64.c (errata_emit_nops): Add VOIDmode as second argument to
	shladd_operand() call.

From-SVN: r39775
2001-02-16 11:33:52 -08:00
Richard Kenner
172890a2dd gcse.c (hash_scan_set): If cprop, see if REG_EQUAL or REG_EQUIV.
* gcse.c (hash_scan_set): If cprop, see if REG_EQUAL or REG_EQUIV.
	Don't CSE a nop.
	(hash_scan_insn): Clean up calls to hash_scan_set.
	(compute_kill_rd): REGNO now unsigned.
	(try_replace_reg): Rework to use simplify_replace_rtx.
	(cprop_jump, cprop_cc0_jump): Likewise.
	(cprop_insn): Call find_reg_equal_equiv_note.
	Reflect changes to cprop_jump and cprop_cc0_jump.

From-SVN: r39774
2001-02-16 14:29:49 -05:00
Richard Kenner
b71e8e8477 recog.c (validate_replace_rtx): Replace in operands of ZERO_EXTRACT in SET_DEST.
* recog.c (validate_replace_rtx): Replace in operands of
	ZERO_EXTRACT in SET_DEST.

From-SVN: r39773
2001-02-16 14:14:09 -05:00
Bruce Korb
6ee71e4971 Use C fixincludes for UnixWare 7.
Co-Authored-By: Rodney Brown <RodneyBrown@mynd.com>

From-SVN: r39771
2001-02-16 18:26:40 +00:00
Richard Kenner
f85cc4cbe2 cse.c (new_label_ref): New variable.
* cse.c (new_label_ref): New variable.
	(insert): Set it instead of recorded_label_ref.
	(cse_basic_block): Set recorded_label_ref if new_label_ref use, has
	CODE_LABEL for this function, and not already in REG_LABEL note.

From-SVN: r39768
2001-02-16 12:50:49 -05:00
Gabriel Dos Reis
f0217d415d mathconf.h (FINITE_P, INFINITE_P): Remove macro definitions.
* libmath/mathconf.h (FINITE_P, INFINITE_P): Remove macro
	definitions.

From-SVN: r39767
2001-02-16 17:06:06 +00:00
Jeffrey Oldham
f5df2e8c06 resource.c (mark_referenced_resources): Fix typo in introductory comment.
2001-02-16  Jeffrey Oldham  <oldham@codesourcery.com>

        * resource.c (mark_referenced_resources): Fix typo in introductory
        comment.
        * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Fix typo in
        string constant.

From-SVN: r39766
2001-02-16 17:04:36 +00:00
Jeffrey Oldham
aab8454ac5 cp-tree.h: Fix typos in comments.
2001-02-16  Jeffrey Oldham  <oldham@codesourcery.com>

        * cp-tree.h: Fix typos in comments.

From-SVN: r39765
2001-02-16 17:03:55 +00:00
Jason Merrill
86306c8e0f fix comment typo
From-SVN: r39764
2001-02-16 08:08:44 -05:00