Commit Graph

18155 Commits

Author SHA1 Message Date
Jeffrey A Law
54c3cf4bb9 * haifa-sched.c (sched_analyze_insn): Fix thinko in last change.
From-SVN: r22022
1998-08-27 08:15:32 -06:00
Mark Mitchell
ca107dedc7 class.c (build_vbase_path): Use reverse_path.
* class.c (build_vbase_path): Use reverse_path.
	(finish_base_struct): Move warnings for inaccessible bases to
	layout_basetypes.
	(modify_one_vtable): Remove check of TREE_USED (binfo).
	(fixup_vtable_deltas1): Likewise.
	* cp-tree.h (BINFO_INHERITANCE_CHAIN): Document here.
	(xref_tag): Remove binfos parameter.
	(make_binfo): Remove chain parameter.
	(reverse_path): Add copy parameter.
	* decl.c (init_decl_processing): Change calls to xref_tag.
	(xref_tag): Remove binfos parameter.
	(xref_basetypes): Change calls to make_binfo.
	* decl2.c (grok_x_components): Change calls to xref_tag.
	(handle_class_head): Likewise.
	* friend.c (do_friend): Likewise.
	* lex.c (make_lang_type): Change calls to make_binfo.
	* parse.y (structsp): Change calls to xref_tag.
	(named_complex_class_head_sans_basetype): Likewise.
	(named_class_head): Likewise.
	* rtti.c (init_rtti_processing): Likewise.
	* search.c (compute_access): Change calls to reverse_path.
	(dfs_get_vbase_types): Change calls to make_binfo.
	(get_vbase_types): Remove dead code.
	* tree.c (unshare_base_binfos): Change calls to make_binfo.
	(layout_basetypes): Warn here about inaccessible bases.
	(make_binfo): Remove chain parameter.
	(reverse_path): Add copy parameter.

From-SVN: r22021
1998-08-27 10:17:48 +00:00
Mark Mitchell
18337c03d5 Remove comma
From-SVN: r22020
1998-08-27 10:12:10 +00:00
J"orn Rennecke
7a5109b7f3 loop.c (check_dbra_loop): Enable code for reversal of some loops without a known constant loop end.
* loop.c (check_dbra_loop): Enable code for reversal
	of some loops without a known constant loop end.

From-SVN: r22019
1998-08-27 09:39:22 +01:00
Jason Merrill
8c1bd4f5dc class.c: #if 0 complete_type_p.
* class.c: #if 0 complete_type_p.
	* init.c (build_java_class_ref, build_new_1): Remove unused locals.
	* method.c (process_overload_item): Likewise.
	* typeck.c (comp_target_types): Likewise.

From-SVN: r22018
1998-08-26 22:04:34 -04:00
Jason Merrill
0ec5701756 Stop sharing binfos for indirect virtual bases.
* tree.c (propagate_binfo_offsets): Unshare vbases, too.
	(layout_basetypes): Likewise.
	(unshare_base_binfos): Copy vbases, too.
	* cp-tree.h (BINFO_VIA_PUBLIC, BINFO_BASEINIT_MARKED,
	BINFO_VBASE_INIT_MARKED): Remove obsolete macros.
	(BINFO_PUSHDECLS_MARKED, SET_BINFO_PUSHDECLS_MARKED,
	CLEAR_BINFO_PUSHDECLS_MARKED): New macros.
	* search.c (lookup_field, lookup_fnfields, lookup_member): Remove
	reference to BINFO_VIA_PUBLIC.
	(marked_pushdecls_p, unmarked_pushdecls_p): New fns.
	(push_class_decls): Use them.
	(dfs_pushdecls): Use SET_BINFO_PUSHDECLS_MARKED.
	(dfs_compress_decls): Use CLEAR_BINFO_PUSHDECLS_MARKED.

From-SVN: r22017
1998-08-26 21:41:17 -04:00
Jeff Law
1ca7641e55 Daily bump.
From-SVN: r22015
1998-08-26 18:45:02 -06:00
Mark Mitchell
e8bd800e45 decl.c (build_enumerator): Set DECL_CONTEXT for the CONST_DECLs.
* decl.c (build_enumerator): Set DECL_CONTEXT for the
	CONST_DECLs.

