Commit Graph

18113 Commits

Author SHA1 Message Date
Mark Mitchell
bca9e8f7cc search.c (dependent_base_p): Don't compare a binfo to current_class_type; use the TREE_TYPE of the binfo instead.
* search.c (dependent_base_p): Don't compare a binfo to
	current_class_type; use the TREE_TYPE of the binfo instead.

From-SVN: r21971
1998-08-25 13:09:57 +00:00
Jason Merrill
226c39d390 tree.c (valid_machine_attribute): Don't apply attributes to both decl and type.
* tree.c (valid_machine_attribute): Don't apply attributes to both
	decl and type.

From-SVN: r21970
1998-08-25 08:55:42 -04:00
Richard Henderson
8239d6c313 Oops. forgot to kill the >>> from the conflict.
From-SVN: r21969
1998-08-25 05:24:31 -07:00
Richard Henderson
91bb873f6a reload.c (operands_match_p): Handle rtvecs.
* reload.c (operands_match_p): Handle rtvecs.
        * i386.c (legitimate_pic_address_disp_p): New.
        (legitimate_address_p): Use it.
        (legitimize_pic_address): Use unspecs to represent @GOT and @GOTOFF.
        Handle constant pool symbols just like statics.
        (emit_pic_move): Use Pmode not SImode for clarity.
        (output_pic_addr_const) [SYMBOL_REF]: Remove @GOT and @GOTOFF hacks.
        [UNSPEC]: New, handling what we killed above.
        [PLUS]: Detect and abort on invalid symbol arithmetic.
        * i386.h (CONSTANT_ADDRESS_P): Remove HIGH.

From-SVN: r21968
1998-08-25 05:23:51 -07:00
Mark Mitchell
264fac3496 alias.c: Include output.h.
* alias.c: Include output.h.
	(DIFFERENT_ALIAS_SETS_P): Don't treat alias sets as
	different if we're in a varargs function.
	* Makefile.in (alias.o): Depend on output.h

From-SVN: r21967
1998-08-25 12:01:52 +00:00
J"orn Rennecke
9a855d8486 * sh.h (GIV_SORT_CRITERION): Delete.
From-SVN: r21966
1998-08-25 12:43:35 +01:00
Mark Mitchell
b80c4d770a * cp-tree.h (CLASS_TYPE_P): Revise definition.
From-SVN: r21965
1998-08-25 11:34:22 +00:00
Dave Brolley
56a65848be re PR target/16300 (Bug in vendor /usr/include/net/if.h needs fixincluding)
PR gcc/16300
Tue Aug 25 13:19:46 1998  Dave Brolley  <brolley@cygnus.com>
	* regclass.c (regclass): Use xmalloc/free instead of alloca.
	* stupid.c (stupid_life_analysis): Ditto.
	* reload1.c (reload): Ditto.

From-SVN: r21964
1998-08-25 07:02:51 -04:00
Jakub Jelinek
5d6d333901 sparc.c (arith_4096_operand, [...]): New predicates.
* config/sparc/sparc.c (arith_4096_operand, arith_add_operand,
	arith_double_4096_operand, arith_double_add_operand): New
	predicates.
	* config/sparc/sparc.h (PREDICATE_CODES): Add them, declare them.
	* config/sparc/sparc.md (adddi3, addsi3, subdi3, subsi3): Use
	them to transform add/sub 4096 into add/sub -4096.

From-SVN: r21961
1998-08-24 23:56:57 -07:00
Martin v. Löwis
00045f5275 Remove __HONOR_STD
From-SVN: r21960
1998-08-25 02:08:49 +00:00
Jason Merrill
9a224b4a31 decl.c (duplicate_decls): Don't complain about different exceptions from an internal decl even if pedantic.
* decl.c (duplicate_decls): Don't complain about different
	exceptions from an internal decl even if pedantic.

From-SVN: r21959
1998-08-24 21:59:48 -04:00
Jason Merrill
51ddb82e46 typeck.c (convert_for_assignment): Converting from pm of vbase to derived is an error, not a sorry.
* typeck.c (convert_for_assignment): Converting from pm of vbase
	to derived is an error, not a sorry.
	* call.c (build_over_call): Use convert_pointer_to_real for 'this'.
	* class.c (fixed_type_or_null): Rename from
	resolves_to_fixed_type_p.  Return the dynamic type of the
	expression, if fixed, or null.
	(resolves_to_fixed_type_p): Use it.  Return 0 if the dynamic type
	does not match the static type.
	(build_vbase_path): Rename 'alias_this' to 'nonnull'.  Use
	resolves_to_fixed_type_p again.

