Commit Graph

18122 Commits

Author SHA1 Message Date
Martin v. Löwis df44f2b0e9 * search.c (my_tree_cons): Reimplement.
From-SVN: r21927
1998-08-23 22:05:51 -04:00
Jason Merrill 319285566b lex.c (real_yylex): Don't warn about long long constants if we're allowing long long.
* lex.c (real_yylex): Don't warn about long long constants if
        we're allowing long long.
	* decl.c (pushdecl): Use IDENTIFIER_NAMESPACE_VALUE instead of
	accessing bindings directly.
	* lang-specs.h: Remove __HONOR_STD.
	* inc/exception, inc/new, inc/new.h, inc/typeinfo: Likewise.

From-SVN: r21926
1998-08-23 22:00:27 -04:00
Jason Merrill 46fe53810a * fixinc.irix: Add curses.h handling from fixinc.wrap.
From-SVN: r21923
1998-08-23 20:54:37 -04:00
Jeff Law 44af3436ad Daily bump.
From-SVN: r21921
1998-08-23 18:45:02 -06:00
David S. Miller 9d09e0d11c Fix thinko in previous commit.
From-SVN: r21920
1998-08-23 16:03:03 -07:00
David S. Miller 7164820232 sparc.c (sparc_emit_set_const32): If outputting a CONST_INT...
* config/sparc/sparc.c (sparc_emit_set_const32): If outputting a
	CONST_INT, not a symbolic reference, don't use a HIGH/LO_SUM
	sequence, use SET/IOR instead so CSE can see it.
	* config/sparc/sparc.md (movhi_const64_special,
	movsi_const64_special): New patterns necessitated by that change.
	(movhi_high): Remove.
	(movhi_lo_sum): Change to match an IOR.
	(movdf_insn_sp32): Test TARGET_V9 not TARGET_ARCH64.
	(movdf_insn_v9only): New pattern for when V9 but not ARCH64.
	(movdf_insn_sp64): Test both TARGET_V9 and TARGET_ARCH64.
	(movdf splits): Allow when not V9 or when not ARCH64 and integer
	registers are involved.
	(snesi_zero_extend split): Remove reload_completed test.
	(unnamed plus and minus zero_extend sidi splits): Add it.

From-SVN: r21919
1998-08-23 12:48:11 -07:00
Mark Mitchell 7a6d97a012 old-dejagnu.exp: Make it possible to XFAIL a test that causes an ICE.
* lib/old-dejagnu.exp: Make it possible to XFAIL a test that
	causes an ICE.

From-SVN: r21918
1998-08-23 15:29:09 +00:00
Mark Mitchell 70c4c000ff old-dejagnu.exp: Make it possible to XFAIL a test that causes an ICE.
* lib/old-dejagnu.exp: Make it possible to XFAIL a test that
	causes an ICE.

From-SVN: r21917
1998-08-23 15:21:34 +00:00
Mark Mitchell d7ceab7b4b decl.c (grokdeclarator): Complain about in-class initialization of aggregates and/or references.
* decl.c (grokdeclarator): Complain about in-class initialization
	of aggregates and/or references.
	* pt.c (process_template_parm): Clear IS_AGGR_TYPE for
	TEMPLATE_TYPE_PARMs.

From-SVN: r21916
1998-08-23 14:40:50 +00:00
Mark Mitchell 03d0f4af2d iomanip.h: Use __extension__ for `extern' explicit template instantiations.
* iomanip.h: Use __extension__ for `extern' explicit template
	instantiations.
	* sinst.cc: Don't explicitly instantiation string_char_traits<char>.
	* cinst.cc: Likewiwse, for complex<float>, complex<double>,
	complex<long double>.
	* extend.texi: Remove description of extension to explicit
	instantiation that is now endorsed by standard C++.
	* decl2.c (grok_array_decl): Add comment.
	(mark_used): Don't instantiate an explicit instantiation.
	* friend.c (make_friend_class): Remove bogus comment.  Fix check
	for partial specializations.
	* pt.c (check_explicit_specialization): Don't
	SET_DECL_EXPLICIT_INSTANTIATION here.
	(mark_decl_instantiated): Or here.
	(do_decl_instantiation): Do it here, instead.  Add checks for
	duplicate explicit instantiations, etc.  Tidy.
	(do_type_instantiation): Likewise.
	(instantiate_decl): Improve comments.  Complain about explicit
	instantiations where no definition is available.
	* cp-tree.h (ansi_null_node): Remove.
	* call.c (build_over_call): Warn about converting NULL to an
	arithmetic type.
	* cvt.c (build_expr_type_conversion): Likewise.  Use
	null_ptr_cst_p instead of expanding it inline.
	* decl.c (ansi_null_node): Remove.
	(init_decl_processing): Make null_node always have integral type.
	* except.c (build_throw): Warn about converting NULL to an
	arithmetic type.
	* lex.c (init_parse): Remove handling of ansi_null_node.
	* pt.c (type_unification_real): Don't convert NULL to void* type.
	* typeck.c (build_binary_op_nodefault): Fix NULL warnings.
	(convert_for_assignment): Warn about converting NULL to an
	arithmetic type.
	(convert_for_initialization): Likewise.