From-SVN: r22014
1998-08-27 00:14:27 +00:00
Jeffrey A Law
563f648be5 * Makefile.in (FLAGS_TO_PASS): Fix typo.
From-SVN: r22012
1998-08-26 16:20:34 -06:00
Richard Henderson
7d0bfbd0be alpha.h (LABEL_ALIGN_AFTER_BARRIER): Was ALIGN_LABEL_AFTER_BARRIER.
* alpha.h (LABEL_ALIGN_AFTER_BARRIER): Was ALIGN_LABEL_AFTER_BARRIER.
        (MD_SCHED_VARIABLE_ISSUE): New.

From-SVN: r22011
1998-08-26 11:49:40 -07:00
Richard Henderson
68aed21b05 alpha.c (alpha_handle_trap_shadows): Remove do-nothing exit.
* alpha.c (alpha_handle_trap_shadows): Remove do-nothing exit.
        Tag trapb and next insn with TImode.
        (alphaev5_insn_pipe, alphaev5_next_group, alphaev5_align_insns): New.
        (alpha_reorg): Add conditional for alpha_handle_trap_shadows.
        Invoke alphaev5_align_insns as appropriate.
        * alpha.md (attr type): Add multi.
        (define_asm_attributes): New.
        (prologue_stack_probe_loop, builtin_setjmp_receiver): Set type multi.
        (arg_home): Likewise.
        (fnop, unop, realign): New.

From-SVN: r22010
1998-08-26 11:48:21 -07:00
Richard Henderson
4bdc8810f6 haifa-sched.c (last_clock_var): New.
* haifa-sched.c (last_clock_var): New.
        (schedule_block): Initialize it.
        (schedule_insn): Use it to fill insn modes with issue information.

From-SVN: r22009
1998-08-26 11:47:42 -07:00
Jeffrey A Law
425c08a151 calls.c (expand_call): Use bitfield instructions to extract/deposit word sized hunks when...
* calls.c (expand_call): Use bitfield instructions to extract/deposit
        word sized hunks when loading unaligned args into registers.

From-SVN: r22008
1998-08-26 11:06:03 -06:00
Jim Wilson
cc1f775259 Restore -g not supported warning to default irix5 port.
* iris5.h (PREFERRED_DEBUGGING_TYPE): Undef.
	* iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.

