Commit Graph

26256 Commits

Author SHA1 Message Date
Mark Mitchell
607ace9b9b * flow.c (mark_regs_live_at_end): Fix typo.
From-SVN: r31696
2000-01-29 23:52:33 +00:00
Alexandre Petit-Bianco
f8989a66b8 [multiple changes]
2000-01-29  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (formal_parameter:): Set `$$' to NULL_TREE for better
	error handling/recovery.
	* java-tree.h (SYNCHRONIZED_EXPR): Fixed typo in comment.

Wed Jan 12 20:20:11 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* jcf-write.c (generate_bytecode_insns): binop: Change the type of
	the shift value to int. Fixed typo in comment.

From-SVN: r31695
2000-01-29 14:40:07 -08:00
Ulrich Drepper
114356ad7c Regenerated.
From-SVN: r31694
2000-01-29 19:18:00 +00:00
Ulrich Drepper
d828f724aa Update.
From-SVN: r31693
2000-01-29 19:15:16 +00:00
Ulrich Drepper
83309c2651 Adjust variable names, comments, help strings.
From-SVN: r31692
2000-01-29 19:10:00 +00:00
Ulrich Drepper
e38beabc88 Update.
From-SVN: r31691
2000-01-29 19:08:45 +00:00
Ulrich Drepper
916269abda Adjust variable names, comments, help strings to c99.
Recognize options with names *99 as well.

From-SVN: r31690
2000-01-29 19:00:43 +00:00
Ulrich Drepper
3194854770 Adjust variable names, comments, help strings to c99.
From-SVN: r31689
2000-01-29 18:59:40 +00:00
Hans-Peter Nilsson
10b52f4618 Fix entry for ns32k change of 01-27 - no VOIDmode for load effective address
From-SVN: r31688
2000-01-29 16:25:57 +00:00
Nathan Sidwell
97119bb744 new2.cc (operator delete[]): Use operator delete, don't assume implementation.
* new2.cc (operator delete[]): Use operator delete, don't assume
	implementation.

From-SVN: r31687
2000-01-29 16:25:37 +00:00
Nathan Sidwell
02fed91d67 class.c (build_vtbl_initializer): Add argument to build_vtable_entry call.
* class.c (build_vtbl_initializer): Add argument to
	build_vtable_entry call.

From-SVN: r31686
2000-01-29 15:47:14 +00:00
Jeff Law
6072f4261f Daily bump.
From-SVN: r31685
2000-01-29 01:45:07 -07:00
Mark Mitchell
c0bbf652c5 cp-tree.def (THUNK_DECL): Discuss vcall indices.
* cp-tree.def (THUNK_DECL): Discuss vcall indices.
	* cp-tree.h (BINFO_VIRTUALS): Update documentation.
	(BF_DELTA): New macro.
	(BF_VCALL_INDEX): Likewise.
	(BF_FN): Likewise.
	(THUNK_VCALL_OFFSET): Likewise.
	(make_thunk): Change prototype.
	* class.c (build_vtable_entry): Integrate
	build_vtable_entry_for_fn.  Handle vcall indices.
	(build_vtable_entry_for_fn): Remove.
	(set_rtti_entry): Handle vcall indices.  Use BF_DELTA,
	BF_VCALL_INDEX, BF_FN.
	(modify_vtable_entry): Integrate common code from
	modify_one_vtable and dfs_fixup_vtable_deltas.
	(add_virtual_function): Set BF_VCALL_INDEX.
	(build_vtbl_initializer): Simplify.  Use BF_DELTA, BF_VCALL_INDEX,
	and BF_FN.
	(modify_one_vtable): Simplify.
	(dfs_fixup_vtable_deltas): Likewise.
	(override_one_vtable): Use BF_DELTA, BF_VCALL_INDEX, BF_FN.
	* method.c (make_thunk): Handle vcall indices.

From-SVN: r31684
2000-01-29 03:59:09 +00:00
Herman A.J. ten Brugge
4fda2521e9 c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>

        * c4x.h (INIT_TARGET_OPTABS): Add all missing local optab entries.
	* c4x.c: Define the optab rtx values.
	(c4x_add_gc_roots): Add the ggc roots for these optab rtx values.
	(c4x_emit_libcall): Use new optab rtx values.
	(c4x_emit_libcall3): Likewise.
	(c4x_emit_libcall_mulhi): Likewise.
	* c4x-protos.h: Add prototypes for optab rtx values and change
	prototypes for above c4x_emit_libcall functions.

From-SVN: r31683
2000-01-29 03:11:21 +00:00
Herman A.J. ten Brugge
dfafcb4dbd c4x.c (c4x_output_ascii): Restrict line length of output when TI syntax is used.
2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>

        * c4x.c (c4x_output_ascii): Restrict line length of output when TI
	syntax is used.
	(c4x_function_prologue): Use regnames intead of float_reg_names when
	TI syntax is used.
	(c4x_function_epilogue): Likewise.
	(c4x_print_operand): Likewise.
	* c4x.h (HOST_WIDE_INT_PRINT_HEX): Redefine.
	* c4x.md (set_high): Disable for TARGET_TI.

From-SVN: r31682
2000-01-29 03:07:37 +00:00
Herman A.J. ten Brugge
ed3614cd74 c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading of framepointer + constant to ADDR_REGS class.
2000-01-27 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>

	* c4x.h (PREFERRED_RELOAD_CLASS): Change to restrict the reloading
	of framepointer + constant to ADDR_REGS class.
	* c4x.md (addqi3, addqi3_noclobber_reload): Update.
	* c4x.c (std_or_reg_operand): New function.
	* c4x-protos.h (std_or_reg_operand): Prototype it.

From-SVN: r31681
2000-01-29 03:01:24 +00:00
Herman A.J. ten Brugge
29a963d303 t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same object names as libgcc2.c.
2000-01-29 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>

	* t-c4x: Change qi,qf,di,df into si,sf,hi,hf to generate same
		object names as libgcc2.c.
	* libgcc.S: Use newly defined names.

From-SVN: r31680
2000-01-29 02:50:17 +00:00
Jason Eckhardt
65169dcfc2 [multiple changes]
Fri Jan  7 19:48:04 CET 2000  Jan Hubicka  <jh@suse.cz>
	* sbitmap.c (sbitmap_first_set_bit, sbitmap_last_set_bit): New
	function.
	* sbitmap.h (sbitmap_first_set_bit, sbitmap_last_set_bit): Declare.
	* basic_block.h (FLOW_LOOP_FIRST_BLOCK): New macro.
	(FLOW_LOOP_LAST_BLOCK): Likewise.

2000-01-21  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>

	* basic-block.h (struct loop): New fields 'first' and 'last'.
	* flow.c (flow_loops_find): Compute loop->first and loop->last.
	(flow_loops_dump): Use loop->first to check for NOTE_INSN_LOOP_BEG
	and loop->last to check for NOTE_INSN_LOOP_END.

Fri Jan 28 10:57:58 2000  Jason Eckhardt  <jle@cygnus.com>

	* predict.c (estimate_probability): Use the new FIRST and LAST fields
	of the loop descriptor rather than HEADER and LATCH. Also added
	missing break statements as well making some coding style modifications
	as suggested by Michael Hayes.

From-SVN: r31679
2000-01-29 01:41:22 +00:00
Anthony Green
72af8e4e63 gcconfig.h (DATASTART): Add missing extern declaration for data_start on powerpc.
* gcconfig.h (DATASTART): Add missing extern declaration
	for data_start on powerpc.

From-SVN: r31677
2000-01-29 01:17:03 +00:00
Richard Henderson
19d3c25c9a flow.c (find_basic_blocks): Remove do_cleanup argument.
* flow.c (find_basic_blocks): Remove do_cleanup argument.
        Break out that code ...
        (cleanup_cfg): ... here.
        (commit_one_edge_insertion): Detect a return instruction being
        emitted to an edge.  Emit a barrier following; clear fallthru.
        (commit_edge_insertions): Verify CFG consistency.
        * function.c (expand_function_start): Kill unused variable.
        (expand_function_end): Likewise.
        (thread_prologue_and_epilogue_insns): Use insert_insn_on_edge
        to insert the epilogue.

        * gcse.c (gcse_main): Adjust for find_basic_blocks change.
        (delete_null_pointer_checks): Likewise.
        * output.h: Likewise.
        * reg-stack.c (reg_to_stack): Likewise.
        * toplev.c (rest_of_compilation): Likewise.  Run
        thread_prologue_and_epilogue_insns after rebuilding the CFG.

From-SVN: r31676
2000-01-28 14:22:50 -08:00
Richard Henderson
47e6ea667d haifa-sched.c (schedule_insns): Don't recompute reg info after reload.
* haifa-sched.c (schedule_insns): Don't recompute reg info
        after reload.

From-SVN: r31675
2000-01-28 13:54:39 -08:00
Richard Henderson
ae20388c7d Makefile.in (flow.o): Revert 24 Jan change.
* Makefile.in (flow.o): Revert 24 Jan change.
        * flow.c (mark_regs_live_at_end): Likewise.  Force BLKmode
        FUNCTION_VALUE result to DECL_RESULT's mode.

From-SVN: r31674
2000-01-28 13:21:49 -08:00
Zack Weinberg
a3e0a73bd7 configure.in: Make --enable-cpplib the default.
* configure.in: Make --enable-cpplib the default.
	* configure: Regenerate.
	* gcc.dg/990119-1.c: No longer expected to fail.

From-SVN: r31673
2000-01-28 20:49:17 +00:00
Tom Tromey
d0a844f86b Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (LIBFFIINCS): Added MULTIBUILDTOP.

From-SVN: r31672
2000-01-28 20:00:21 +00:00
Mike Stump
74dc0d8cab Fix recent small bug
From-SVN: r31671
2000-01-28 19:44:45 +00:00
Bernd Schmidt
52bea68432 Delete a superfluous and buggy optimization
From-SVN: r31670
2000-01-28 18:00:04 +00:00
Kaveh R. Ghazi
b9ff481444 diagnostic.c (build_message_string, [...]): Add ATTRIBUTE_PRINTF_*.
* diagnostic.c (build_message_string, output_printf,
        line_wrapper_printf): Add ATTRIBUTE_PRINTF_*.
        (build_location_prefix): Fix non-literal format string.

From-SVN: r31669
2000-01-28 16:34:00 +00:00
Nathan Sidwell
7267d6924e Compiler side new abi rtti (not enabled).
* cp-tree.h (new_abi_rtti_p): New macro.
	(emit_support_tinfos): Prototype new function.
	(tinfo_decl_p): Likewise.
	(emit_tinfo_decl): Likwise.
	* rtti.c (TINFO_PSEUDO_TYPE, TINFO_VTABLE_DECL): New accessor
	macros.
	(doing_runtime): New local static.
	(init_rtti_processing): Add new-abi initializer.
	(get_tinfo_decl): Add new-abi logic.
	(tinfo_from_decl): Likewise.
	(build_dynamic_cast_1): Likewise.
	(qualifier_flags): New static function.
	(tinfo_base_init): Likewise.
	(generic_initializer): Likewise.
	(ptr_ref_initializer): Likewise.
	(ptmd_initializer): Likewise.
	(class_hint_flags): Likewise.
	(class_initializer): Likewise.
	(synthesize_tinfo_var): Likewise.
	(create_real_tinfo_var): Likewise.
	(create_pseudo_type_info): Likewise.
	(get_vmi_pseudo_type_info): Likewise.
	(create_tinfo_types): Likewise.
	(emit_support_tinfos): New global function.
	(tinfo_decl_p): New global predicate.
	(emit_tinfo_decl): New global function.
	* class.c (set_rtti_entry): Generalize for old and new rtti.
	(build_vtbl_initializer): Likewise.
	* decl2.c (finish_file): Likewise.

From-SVN: r31668
2000-01-28 13:30:13 +00:00
Jakub Jelinek
73565a7129 20000127-1.c: New test.
* compile/20000127-1.c: New test.
	* execute/991228-1.c: New test.

From-SVN: r31667
2000-01-28 12:54:37 +01:00
Martin v. Löwis
dfe50efb43 fstream.h (ifstream::ifstream): Add ios::in to mode.
* fstream.h (ifstream::ifstream): Add ios::in to mode.
	(ifstream::open): Likewise.
	(ofstream::ofstream): Add ios::out to mode.
	(ofstream::open): Likewise.

From-SVN: r31666
2000-01-28 09:55:33 +00:00
Jeff Law
e8ea81ec7d Daily bump.
From-SVN: r31664
2000-01-28 01:45:07 -07:00
Jim Wilson
aa1eac0c9f Fix winsup (cygwin) build failure with VLAs and inline functions.
* cp/optimize.c (remap_decl): Add walk_tree calls for DECL_SIZE (t)
	and TYPE_MAX_VALUE (TYPE_DOMAIN (TREE_TYPE (t))).

From-SVN: r31663
2000-01-27 20:56:59 -08:00
Richard Henderson
138eff91a2 * alpha.md (trunctfsf2): New.
From-SVN: r31662
2000-01-27 20:36:43 -08:00
Mike Stump
0843179b2e Fix whitespace
From-SVN: r31661
2000-01-28 04:09:29 +00:00
Andrew Hobson
cd038ac239 * configure.in (alpha-dec-osf5): Enable MASK_SUPPORT_ARCH.
From-SVN: r31660
2000-01-27 19:00:01 -08:00
Zack Weinberg
d14cfa2af8 dbz.c, dbzmain.c: Include stdlib.h.
* dbz/dbz.c, dbz/dbzmain.c: Include stdlib.h.  Don't declare
	malloc, calloc, free, atol, atoi, or errno.  (errno.h was
	already being included.)

From-SVN: r31659
2000-01-28 01:21:49 +00:00
Zack Weinberg
c65ede6789 New test - core dump in cccp
From-SVN: r31658
2000-01-28 01:10:53 +00:00
Mike Stump
0d5b6c4bda testcase for recent checkin
From-SVN: r31656
2000-01-27 23:19:47 +00:00
Mike Stump
e905ac8a1a decl.c (pushdecl): Fix up shadow warnings with respect to implicit for scopes.
* decl.c (pushdecl): Fix up shadow warnings with respect to implicit
	for scopes.
Fixes for3.C

From-SVN: r31655
2000-01-27 23:15:38 +00:00
Zack Weinberg
75ec21db30 cppinit.c (cpp_handle_option): Recognize C++ comments under -std=gnu89.
* cppinit.c (cpp_handle_option): Recognize C++ comments under
	-std=gnu89.
	* cpplib.c (skip_block_comment, skip_line_comment): Split code
	out of...
	(skip_comment) ... here.  Permit C++ comments in system
	headers always.  Warn about C++ comments in user code under
	-std=gnu89 -pedantic.
	(copy_comment): Use skip_comment.
	(cpp_skip_hspace, cpp_get_token): skip_comment can no longer
	return EOF.
	(consider_directive_while_skipping, do_else, do_endif): Call
	validate_else unconditionally.
	(validate_else): Check CPP_PEDANTIC here.  Accept non-comment
	text after the conditional in a system header.
	* cpplib.h (struct cpp_buffer): Add flag
	warned_cplusplus_comments.

From-SVN: r31654
2000-01-27 22:29:07 +00:00
Zack Weinberg
73b5cdf98a Test cases for c++ comments and endif labels in system headers.
I made them up all by myself.

From-SVN: r31653
2000-01-27 22:27:24 +00:00
Zack Weinberg
35ac3890ec Use __inline not inline since test is compiled with -ansi
From-SVN: r31652
2000-01-27 21:42:03 +00:00
Geoff Keating
d1b8177961 emit-rtl.c (unshare_all_rtl): Unshare virtual parameters too.
* emit-rtl.c (unshare_all_rtl): Unshare virtual parameters too.
Use unshare_all_rtl_1.
(unshare_all_rtl_again): New function.
(unshare_all_rtl_1): New function split out of unshare_all_rtl.

* function.c (purge_addressof_1): Use unshare_all_rtl_again
rather than resetting the 'used' flags ourself.

* toplev.c (rest_of_compilation): Add current_function_decl
to the unshare_all_rtl call.
* tree.h: Prototype unshare_all_rtl.
* rtl.h: Prototype unshare_all_rtl_again here.

From-SVN: r31651
2000-01-27 20:46:26 +00:00
Geoff Keating
3bc9f12b33 genoutput.c (output_prologue): Include ggc.h in generated files.
* genoutput.c (output_prologue): Include ggc.h in generated
	files.
	* Makefile.in (insn-output.o): Depends on ggc.h.

From-SVN: r31650
2000-01-27 20:40:24 +00:00
Ian Dall
4c54e4e417 ns32k update from Ian Dall and Hans-Peter Nilsson.
Co-Authored-By: Hans-Peter Nilsson <hp@bitrange.com>

From-SVN: r31648
2000-01-27 11:20:51 -08:00
Andrew Haley
f85cedde61 jcf-write.c (emit_goto): RESERVE 3 bytes for insn.
2000-01-27  Andrew Haley  <aph@cygnus.com>

        * jcf-write.c (emit_goto): RESERVE 3 bytes for insn.
        (emit_if): Ditto.
        (emit_jsr): Ditto.

From-SVN: r31647
2000-01-27 19:09:14 +00:00
Fred Fish
899905f6d3 gthr-posix.h: Fix typo; compatibily -> compatibility.
* gthr-posix.h: Fix typo; compatibily -> compatibility.
        * gthr-single.h: Likewise.
        * gthr-solaris.h: Likewise.
        * gthr-vxworks.h: Likewise.
        * gthr-win32.h: Likewise.
        * gthr.h: Likewise.

From-SVN: r31646
2000-01-27 10:49:12 -08:00
Zack Weinberg
9082f8471a cppinit.c: Add " (cpplib)" to end of string printed by -v / --version.
* cppinit.c: Add " (cpplib)" to end of string printed by
	-v / --version.

From-SVN: r31645
2000-01-27 18:37:50 +00:00
Joern Rennecke
28353b165e Reflect renaming of invariant_p to loop_invariant_p in comment.
From-SVN: r31644
2000-01-27 17:45:12 +00:00
Richard Henderson
01b9e84eb1 alpha.c (alpha_emit_conditional_move): Use VOIDmode when testing for a signed comparison.
* alpha.c (alpha_emit_conditional_move): Use VOIDmode when
        testing for a signed comparison.
        (alpha_emit_floatuns): New.
        * alpha-protos.h: Declare it.
        * alpha.md (floatunsdisf2, floatunsdidf2): New.
        (extendsfdf2): Tidy.

From-SVN: r31643
2000-01-27 02:17:37 -08:00