Commit Graph

18087 Commits

Author SHA1 Message Date
Benjamin Kosnik
22a7be5365 cp-tree.h: Declare.
h
1998-08-24  Benjamin Kosnik  <bkoz@cygnus.com>
	* cp-tree.h: Declare.
	* pt.c (decl_template_parm_p): New function.
	* decl.c (pushdecl): Check decls for redeclaring template parms.
	(xref_tag): Make redeclaration an error, print decl.
	* decl2.c (grokfield): Check field_decls for redeclaration as well.

From-SVN: r21942
1998-08-24 11:57:04 +00:00
Benjamin Kosnik
037155f1fd cp-tree.h: Declare.
�
1998-08-24  Benjamin Kosnik  <bkoz@cygnus.com>
	* cp-tree.h: Declare.
	* pt.c (decl_template_parm_p): New function.
	* decl.c (pushdecl): Check decls for redeclaring template parms.
	(xref_tag): Make redeclaration an error, print decl.
	* decl2.c (grokfield): Check field_decls for redeclaration as well.

From-SVN: r21941
1998-08-24 11:57:02 +00:00
Jason Merrill
dc469f5910 comment
From-SVN: r21940
1998-08-24 07:27:27 -04:00
Jason Merrill
479aecf185 * parse.y (primary): Fix up the type of string constants.
From-SVN: r21939
1998-08-24 07:25:21 -04:00
Mark Mitchell
9700b81f20 typeck.c (convert_for_initialization): Move check for odd uses of NULL to avoid duplicate warnings.
* typeck.c (convert_for_initialization): Move check for odd uses
	of NULL to avoid duplicate warnings.

From-SVN: r21938
1998-08-24 11:12:27 +00:00
Martin v. Löwis
1eb79505a9 Update Bug Reporting to allow compression, and to recommend --save-temps
From-SVN: r21937
1998-08-24 11:10:03 +00:00
Jeff Law
d2d5013394 Opps.
From-SVN: r21936
1998-08-24 05:09:10 -06:00
Jeffrey A Law
ef9e3c5bce * loop.c (scan_loop): Honor AVOID_CC_MODE_COPIES.
From-SVN: r21935
1998-08-24 05:06:09 -06:00
Jeffrey A Law
ffa0ec7101 * h8300.h (STRIP_NAME_ENCODING): Fix typo.
From-SVN: r21934
1998-08-24 04:26:45 -06:00
Jeffrey A Law
0e64f197fe sparc.md (TFmode splits): Use reg_overlap_mentioned_p to detect when the source and destination overlap.
* sparc.md (TFmode splits): Use reg_overlap_mentioned_p to detect
        when the source and destination overlap.

From-SVN: r21933
1998-08-24 04:01:01 -06:00
Jeff Law
ea90cb6276 stmt.c (emit_case_nodes): Change rtx_function to rtx_fn to avoid clash with global type.
8
        * stmt.c (emit_case_nodes): Change rtx_function to rtx_fn to avoid
        clash with global type.

From-SVN: r21932
1998-08-24 03:27:39 -06:00
Jeff Law
094439624c stmt.c (emit_case_nodes): Change rtx_function to rtx_fn to avoid clash with global type.
�
        * stmt.c (emit_case_nodes): Change rtx_function to rtx_fn to avoid
        clash with global type.

From-SVN: r21931
1998-08-24 03:27:36 -06:00
Robert Lipe
152d9f2a91 `
980310-1.C eb71.C : replace hardcoded "-typedef unsigned int size_t"
with "typedef __SIZE_TYPE__ size_t".

From-SVN: r21930
1998-08-24 08:51:17 +00:00
Robert Lipe
d81b635202 /
980310-1.C eb71.C : replace hardcoded "-typedef unsigned int size_t"
with "typedef __SIZE_TYPE__ size_t".

From-SVN: r21929
1998-08-24 08:51:16 +00:00
Jason Merrill
d9cf7c8245 c-common.c (combine_strings): Also set TREE_READONLY.
* c-common.c (combine_strings): Also set TREE_READONLY.
	Change warn_write_strings to flag_const_strings.
	* c-decl.c, c-tree.h: Likewise.
cp/
	* tree.c (lvalue_type): Fix for arrays.
	* typeck.c (string_conv_p): New fn.
	(convert_for_assignment): Use it.
	(build_unary_op): Use lvalue_type.
	* call.c (standard_conversion, convert_like): Use string_conv_p.
	(add_function_candidate): Use lvalue_type.
	* cvt.c (convert_to_reference): Likewise.
	* decl2.c (lang_decode_option): Ignore -traditional.
	* decl.c (init_decl_processing): flag_writable_strings inhibits
	flag_const_strings.
	* lang-options.h (lang_options): Add fconst-strings to the list
	of valid options.
	* decl2.c (lang_f_options, lang_decode_option): Likewise.

From-SVN: r21928
1998-08-23 22:08:45 -04:00
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