From-SVN: r22007
1998-08-26 10:04:22 -07:00
Jim Wilson
05cea40f0f Make `configure rs6000-ibm-aix4.1' work again.
* configure.in (powerpc-ibm-aix4.[12]*): Change from 4.[12].*.
	(rs6000-ibm-aix4.[12]*): Likewise.
	* configure: Regnerate.

From-SVN: r22006
1998-08-26 08:57:20 -07:00
Jeffrey A Law
1f1ed00cba haifa-sched.c (sched_analyze_insn): Only create scheduling barriers for LOOP...
* haifa-sched.c (sched_analyze_insn): Only create scheduling
        barriers for LOOP, EH and SETJMP notes on the loop_notes list.

From-SVN: r22005
1998-08-26 09:30:58 -06:00
Mark Mitchell
dbfe21241f cp-tree.h (finish_enum): Change prototype.
* cp-tree.h (finish_enum): Change prototype.
	* decl.c (finish_enum): Use TYPE_VALUES, rather than taking a
	VALUES parameter.  Don't try to compute mins/maxs if
	processing_template_decl.
	* parse.y (structsp): Use new calling sequence for finish_enum.
	* pt.c (tsubst_enum): Likewise.  Take the new type as input.
	(lookup_template_class): Remove unused variables.  Tweak.
	Register enums on instantiation list before substituting
	enumeration constants.
	(tsubst_decl): Remove unused variables.
	(regenerate_decl_from_template): Likewise.
	* decl.c (duplicate_decls): Don't obliterate the
	DECL_TEMPLATE_INFO for a template if we're not replacing it with
	anything.

From-SVN: r22004
1998-08-26 13:55:47 +00:00
Mark Mitchell
c0a483c70a * lex.c (do_identifier): Fix typo in comment.
From-SVN: r22003
1998-08-26 12:45:15 +00:00
Nick Clifton
e3281ffc9f Do not move register a4 into lr if lr already contains the return address.
CVS: ----------------------------------------------------------------------

From-SVN: r22002
1998-08-26 12:16:54 +00:00
Jeffrey A Law
6b7e236fb6 * mn10300.h (RTX_COSTS): Handle UDIV and UMOD too.
From-SVN: r22001
1998-08-26 05:58:20 -06:00
J"orn Rennecke
c48ba252f3 loop.c (check_dbra_loop): Add some code that would allow reversal of some loops without a known constant...
* loop.c (check_dbra_loop): Add some code that would allow reversal
	of some loops without a known constant loop end if it were enabled.

From-SVN: r22000
1998-08-26 09:40:47 +01:00
J"orn Rennecke
ef75736785 Document overflow bug in check_dbra_loop:
* execute/loop-4b.c: New test.

From-SVN: r21999
1998-08-26 09:19:18 +01:00
Gavin Romig-Koch
1379191a20 * mips.md (lshrsi3_internal2+2): Fix type-o.
From-SVN: r21998
1998-08-26 08:16:23 +00:00
Kaveh R. Ghazi
789f983ab1 system.h: Include stdarg.h/varargs.h...
* system.h: Include stdarg.h/varargs.h, make sure they are ordered
        correctly with regards to stdio.h.
        * calls.c: Remove stdarg.h/varargs.h.
        * cccp.c: Likewise.
        * cexp.y: Likewise.
        * combine.c: Likewise.
        * cpperror.c: Likewise.
        * cpplib.c: Likewise.
        * cpplib.h: Likewise.
        * doprint.c: Likewise.
        * emit-rtl.c: Likewise.
        * final.c: Likewise.
        * fix-header.c: Likewise.
        * gcc.c: Likewise.
        * genattr.c: Likewise.
        * genattrtab.c: Likewise.
        * gencodes.c: Likewise.
        * genconfig.c: Likewise.
        * genemit.c: Likewise.
        * genextract.c: Likewise.
        * genflags.c: Likewise.
        * genopinit.c: Likewise.
        * genoutput.c: Likewise.
        * genpeep.c: Likewise.
        * genrecog.c: Likewise.
        * mips-tfile.c: Likewise.
        * prefix.c: Likewise.
        * protoize.c: Likewise.
        * regmove.c: Likewise.
        * toplev.c: Likewise.
        * tree.c: Likewise.
        * cp/errfn.c: Remove stdarg.h/varargs.h.
        * cp/tree.c: Likewise.

From-SVN: r21997
1998-08-26 08:11:47 +00:00
Jakub Jelinek
f952a23816 sparc.c (sparc_override_options): If not TARGET_FPU, turn off TARGET_VIS.
* config/sparc/sparc.c (sparc_override_options): If not
	TARGET_FPU, turn off TARGET_VIS.
	* config/sparc/sparc.h (TARGET_SWITCHES): Add no-vis.
	(LEGITIMATE_CONSTANT_P): Allow SF/DF mode zero when TARGET_VIS.
	* config/sparc/sparc.md (movsi_insn): Use fzeros not fzero.
	(movdi_insn_sp64): Add VIS fzero alternative.
	(clear_sf, clear_df): New VIS patterns.
	(movsf, movdf expanders): Allow fp_zero_operand flat out when
	TARGET_VIS.
	(one_cmpldi2_sp64): Provide new fnot1 VIS alternative.

From-SVN: r21996
1998-08-25 23:19:46 -07:00
David S. Miller
04069e5c0c This change was certainly tested...
From-SVN: r21995
1998-08-25 21:27:57 -07:00
Jeff Law
cb28002946 Daily bump.
From-SVN: r21993
1998-08-25 18:45:02 -06:00
Dave Love
46511dd511 g77.texi: Increment `version-g77' and fix a few typos.
* g77.texi: Increment `version-g77' and fix a few typos.

From-SVN: r21992
1998-08-25 17:36:47 -06:00
Dave Love
62fa841bb3 g77.texi: Increment `version-g77' and fix a few typos.
�
	* g77.texi: Increment `version-g77' and fix a few typos.

From-SVN: r21991
1998-08-25 17:36:46 -06:00
Jeff Law
3f9a5a15ef Split up the ChangeLog.
From-SVN: r21990
1998-08-25 17:35:58 -06:00
Jeff Law
9d68419564 Reorganize FSF/GCC2 ChangeLogs.
From-SVN: r21987
1998-08-25 17:21:02 -06:00
Mark Mitchell
8deb8e2ccc loop.c (n_times_set, [...]): Convert to varrays.
* loop.c (n_times_set, n_times_used, may_not_optimize,
	reg_single_usage): Convert to varrays.  All uses changed.
	(insert_loop_mem): Return a value.
	(scan_loop): Tweak AVOID_CC_MODE_COPIES code.
	(load_mems_and_recount_loop_regs_set): Likewise.  Grow the arrays, if
	necessary.

From-SVN: r21986
1998-08-25 23:17:35 +00:00
Jeffrey A Law
6e1488073b configure.in: Do not set thread_file to "irix" since no such support exists yet.
* From Alexandre:
        * configure.in: Do not set thread_file to "irix" since no such
        support exists yet.

From-SVN: r21985
1998-08-25 17:07:46 -06:00
Jeff Law
d5e8c40c3a sparc.md (float abs/neg splits): Check reload_completed before calling alter_subreg.
8
        * sparc.md (float abs/neg splits): Check reload_completed before
        calling alter_subreg.

From-SVN: r21983
1998-08-25 16:59:06 -06:00
Jeff Law
4da0b26cfb sparc.md (float abs/neg splits): Check reload_completed before calling alter_subreg.
* sparc.md (float abs/neg splits): Check reload_completed before
        calling alter_subreg.

From-SVN: r21982
1998-08-25 16:59:03 -06:00
David S. Miller
e61c29e987 sparc.c (sparc_absnegfloat_split_legitimate): New function.
* config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): New
	function.
	* config/sparc/sparc.h: Declare it.
	* config/sparc/sparc.md (float abs/neg splits): Use it.
	(all other splits): Handle SUBREGs properly where necessary.
	(unnamed (1<<x)-1 V8PLUS pattern): Disable for now.

From-SVN: r21981
1998-08-25 13:25:02 -07:00
Brendan Kehoe
8e710788f5 pt.c (tsubst_copy): Only do typename overloading on an IDENTIFIER_NODE that happens to look like a...
* pt.c (tsubst_copy): Only do typename overloading on an
	IDENTIFIER_NODE that happens to look like a typename if it actually
	has a type for us to use.
avoid problems w/ SGI STL headers that have variables like __opr or __op1

From-SVN: r21978
1998-08-25 14:52:45 -04:00
Jeffrey A Law
c3a3b53647 reorg.c (fill_simple_delay_slots): Do not abort if we encounter an insn on the unfilled_slots_list that has no...
* reorg.c (fill_simple_delay_slots): Do not abort if we encounter
        an insn on the unfilled_slots_list that has no delay slots.
        (fill_eager_delay_slots): Similarly.

From-SVN: r21977
1998-08-25 12:50:26 -06:00
Jeffrey A Law
38f76c25a9 * gcc.c-torture/compile/980825-1.c: New test.
From-SVN: r21975
1998-08-25 12:43:10 -06:00
Jason Merrill
a5d1cd099a typeck.c (comp_cv_target_types): Split out...
* typeck.c (comp_cv_target_types): Split out...
	(comp_target_types): From here.  Don't allow cv-qual changes under
	a pointer if nptrs == 0.  Fix OFFSET_TYPE handling.
	(build_ptrmemfunc): Pass 1 to nptrs.
	* cvt.c (perform_qualification_conversions): Use comp_ptr_ttypes.

From-SVN: r21974
1998-08-25 13:17:51 -04:00
Ulrich Drepper
e94bc5f266 (_IO_getline_info): Don't read anything for N==0.
From-SVN: r21973
1998-08-25 14:39:39 +00:00
Nick Clifton
55895a7a34 Fi xexecute/bcp-1.c: Treat CONSTANT_P_RTX as a general operand in movsi.
From-SVN: r21972
1998-08-25 13:36:14 +00:00
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