Commit Graph

15640 Commits

Author SHA1 Message Date
Mark Mitchell
3317aae90b call.c (reference_binding): Use comptypes when comparing TYPE_MAIN_VARIANTS to handle non-canonical...
* call.c (reference_binding): Use comptypes when comparing
	TYPE_MAIN_VARIANTS to handle non-canonical array/index types.

From-SVN: r17875
1998-02-12 14:55:02 +00:00
Mark Mitchell
9ca21c0adb typeck.c (build_ptrmemfunc): Typecheck pointer-to-member conversions.
* typeck.c (build_ptrmemfunc): Typecheck pointer-to-member
	conversions.

From-SVN: r17874
1998-02-12 14:51:57 +00:00
Jeffrey A Law
614bb5d45d cse.c (delete_dead_from_cse): If a libcall produces a constant result and that result can be substituted into...
* cse.c (delete_dead_from_cse): If a libcall produces a constant
        result and that result can be substituted into SET_SRC of the
        insn with the REG_RETVAL note, then perform the substitution
        and delete the libcall.

From-SVN: r17871
1998-02-12 07:26:47 -07:00
Gavin Koch
00bb4b6208 mips.md (trucndihi2,truncdiqi2): Change these to support mips16.
* mips.md (trucndihi2,truncdiqi2): Change these to support
	mips16.

From-SVN: r17868
1998-02-12 11:06:08 +00:00
Gavin Koch
3871c60927 mips.c (movdi_operand): Direct referances to symbols that arn't mips16 consts in mips16 mode arn't...
* mips/mips.c (movdi_operand): Direct referances to symbols
	that arn't mips16 consts in mips16 mode arn't valid operands.
	* mips/mips.c (mips_move_2words): Add gprel handling.

From-SVN: r17867
1998-02-12 08:37:06 +00:00
Gavin Koch
2e72fa6af1 mips.md (extendsidi2): Allow extension to/from a non-mips16 register.
* mips.md (extendsidi2): Allow extension to/from a non-mips16
	register.

From-SVN: r17866
1998-02-12 08:21:38 +00:00
Robert Lipe
0f4775477e Add documentation for OpenServer patch required for static [cd]tors
to work right.

From-SVN: r17865
1998-02-11 23:17:04 +00:00
Marc Lehmann
a49103407c i386.c: Conditionally include <stdlib.h>, <string.h>, and <strings.h>.
* i386.c: Conditionally include <stdlib.h>, <string.h>, and
        <strings.h>.

From-SVN: r17864
1998-02-11 16:03:32 -07:00
Mark Mitchell
06ab59dfa0 tree.c (is_overloaded_fn): Use really_overloaded_fn.
* tree.c (is_overloaded_fn): Use really_overloaded_fn.
	(really_overloaded_fn): Move check here from is_overloaded_fn.
	(get_first_fn): Use really_overloaded_fn and is_overloaded_fn.

From-SVN: r17863
1998-02-11 22:47:30 +00:00
Kaveh R. Ghazi
cc1e5b9ab3 Makefile.in (WARN_CFLAGS): New variable.
* Makefile.in (WARN_CFLAGS): New variable.
	(bootstrap, bootstrap2, bootstrap3, bootstrap4): Use it.

From-SVN: r17862
1998-02-11 15:26:23 -07:00
Mark Mitchell
53949fac1d i386.c (reg_mentioned_in_mem): Don't abort when falling through default case in switch.
* config/i386/i386.c (reg_mentioned_in_mem): Don't abort when
	falling through default case in switch.
	(i386_aligned_p): Likewise.

From-SVN: r17860
1998-02-11 15:09:17 +00:00
Lee Iverson
9504c31c84 Patch from Lee Iverson.
* mips/mips.h (mips_abi_string): Correct typo in comment.