From-SVN: r21915
1998-08-23 12:47:24 +00:00
David S. Miller 5d7045be13 arc.c (arc_initialize_pic): Remove.
* config/arc/arc.c (arc_initialize_pic): Remove.
	* config/arc/arc.h (INITIALIZE_PIC): Similarly, this routine does
	nothing on any platform and is invoked by no-one, it does not even
	appear in the documentation.
	* config/sparc/sparc.h (INITIALIZE_PIC): Likewise.
	* config/sparc/sparc.c (initialize_pic): Likewise.
	(find_addr_reg): Remove this as well, no longer referenced after
	my rewrite.

From-SVN: r21914
1998-08-23 03:43:54 -07:00
Jeff Law 4da4d9d041 Daily bump.
From-SVN: r21912
1998-08-22 18:45:01 -06:00
Jeff Law e757da5ef3 recog.c (validate_replace_rtx_group): New function.
�
        * recog.c (validate_replace_rtx_group): New function.
        * recog.h (validate_replace_rtx_group): Declare it.
        * regmove.c (optimize_reg_copy_3): If any substitution fails, then undo
        the entire group of substitutions.

From-SVN: r21910
1998-08-22 17:21:24 -06:00
Jeff Law edfac33e82 recog.c (validate_replace_rtx_group): New function.
�
        * recog.c (validate_replace_rtx_group): New function.
        * recog.h (validate_replace_rtx_group): Declare it.
        * regmove.c (optimize_reg_copy_3): If any substitution fails, then undo
        the entire group of substitutions.

From-SVN: r21909
1998-08-22 17:21:23 -06:00
Jeff Law 4cd864b2eb recog.c (validate_replace_rtx_group): New function.
�
        * recog.c (validate_replace_rtx_group): New function.
        * recog.h (validate_replace_rtx_group): Declare it.
        * regmove.c (optimize_reg_copy_3): If any substitution fails, then undo
        the entire group of substitutions.

From-SVN: r21908
1998-08-22 17:21:19 -06:00
Klaus-Georg Adams 59d4e48136 loop.c (load_mems): Fix initializers.
�
        * loop.c (load_mems): Fix initializers.