From-SVN: r21958
1998-08-24 21:48:47 -04:00
Jeff Law
1dd503e847 Daily bump.
From-SVN: r21956
1998-08-24 18:45:32 -06:00
David S. Miller
dd0208b9cd loop.c (scan_loop): Allocate some slop to handle pseudos generated by move_movables.
* loop.c (scan_loop): Allocate some slop to handle pseudos
	generated by move_movables.
	(load_mems_and_recount_loop_regs_set): Honor AVOID_CC_MODE_COPIES
	here too.

From-SVN: r21955
1998-08-24 17:37:12 -07:00
Jim Wilson
dce2e8c098 * tree.def (DECL_RESULT): Correct documentation.
From-SVN: r21954
1998-08-24 12:46:49 -07:00
Mark Mitchell
d8c4447d83 pt.c (tsubst_decl): Move special case code for dealing with tricky friend templates here from ...
* pt.c (tsubst_decl): Move special case code for dealing with
	tricky friend templates here from ...
	(regenerate_decl_from_template): Here.

From-SVN: r21953
1998-08-24 19:44:48 +00:00
J"orn Rennecke
6f77675fd9 reload1.c (reload_reg_free_before_p): New argument EQUIV; Changed all callers.
* reload1.c (reload_reg_free_before_p): New argument EQUIV;  Changed
	all callers.  Abort for RELOAD_FOR_INSN.  RELOAD_FOR_OUTADDR_ADDR:
	conflicts will all RELOAD_FOR_OUTPUT reloads.

From-SVN: r21952
1998-08-24 18:19:55 +01:00
J"orn Rennecke
54e89d2590 reload1.c (reload_cse_regs_1): When deleting a no-op move that loads the function result, substitute with a USE.
* reload1.c (reload_cse_regs_1): When deleting a no-op move that
	loads the function result, substitute with a USE.

From-SVN: r21951
1998-08-24 18:03:34 +01:00
Jason Merrill
cce2be438d decl.c (start_decl): Remove redundant linkage check.
* decl.c (start_decl): Remove redundant linkage check.
	* typeck.c (c_expand_return): Handle the case that valtype
	is wider than the functions return type.

From-SVN: r21950
1998-08-24 12:31:38 -04:00
Jeffrey A Law
5637343af3 930326-1.x: Fix typo.
Mon Aug 24 16:38:52 1998  Jeffrey A Law  (law@cygnus.com)
        * gcc.c-torture/compile/930326-1.x: Fix typo.

From-SVN: r21949
1998-08-24 09:39:58 -06:00
Nick Clifton
526f15e573 Fix typo.
From-SVN: r21948
1998-08-24 14:21:27 +00:00
David Edelsohn
1427100a44 rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Use TARGET_POWERPC64 when testing LEGITIMATE_INDEXED_ADDRESS_P DFmode and DImode.
* rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Use TARGET_POWERPC64
        when testing LEGITIMATE_INDEXED_ADDRESS_P DFmode and DImode.
        (LEGITIMIZE_ADDRESS): Use TARGET_POWERPC64 for INDEXED fixup.
        * rs6000.c (print_operand, case 'L'): Add UNITS_PER_WORD, not 4.
        (print_operand, cases 'O' and 'T'): Fix typos in lossage strings.
        * rs6000.md (fix_truncdfsi2_store): Remove %w from non-CONST_INT
        operand.
        (movdf_softfloat32, movdf_hardfloat64, movdf_softfloat64): Change
        'o' to 'm' for GPR variant constraints.

From-SVN: r21947
1998-08-24 08:32:03 -04:00
Mark Mitchell
b19abc2818 * pt.c (process_template_parm): Undo previous change.
From-SVN: r21946
1998-08-24 12:07:58 +00:00
Mark Mitchell
c92366fb3f cp-tree.h (CLASS_TYPE_P): New macro.
* cp-tree.h (CLASS_TYPE_P): New macro.
	* decl.c (grokdeclarator): Use it instead of IS_AGGR_TYPE.

From-SVN: r21945
1998-08-24 12:04:39 +00:00
Benjamin Kosnik
33bdeb6748 *** empty log message ***
From-SVN: r21944
1998-08-24 11:57:29 +00:00
Benjamin Kosnik
2450bb7d4d 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: r21943
1998-08-24 11:57:09 +00:00
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