From-SVN: r17858
1998-02-11 05:04:01 -08:00
Jeff Law
f3a9e4e599 More updates...
From-SVN: r17857
1998-02-11 05:25:38 -07:00
Gavin Koch
7e4e0956ba * mips/mips.md (movdi): These PLUS's need to be Pmode.
From-SVN: r17855
1998-02-11 05:32:24 +00:00
Jeff Law
fe70ce64fd Add more folks.
From-SVN: r17854
1998-02-10 18:57:57 -07:00
Jason Merrill
68ea752b16 new
From-SVN: r17853
1998-02-10 20:30:13 -05:00
Mark Mitchell
3ac3d9eaf1 cp-tree.h (push_template_decl): Return the decl passed in, or an equivalent duplicate.
* cp-tree.h (push_template_decl): Return the decl passed in, or an
	equivalent duplicate.
	* decl.c (pushtag): Use the return value from push_template_decl.
	(duplicate_decls): When duplicating a template declaration, merge
	the DECL_TEMPLATE_RESULTs as well.
	(make_implicit_typename): Don't try to dive into typename types to
	find a context for making a new implicit typename.
	(start_decl): Use the return value from push_template_decl.
	(grokdeclarator): Complain about declarations list `const operator
	int'.  Since we don't correctly handle in-class initializations of
	non-static data members, complain about this (now illegal)
	practice.  Issue an error for initializations of non-const statics
	since that is illegal as well, and since we don't handle that case
	correctly either.
	(start_function): Use the return value from push_template_decl.
	(start_method): Likewise.
	* decl2.c (grokfield): Likewise.  Since the change to
	grokdeclarator ensures that all initialized fields are in fact
	static, remove a redundant test for TREE_PUBLIC.
	* parse.y (initlist): Disable labeled initializers since they do
	not work as per the documentation, and since they do not use the
	same syntax as the C front end.
	* pt.c (push_template_decl): Return the decl passed in, or an
	equivalent duplicate.
	(lookup_template_class): When searching in a nested context,
	use the right arguments.
	(uses_template_parms): Handle the DECL_INITIAL for a CONST_DECL.
	* typeck.c (build_component_ref): Assign the correct type to the
	result of build_vfn_ref.

From-SVN: r17852
1998-02-10 20:22:36 -05:00
Richard Henderson
8cd61d76f7 Copy comment to go with the subtraction patch.
From-SVN: r17850
1998-02-10 16:54:15 -08:00
Kaveh R. Ghazi
8fb3ae1537 Makefile.in (dwarf2out.o, [...]): Depend on insn-codes.h, it gets included indirectly via expr.h.
* Makefile.in (dwarf2out.o, emit-rtl.o, jump.o, cse.o, unroll.o,
        reorg.o, regmove.o): Depend on insn-codes.h, it gets included
        indirectly via expr.h.

From-SVN: r17849
1998-02-10 17:46:41 -07:00
Manfred Hollstein
7bd52f251f Makefile.in ($(lib)): Call $(AR) repeatedly to avoid overflowing argument size limit on ancious System V.
* Makefile.in ($(lib)): Call $(AR) repeatedly to avoid overflowing
        argument size limit on ancious System V.

From-SVN: r17848
1998-02-10 17:44:50 -07:00
Richard Henderson
e203760cfa com.c (ffecom_ptr_to_expr): Do upper - lower in the native type, so as to properly handle negative indices.
* com.c (ffecom_ptr_to_expr) [FFEBLD_opARRAYREF]:  Do upper - lower
        in the native type, so as to properly handle negative indices.

From-SVN: r17847
1998-02-10 17:44:03 -07:00
Richard Henderson
a2d53b285d stor-layout.c (layout_type): Do upper - lower in the native type, so as to properly handle negative indices.
* stor-layout.c (layout_type): Do upper - lower in the native type,
        so as to properly handle negative indices.

From-SVN: r17846
1998-02-10 17:43:32 -07:00
Robert Lipe
381127e845 except.c (start_dynamic_cleanup): Remove unused variable 'dhc'.
* except.c (start_dynamic_cleanup): Remove unused variable 'dhc'.
        (expand_eh_region_start_tree): Remove unused variable 'note'.
        (exception_optimize): Remove unused variable 'regions'.
        (expand_builtin_eh_stub):  Remove unused variable 'temp'.
        (copy_eh_entry): Deleted.   Dead function.
        * expr.c (move_block_to_reg) Bracket declaration of 'pat' and
        'last' with same #if HAVE_load_multiple as use of it.
        (move_block_from_reg): Likewise.
        (emit_move_insn_1): Remove unused variable 'insns'.
        (store_constructor): Bracket declaration of startb, endb with
        #if TARGET_MEMFUNCTIONS.  Remove unused variables 'set_word_size'
        'target', and 'xtarget'.
        (expand_builtin_setjmp): Remove unused variables 'op0',
        'next_arg_reg', 'old_inhibit_defer_pop'.
        (expand_builtin): Remove unused variable 'offset'.
        (do_store_flag): Remove unused variables 'pattern', 'jump_pat'.
        (emit_queue): Add parens for assignment used as conditional.
        (expand_expr): case TARGET_EXPR: Remove unused variable 'temp'.

From-SVN: r17843
1998-02-10 17:35:13 -07:00
Mark Mitchell
9b713d5e50 iostream.cc (ostream::operator<<(long double)): Don't use labeled initializers.
* iostream.cc (ostream::operator<<(long double)): Don't use
	labeled initializers.

From-SVN: r17842
1998-02-10 19:35:01 -05:00
Marc Lehmann
00c79232ab i386.c: Added include for recog.h.
* i386.c: Added include for recog.h.
        (override_options): Removed unused variable p. Initialized regno to
        avoid warning.
        (order_regs_for_local_alloc): Initialized regno to avoid warning.
        (legitimize_address): Likewise for 'other'.
        (i386_aligned_reg_p): Added default case with abort ().
        (print_operand): Likewise.
        (reg_mentioned_in_mem): Likewise.
        (ix86_expand_binary_operator): Removed unused variables i & insn.
        (ix86_expand_unary_operator): Removed unused variable insn.
        (output_fp_cc0_set): Removed unused variable unordered_label.

From-SVN: r17841
1998-02-10 17:29:57 -07:00
John F. Carr
f64cecad3e i386.c, [...]: Change gen_rtx (X, ...) to gen_rtx_X (...).
* i386.c, i386.h, i386.md: Change gen_rtx (X, ...) to gen_rtx_X (...).
        Use GEN_INT instead of gen_rtx (CONST_INT). Make printf arguments
        and format string match.

From-SVN: r17840
1998-02-10 17:25:43 -07:00
Jeffrey A Law
0200b5ed0a flow.c (life_analysis): Do not conside the stack pointer live at the end of a function if...
* flow.c (life_analysis): Do not conside the stack pointer live at
        the end of a function if the fucntio ncalls alloca.
        (mark_used_regs): Similarly.

From-SVN: r17839
1998-02-10 17:18:51 -07:00
Jason Merrill
c29c4e238e * pt.c (convert_nontype_argument): Fix typo.
From-SVN: r17838
1998-02-10 18:58:19 -05:00
Jeff Law
3ab1919cc2 Update autoconf/autoheader generated files.
From-SVN: r17837
1998-02-10 16:51:52 -07:00
Jason Merrill
c6f2ed0db7 pt.c (check_explicit_specialization): Allow old-style specialization of class template members.
* pt.c (check_explicit_specialization): Allow old-style specialization
	of class template members.

From-SVN: r17836
1998-02-10 18:42:31 -05:00
Jason Merrill
71cc65bdb7 decl.c (grokdeclarator): Use DECL_USE_TEMPLATE instead when deciding to override DECL_ASSEMBLER_NAME.
* decl.c (grokdeclarator): Use DECL_USE_TEMPLATE instead
	when deciding to override DECL_ASSEMBLER_NAME.

Co-Authored-By: Manfred Hollstein <manfred@s-direktnet.de>

From-SVN: r17835
1998-02-10 15:37:18 -05:00
John F. Carr
74ccf2c258 For movdi_v8plus pattern, output stx on alternative 1 and fzero on alternative 8.
For movdi_v8plus pattern, output stx on alternative 1 and
fzero on alternative 8.  Fix from John Carr (jfc@mit.edu)

From-SVN: r17834
1998-02-10 07:25:50 -08:00
Andrew Macleod
ed22c95e1a Add support for squangling.
From-SVN: r17832
1998-02-10 12:32:21 +00:00
Andrew Macleod
8f5b46b422 Add -fsquangle and -fno-squangle.
From-SVN: r17831
1998-02-10 12:32:03 +00:00
Andrew Macleod
5bd179053b Add declaration for flag_do_squangling.
From-SVN: r17830
1998-02-10 12:31:55 +00:00
Andrew Macleod
1d9ffce9c5 Add -fsquangle to option processing list.
From-SVN: r17829
1998-02-10 12:31:27 +00:00
Andrew Macleod
727e39c7ff Add squangling support. (First cut at improved Name mangling)
From-SVN: r17828
1998-02-10 12:31:01 +00:00
John Carr
3afaa6e8c5 Patch from jfc to fix printf format problems.
From-SVN: r17827
1998-02-10 03:47:01 -08:00
Richard Kenner
60e2d0ca3d rs6000.c (setup_incoming_varargs): Always set rs6000_sysv_varargs_p.
From-SVN: r17825
1998-02-10 04:05:42 -05:00
H.J. Lu
b45f3a91b9 * lib/g77.exp (g77_target_compile): Fix multilibs for libf2c.
From-SVN: r17818
1998-02-09 15:54:34 -07:00
J"orn Rennecke
2fd0af53a1 reload.c (find_reloads_toplev): Handle arbitrary non-paradoxical SUBREGs of CONST_INTs.
* reload.c (find_reloads_toplev): Handle arbitrary non-paradoxical
	SUBREGs of CONST_INTs.

From-SVN: r17809
1998-02-09 19:39:35 +00:00
John Carr
a96c354489 Patch from jfc to fix printf format problems.
* mips.c (print_operand, function_prologue): Make printf format
	match argument type.

From-SVN: r17808
1998-02-09 09:53:56 -08:00
Jeff Law
5949e2630d Add Tege & Kate as maintainers of c-torture and f-torture respectively.
From-SVN: r17804
1998-02-09 07:22:47 -07:00
Kaveh R. Ghazi
2514cbc993 alpha.c (alpha_return_addr): Remove unused variable `first'.
* alpha.c (alpha_return_addr): Remove unused variable `first'.
        (alpha_ra_ever_killed): Remove unused variables `ra' and `i'.
        (output_epilog): Remove unused variable `frame_size_from_reg_save'.

From-SVN: r17799
1998-02-08 18:36:08 -07:00
H.J. Lu
fa80e0a6c8 old-dejagnu.exp (old-dejagnu): Added the "execution test - XFAIL *-*-*" handling in the spirit of "excess...
* lib/old-dejagnu.exp (old-dejagnu): Added the
        "execution test - XFAIL *-*-*" handling in the spirit of
        "excess errors test -". Changed the "execution test fails"
        handling to be like "excess errors test fails".
        * Update various tests accordingly.

From-SVN: r17798
1998-02-08 18:07:31 -07:00
Craig Burley
34bea46406 Fix -fpedantic combined with `F()' invocation,
also -fugly-comma combined with `IARGC()' invocation:
        * bad.def (FFEBAD_NULL_ARGUMENT_W): New diagnostic.
        * expr.c (ffeexpr_finished_): Don't reject null expressions
        in the argument-expression context -- let outer context
        handle that.
        (ffeexpr_token_arguments_): Warn about null expressions
        here if -fpedantic (as appropriate).
        Obey -fugly-comma for only external-procedure invocations.

From-SVN: r17793
1998-02-08 16:55:11 -07:00
Scott Snyder
aea955a2df * method.c (make_thunk): Avoid name buffer overflow.
From-SVN: r17784
1998-02-08 15:46:23 -07:00
John Carr
13309a5ff9 Document unique_id variable.
From-SVN: r17783
1998-02-08 15:53:23 +00:00
David Edelsohn
b94ad19e82 Oops, bump copyright year.
From-SVN: r17782
1998-02-08 09:13:54 -05:00
Richard Kenner
72b0c616a5 Feb 8 14:56:03 1998 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
Feb  8 14:56:03 1998  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
        * loop.c (strength_reduce): When placing increment for auto-inc
        case, do comparison in loop order.

From-SVN: r17781
1998-02-08 09:12:00 -05:00