From-SVN: r21907
1998-08-22 16:32:55 -06:00
Klaus-Georg Adams 227bfdfb64 loop.c (load_mems): Fix initializers.
(
        * loop.c (load_mems): Fix initializers.

From-SVN: r21906
1998-08-22 16:32:53 -06:00
David S. Miller 58e0b7e094 Fix thinko in this change.
From-SVN: r21905
1998-08-21 21:53:45 -07:00
David S. Miller 172f4957e1 expmed.c (make_tree): Sign extend even if TREE_UNSIGNED...
* expmed.c (make_tree) [CONST_INT]: Sign extend even if
	TREE_UNSIGNED, when bitsize of type's mode is larger than
	HOST_BITS_PER_WIDE_INT.

From-SVN: r21904
1998-08-21 20:17:56 -07:00
Jeff Law 553e18537e Daily bump.
From-SVN: r21902
1998-08-21 18:45:01 -06:00
David S. Miller 994099bb20 sparc.md (TFmode splits): Handle destination registers being referenced in the address correctly.
* config/sparc/sparc.md (TFmode splits): Handle destination
	registers being referenced in the address correctly.

From-SVN: r21901
1998-08-21 17:11:24 -07:00
Jeffrey A Law a00c936aaa memtst.c: Reduce size of array when STACK_SIZE is defined.
* gcc.c-torture/unsorted/memtst.c: Reduce size of array when
        STACK_SIZE is defined.
        * gcc.c-torture/unsorted/stuct.c: Similarly.
Makes targets with 16bit address spaces happy.

From-SVN: r21900
1998-08-21 17:30:36 -06:00
Jeffrey A Law 028622945d * gcc.c-torture/compile/980821-1.c: New test.
From-SVN: r21899
1998-08-21 17:00:36 -06:00
Alexandre Petit-Bianco 1847ba9e03 tree.def (LABELED_BLOCK_EXPR, [...]): New tree nodes.
�
	* tree.def (LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR): New tree nodes.
  	* tree.h (LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
 	EXIT_BLOCK_LABELED_BLOCK, EXIT_BLOCK_RETURN, LOOP_EXPR_BODY): New
 	macros.
	* expr.c (expand_expr): Handle LABELED_BLOCK_EXPR and
 	EXIT_BLOCK_EXPR.

From-SVN: r21898
1998-08-21 12:32:21 -07:00
Alexandre Petit-Bianco f42e28dd5f tree.def (LABELED_BLOCK_EXPR, [...]): New tree nodes.
�
	* tree.def (LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR): New tree nodes.
  	* tree.h (LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
 	EXIT_BLOCK_LABELED_BLOCK, EXIT_BLOCK_RETURN, LOOP_EXPR_BODY): New
 	macros.
	* expr.c (expand_expr): Handle LABELED_BLOCK_EXPR and
 	EXIT_BLOCK_EXPR.

From-SVN: r21897
1998-08-21 12:32:19 -07:00
Alexandre Petit-Bianco 0044c65c78 tree.def (LABELED_BLOCK_EXPR, [...]): New tree nodes.
�
	* tree.def (LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR): New tree nodes.
  	* tree.h (LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
 	EXIT_BLOCK_LABELED_BLOCK, EXIT_BLOCK_RETURN, LOOP_EXPR_BODY): New
 	macros.
	* expr.c (expand_expr): Handle LABELED_BLOCK_EXPR and
 	EXIT_BLOCK_EXPR.

From-SVN: r21896
1998-08-21 12:32:18 -07:00
Alexandre Petit-Bianco 40edd0bd03 tree.def (LABELED_BLOCK_EXPR, [...]): New tree nodes.
�
	* tree.def (LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR): New tree nodes.
  	* tree.h (LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
 	EXIT_BLOCK_LABELED_BLOCK, EXIT_BLOCK_RETURN, LOOP_EXPR_BODY): New
 	macros.
	* expr.c (expand_expr): Handle LABELED_BLOCK_EXPR and
 	EXIT_BLOCK_EXPR.

From-SVN: r21895
1998-08-21 12:32:16 -07:00
Jeff Law 8ee53a2191 980526-2.c: Disable for targets with 16bit ints.
* gcc.c-torture/980526-2.c: Disable for targets with 16bit ints.

From-SVN: r21894
1998-08-20 20:15:12 -06:00
Jeff Law 767af602bc 980526-2.c: Disable for targets with 16bit ints.
�
        * gcc.c-torture/980526-2.c: Disable for targets with 16bit ints.

From-SVN: r21893
1998-08-20 20:15:11 -06:00
Jeffrey A Law f24b26edd3 h8300.c (h8300_encode_label): Use '&' for tiny data items.
* h8300.c (h8300_encode_label): Use '&' for tiny data items.
        * h8300.h (TINY_DATA_NAME_P): Likewise.
        (STRIP_NAME_ENCODING): Handle '&'.

From-SVN: r21892
1998-08-20 20:07:01 -06:00
Jeff Law 1df7c0ee25 Daily bump.
From-SVN: r21890
1998-08-20 18:45:02 -06:00
Jeffrey A Law 2b9abd88e9 mn10200.h (REG_OK_FOR_INDEX_P): Do not check the mode of the register (it could be accessed via an outer SUBREG).
* mn10200.h (REG_OK_FOR_INDEX_P): Do not check the mode of the
        register (it could be accessed via an outer SUBREG).
        (REG_OK_FOR_BASE_P): Likewwise.
        (GO_IF_LEGITIMATE_ADDRESS): Consistently use REGNO_OK_FOR_BASE_P.

From-SVN: r21889
1998-08-20 17:48:14 -06:00
Jason Merrill acb619d997 oops
From-SVN: r21888
1998-08-20 19:35:23 -04:00
Jeffrey A Law 84f1ebff03 remove.c (optimize_reg_copy_3): Abort instead of silently generating bogus rtl.
* remove.c (optimize_reg_copy_3): Abort instead of silently generating
        bogus rtl.

From-SVN: r21887
1998-08-20 17:19:05 -06:00
Jeffrey A Law 8fc001f9a2 jump.c (rtx_renumbered_equal_p): Do not consider PLUS commutative.
* jump.c (rtx_renumbered_equal_p): Do not consider PLUS commutative.
Because it isn't inside a MEM on the PA.  Fixes 930628-1.c on the mainline
branch.

From-SVN: r21886
1998-08-20 12:45:48 -06:00
David S. Miller 5e3848f5e3 sparc.md (movtf_insn_sp32): All memory operands must be offsettable so the splits can be made.
* config/sparc/sparc.md (movtf_insn_sp32): All memory operands
	must be offsettable so the splits can be made.

From-SVN: r21885
1998-08-20 11:39:29 -07:00
Jason Merrill 50a6dbd707 tree.c (search_tree, [...]): New fn.
* tree.c (search_tree, no_linkage_helper, no_linkage_check): New fn.
	* pt.c (coerce_template_parms): Use no_linkage_check.
	* decl.c (grokvardecl): Likewise.
	(grokfndecl): Likewise.  Members of anonymous types have no linkage.
	* method.c (process_overload_item): Remove useless code.

From-SVN: r21884
1998-08-20 13:41:43 -04:00
Per Bothner a604b0f1db Use new ChangeLog style.
From-SVN: r21883
1998-08-20 09:45:53 -07:00
Per Bothner 6a5c8e422c Handle new'ing of Java classes.
�
	Handle new'ing of Java classes.
	* init.c (build_class_classref):  New function.
	(build_new_1):  If type is TYPE_FOR_JAVA:  Call _Jv_AllocObject;
	constructor does not return this;  don't need to exception-protect.
	* pt.c (lookup_template_class):  Copy TYPE_FOR_JAVA flag.
	* decl2.c (acceptable_java_type):  Handle template-derived types.

From-SVN: r21882
1998-08-20 09:44:03 -07:00
Per Bothner 824f42abaf Handle new'ing of Java classes.
Handle new'ing of Java classes.
	* init.c (build_class_classref):  New function.
	(build_new_1):  If type is TYPE_FOR_JAVA:  Call _Jv_AllocObject;
	constructor does not return this;  don't need to exception-protect.
	* pt.c (lookup_template_class):  Copy TYPE_FOR_JAVA flag.
	* decl2.c (acceptable_java_type):  Handle template-derived types.

From-SVN: r21881
1998-08-20 09:44:01 -07:00
Per Bothner f668f16016 Handle new'ing of Java classes.
(
	Handle new'ing of Java classes.
	* init.c (build_class_classref):  New function.
	(build_new_1):  If type is TYPE_FOR_JAVA:  Call _Jv_AllocObject;
	constructor does not return this;  don't need to exception-protect.
	* pt.c (lookup_template_class):  Copy TYPE_FOR_JAVA flag.
	* decl2.c (acceptable_java_type):  Handle template-derived types.

From-SVN: r21880
1998-08-20 09:43:59 -07:00
Per Bothner 743f140d46 Handle new'ing of Java classes.
d
	Handle new'ing of Java classes.
	* init.c (build_class_classref):  New function.
	(build_new_1):  If type is TYPE_FOR_JAVA:  Call _Jv_AllocObject;
	constructor does not return this;  don't need to exception-protect.
	* pt.c (lookup_template_class):  Copy TYPE_FOR_JAVA flag.
	* decl2.c (acceptable_java_type):  Handle template-derived types.

From-SVN: r21879
1998-08-20 09:43:58 -07:00
Per Bothner d35897f502 decl2.c (import_export_vtable): Suppress vtables for Java classes.
�
	* decl2.c (import_export_vtable):  Suppress vtables for Java classes.

From-SVN: r21878
1998-08-20 07:42:08 -07:00
Jason Merrill 68caa3978a regen
From-SVN: r21877
1998-08-20 09:54:54 -04:00
Mark Mitchell 4d85e00e38 decl.c (duplicate_decls): Always merge the old and new patterns for templates...
* decl.c (duplicate_decls): Always merge the old and new patterns
	for templates, regardless of whether or not the new one has
	DECL_INITIAL.  Don't throw away specializations.  Merge
	DECL_SAVED_TREE.
	* pt.c (tsubst_decl): Use the right pattern when calculating the
	complete args for a new template instance.
	(do_decl_instantiation): Fix typo in comment.
	(regenerate_decl_from_template): Deal with tricky friend template
	case.
	(instantiate_decl): Likewise.

From-SVN: r21876
1998-08-20 13:46:53 +00:00
Michael Meissner 293bcdc970 Include system.h, not stdio.h
From-SVN: r21874
1998-08-20 11:00:20 +00:00
David Edelsohn 3345af62e8 * rs6000.md (movqi, movhi): Add CONSTANT_P_RTX.
From-SVN: r21873
1998-08-20 06:50:39 -04:00
Dave Brolley 7771032e79 stor-layout.c (layout_type): Compute TYPE_SIZE_UNIT correctly for arrays of bits.
Thu Aug 20 13:15:11 1998  Dave Brolley  <brolley@cygnus.com>
	* stor-layout.c (layout_type): Compute TYPE_SIZE_UNIT correctly for
	arrays of bits.
	* cpplib.c (cpp_define): Handle macros with parameters.

From-SVN: r21872
1998-08-20 06:29:22 -04:00
Jeffrey A Law ee712d650b init.c (build_builtin_delete_call): Add missing assemble_external call.
* init.c (build_builtin_delete_call): Add missing assemble_external
        call.

From-SVN: r21871
1998-08-20 02:10:49 -06:00
Jason Merrill eab049e2f6 * parse.y (notype_unqualified_id): Also accept ~A<int>.
From-SVN: r21870
1998-08-19 22:54:29 -04:00