Commit Graph

24718 Commits

Author SHA1 Message Date
Richard Henderson
65c8a03d5c unroll.c (copy_loop_body): Examine SET_DEST of single_set not of pattern.
* unroll.c (copy_loop_body): Examine SET_DEST of single_set
        not of pattern.

From-SVN: r30149
1999-10-24 13:31:26 -07:00
Richard Henderson
0bae01847e Revert unintended change to copy_loop_body.
From-SVN: r30148
1999-10-24 13:25:28 -07:00
Graham Stott
ac6067399c alias.c: Include ggc.h.
* alias.c: Include ggc.h.
        (reg_base_value, new_reg_base_value, reg_base_value_size): Make static.
        (record_set): Verify enough room in reg_base_value.
        (init_alias_analysis): Allocate reg_base_value with xcalloc.
        Register it as a GC root.
        (end_alias_analysis): Free reg_base_value.  Remove it as a GC root.
        * Makefile.in (alias.o): Depend on ggc.h.

        * unroll.c (unroll_loop): Verify the insn before a barrier
        is a JUMP_INSN before checking JUMP_LABEL.

Co-Authored-By: Richard Henderson <rth@cygnus.com>

From-SVN: r30147
1999-10-24 13:20:00 -07:00
Kaveh R. Ghazi
9d73cc12c3 bsd-5.h (ASM_OUTPUT_ASCII): Constify a char*.
* mips/bsd-5.h (ASM_OUTPUT_ASCII): Constify a char*.
        * mips/iris4.h (ASM_OUTPUT_ASCII): Likewise.
        * mips/mips-5.h (ASM_OUTPUT_ASCII): Likewise.
        * mips/mips.h (ASM_OUTPUT_ASCII): Likewise.
        * mips/svr3-5.h (ASM_OUTPUT_ASCII): Likewise.
        * mips/svr4-5.h (ASM_OUTPUT_ASCII): Likewise.

From-SVN: r30146
1999-10-24 19:48:51 +00:00
Kaveh R. Ghazi
7751947bd4 output.h (ctors_section, [...]): Prototype.
* output.h (ctors_section, dtors_section, bss_section): Prototype.

	* alpha/alpha-interix.h (text_section): Delete prototype.
	* alpha/elf.h (text_section): Likewise.
	* arm/linux-elf.h (text_section): Likewise.
	* arm/linux-telf.h (text_section): Likewise.
	* c4x/c4x.h (text_section): Likewise.
	* dsp16xx/dsp16xx.h (bss_section): Likewise.
	* elfos.h (text_section): Likewise.
	* i386/aix386ng.h (text_section): Likewise.
	* i386/i386-interix.h (text_section): Likewise.
	* i386/sco5.h (text_section): Likewise.
	* i386/svr3gas.h (text_section): Likewise.
	* nextstep.h (text_section): Likewise.
	* psos.h (text_section): Likewise.
	* ptx4.h (text_section): Likewise.
	* svr3.h (text_section): Likewise.
	* svr4.h (text_section, ctors_section, dtors_section): Likewise.

From-SVN: r30145
1999-10-24 19:38:53 +00:00
Kaveh R. Ghazi
36f0e0a60c final.c (peephole): Delete prototype.
* final.c (peephole): Delete prototype.

        * gcse.c (process_insert_insn, pre_edge_insert): Add prototypes.
        (pre_insert_copies): Remove unused variable `bb'.

        * genrecog.c (debug_decision_0, debug_decision_list, main): Add
        prototypes.

        * output.h (peephole): Add prototype.

From-SVN: r30144
1999-10-24 19:23:11 +00:00
Mark Mitchell
87bb6e4ba4 iris6.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Define to -O0.
* config/mips/iris6.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Define to
	-O0.

From-SVN: r30143
1999-10-24 17:36:47 +00:00
Jeff Law
bcc58682bf Daily bump.
From-SVN: r30142
1999-10-24 01:45:06 -06:00
Jeffrey A Law
ee90ff50c2 * gcc.c-torture/execute/991023-1.c: New test.
From-SVN: r30141
1999-10-23 23:37:24 -06:00
Mark Mitchell
f120f9018d integrate.c (integrate_decl_tree): Tweak setting of DECL_CONTEXT for inlined declarations.
* integrate.c (integrate_decl_tree): Tweak setting of DECL_CONTEXT
	for inlined declarations.

From-SVN: r30140
1999-10-24 04:08:16 +00:00
Manfred Hollstein
ea1e32f66f * POTFILES.in: Track files recently added/deleted/moved.
From-SVN: r30139
1999-10-23 16:38:23 +00:00
Zack Weinberg
ed38f5d5d8 hashtab.c (find_hash_table_entry): When returning a DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1999-10-23 08:51 -0700  Zack Weinberg  <zack@bitmover.com>

	* hashtab.c (find_hash_table_entry): When returning a
	DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
	(clear_hash_table_slot): New function which deletes an entry
	by its position in the table, not its value.
	(traverse_hash_table): New function which calls a hook
	function for every live entry in the table.

	* hashtab.h: Give hash_table_t a struct tag.  Add prototypes
	for clear_hash_table_slot and traverse_hash_table.  Correct
	prototype of all_hash_table_collisions.

From-SVN: r30138
1999-10-23 15:56:52 +00:00
Jeff Law
5e481b31ee Daily bump.
From-SVN: r30137
1999-10-23 01:45:06 -06:00
Jason Merrill
ecb2452b82 regen
From-SVN: r30136
1999-10-22 23:20:47 -04:00
Jeffrey A Law
6ab589e0c9 arm.c (logical_binary_operator): New fucntion.
* arm.c (logical_binary_operator): New fucntion.
        * arm.h (logical_binary_operator): Declare it.
        (PREDICATE_CODES): Handle logical_binary_operator.
        * arm.md (anddi3, anddi_zesidi_di, anddi_sesdi_di): Use "#" for
        output constraints.  Add appropriate splitters.
        (anddi_notdi_di, anddi_notzesidi_di, anddi_notsesidi_di): Likewise.
        (iordi3, iordi_zesidi_di, iordi_sesidi_di): Likewise.
        (xordi3, xordi_zesidi_di, xordi_sesidi_di): Likewise.

From-SVN: r30135
1999-10-22 18:09:29 -06:00
Bernd Schmidt
dfac187e9f Fix register elimination problem
From-SVN: r30134
1999-10-22 22:02:17 +00:00
Tom Tromey
b8c3c4f014 Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
	* Makefile.am (java/lang/ClassLoader.h): New target.
	* java/lang/natClassLoader.cc (_Jv_FindClass): Removed reference
	to `redirect'.

	* include/java-props.h (_Jv_Compiler_Properties): Changed
	declaration.
	* gcj/array.h (JvRunMain, _Jv_RunMain): Don't declare.
	* include/jvm.h (_Jv_GCSetInitialHeapSize,
	_Jv_GCSetMaximumHeapSize): Declare.
	(JvRunMain, _Jv_RunMain): Declare.
	(_Jv_SetMaximumHeapSize, _Jv_SetInitialHeapSize): Declare.
	* nogc.cc (_Jv_GCSetInitialHeapSize): New function.
	(_Jv_GCSetMaximumHeapSize): Likewise.
	* boehm.cc (_Jv_GCSetInitialHeapSize): New function.
	(_Jv_GCSetMaximumHeapSize): Likewise.
	* prims.cc (parse_heap_size): New function.
	(_Jv_SetInitialHeapSize): Likewise.
	(_Jv_SetMaximumHeapSize): Likewise.
	(_Jv_Compiler_Properties): New global.
	* gij.cc (help): New function.
	(version): Likewise.
	(heap_size): Likewise.
	(heap_max_size): Likewise.
	(main): Parse arguments.  Set _Jv_Compiler_Properties.
	Include <config.h>, <java-props.h>.
	(_Jv_Compiler_Properties): Removed.

From-SVN: r30133
1999-10-22 19:43:41 +00:00
Tom Tromey
2fca54beb2 jvgenmain.c (main): _Jv_Compiler_Properties now an extern; set in generated `main'.
* jvgenmain.c (main): _Jv_Compiler_Properties now an extern; set
	in generated `main'.

From-SVN: r30132
1999-10-22 19:40:50 +00:00
Mark Mitchell
7ebb782bd0 i386.md: Add missing `y' modifiers to uses of fst, fstp, fld, and fld.
* i386.md: Add missing `y' modifiers to uses of fst, fstp, fld,
	and fld.

From-SVN: r30131
1999-10-22 15:59:21 +00:00
Bruce Korb
8f9ca91274 Use C-coded tests and fixes for #endif/#else labels
From-SVN: r30130
1999-10-22 13:23:43 +00:00
Jeff Law
5685b5d3c2 Daily bump.
From-SVN: r30129
1999-10-22 01:45:07 -06:00
Mark Mitchell
5f7cbe4eb3 cp-tree.def (EMPTY_CLASS_EXPR): New tree node.
* cp-tree.def (EMPTY_CLASS_EXPR): New tree node.
	* call.c (build_call): Use EMPTY_CLASS_EXPR instead of RTL_EXPR.
	* expr.c (cplus_expand_expr): Expand it.
	* ir.texi: Document EMPTY_CLASS_EXPR.

From-SVN: r30128
1999-10-22 06:35:17 +00:00
Alexandre Petit-Bianco
ac22f9cb2c re GNATS gcj/56 (gcj segfaults in jc1 on OK java file)
Thu Oct 21 01:27:31 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (resolve_qualified_expression_name): Handle MODIFY_EXPR.
	(qualify_ambiguous_name): Likewise.

This fixes the net PR #56
(http://sourceware.cygnus.com/ml/java-prs/1999-q3/msg00131.html)

From-SVN: r30127
1999-10-21 23:06:47 -07:00
Alexandre Petit-Bianco
100f7cd8b9 re GNATS gcj/37 (gcj fails to compile "jBYTEmark" from source code when optimization is used)
Wed Oct 20 01:41:47 1999  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (java_complete_tree): fold_constant_for_init to work on
 	permanent_obstack.
	(java_complete_lhs): Likewise.
	(array_constructor_check_entry): Complete an initializer element
 	on permanent_obstack.

This patch fixes the net PR #37
(http://sourceware.cygnus.com/ml/java-prs/1999-q3/msg00043.html)

From-SVN: r30126
1999-10-21 22:27:34 -07:00
Jeffrey A Law
d84319deb3 Makefile.in (cse.o): Depend on hashtab.h, not splay-tree.h.
* Makefile.in (cse.o): Depend on hashtab.h, not splay-tree.h.  Also
        depend on ggc.h.

From-SVN: r30125
1999-10-21 20:38:57 -06:00
Matthias Klose
84221183be * gcc.1: Document exit codes.
From-SVN: r30124
1999-10-21 20:32:26 -06:00
Mark Mitchell
8badec73eb dump.c (dequeue_and_dump): Replace several uses of queue_and_dump_index with dump_child.
1999-10-21  Mark Mitchell  <mark@codesourcery.com>

	* dump.c (dequeue_and_dump): Replace several uses of
	queue_and_dump_index with dump_child.

From-SVN: r30123
1999-10-22 01:40:30 +00:00
Kaveh R. Ghazi
b1474bb79e calls.c: Include tm_p.h later, so everything we need is defined.
* calls.c: Include tm_p.h later, so everything we need is defined.
        * expr.c: Likewise.
        * function.c: Likewise.

        * except.c: Include tm_p.h.

        * sparc.c: Likewise.
        (dwarf2out_cfi_label): Don't prototype.
        (check_return_regs, epilogue_renumber,
        ultra_cmove_results_ready_p, ultra_fpmode_conflict_exists,
        ultra_find_type, ultra_build_types_avail, ultra_flush_pipeline,
        ultra_rescan_pipeline_state, set_extends, ultra_code_from_mask,
        ultra_schedule_insn): Add static prototype.
        (data_segment_operand, text_segment_operand): Call itself with the
        proper number of arguments.
        (sparc_flat_save_restore, sparc_v8plus_shift): Constify a char*.

        * sparc.h: Move all declarations to sparc-protos.h.
        (SELECT_RTX_SECTION):  Pass a missing MODE argument to
        symbolic_operand.

        * sparc/sysv4.h (SELECT_RTX_SECTION): Likewise.

        * config/svr4.h (text_section, ctors_section, dtors_section): Add
        Prototypes.
        (ASM_OUTPUT_SECTION_NAME, UNIQUE_SECTION,
        ASM_FINISH_DECLARE_OBJECT, ASM_OUTPUT_LIMITED_STRING,
        ASM_OUTPUT_ASCII): Constify a char*.

        * sparc-protos.h: New file for sparc prototypes.

cp:
        * expr.c: Include tm_p.h.

From-SVN: r30122
1999-10-21 16:58:33 +00:00
Kaveh R. Ghazi
ec97b83a1c function.c (record_insns, contains): Always declare and define.
* function.c (record_insns, contains): Always declare and define.
       (record_insns): Mark with ATTRIBUTE_UNUSED.

From-SVN: r30121
1999-10-21 16:26:42 +00:00
Jonathan Larmour
ec8aac6f55 Apply patches submitted by eCos team.
From-SVN: r30120
1999-10-21 12:05:58 +00:00
Nick Clifton
8141abe88d Allos suppression of some ARM multilibs
From-SVN: r30119
1999-10-21 10:54:53 +00:00
Mark Mitchell
8f471b0d0f cp-tree.h (SCOPE_PARTIAL_P): New macro.
* cp-tree.h (SCOPE_PARTIAL_P): New macro.
	(pushlevel_temporary): Remove.
	(add_scope_stmt): New function.
	* decl.c (pushlevel_temporary): Remove.
	(poplevel): Use add_scope_stmt.
	(start_decl_1): Likewise.
	* semantics.c (add_scope_stmt): New function.
	(do_pushlevel): Use it.
	(do_poplevel): Use it.
	(expand_stmt): Check SCOPE_PARTIAL_P.

From-SVN: r30118
1999-10-21 08:05:57 +00:00
Jeff Law
070cd782ac Daily bump.
From-SVN: r30117
1999-10-21 01:45:06 -06:00
Mark Mitchell
699ed0ce1f cp-tree.def (EMPTY_CLASS_EXPR): New tree node.
* cp-tree.def (EMPTY_CLASS_EXPR): New tree node.
	* call.c (build_call): Use EMPTY_CLASS_EXPR instead of RTL_EXPR.
	* expr.c (cplus_expand_expr): Expand it.
	* ir.texi: Document EMPTY_CLASS_EXPR.

From-SVN: r30116
1999-10-21 07:10:36 +00:00
Jeffrey A Law
e54635a2f3 sparc.md (movsf_const_intreg): If splitting, length must be > 1.
* sparc.md (movsf_const_intreg): If splitting, length must be > 1.
        (movdf_const_intreg_sp64): Similarly.

From-SVN: r30112
1999-10-20 23:33:20 -06:00
Jeffrey A Law
b768aa38c2 local-alloc.c (update_equiv_regs): Check the correct insn for pre-existing REG_EQUIV notes.
* local-alloc.c (update_equiv_regs): Check the correct insn
        for pre-existing REG_EQUIV notes.

From-SVN: r30111
1999-10-20 23:01:02 -06:00
Mark Mitchell
16b702cd43 cse.c (cse_end_of_basic_block): Don't return the end of a basic block reached by a branch if...
* cse.c (cse_end_of_basic_block): Don't return the end of a basic
	block reached by a branch if we're not going to actually process
	this block

From-SVN: r30109
1999-10-21 03:37:33 +00:00
Jim Wilson
56d410bbc0 Fix noncompile/940510-1.c testsuite failures.
* noncompile/noncompile.exp: For 940510-1.c, change compiler_output
	to look for one error message instead of two.

From-SVN: r30108
1999-10-20 16:20:01 -07:00
Jim Wilson
417d348c5a Fix numerous -O3 -g testsuite failures for DWARF2 targets.
* integrate.c (integrate_decl_tree): Set DECL_CONTEXT to 0 if this is
	a local extern function declaration.

From-SVN: r30107
1999-10-20 15:19:06 -07:00
Richard Henderson
276ab4a49c i386.c (ix86_expand_prologue): Properly wrap USE around reg for CALL_INSN_FUNCTION_USAGE.
* i386.c (ix86_expand_prologue): Properly wrap USE around
        reg for CALL_INSN_FUNCTION_USAGE.

From-SVN: r30106
1999-10-20 13:58:29 -07:00
Andrew Haley
c26040ee1e mips.md (movdf_internal1a): Allow floating-point move between GP_REGs.
Thu Oct 14 18:51:37 1999  Andrew Haley  <aph@cygnus.com>

        * config/mips/mips.md (movdf_internal1a): Allow floating-point
        move between GP_REGs.

From-SVN: r30105
1999-10-20 18:29:09 +00:00
Andrew Haley
7086004dd0 thumb.h (GO_IF_LEGITIMATE_ADDRESS): Take account of the mode size when finding out if an offset is legal.
Wed Oct 20 15:36:11 1999  Andrew Haley  <aph@cygnus.com>

	* config/arm/thumb.h (GO_IF_LEGITIMATE_ADDRESS): Take account of
	the mode size when finding out if an offset is legal.

From-SVN: r30104
1999-10-20 15:36:33 +00:00
Richard Henderson
49c3bb1275 basic-block.h (PROP_*): Move constants from ...
* basic-block.h (PROP_*): Move constants from ...
        * flow.c: ... here.
        (compute_bb_for_insn): Free the array before reallocating.
        (update_life_info): New arg PROP_FLAGS; pass on to propagate_block.
        (allocate_reg_life_data): Reset all reg variables collected by
        propagate_block.
        (get_block_head_tail): Don't convert from bb to block.
        (get_bb_head_tail): New.  Update all callers of get_block_head_tail.
        (find_insn_reg_weight): Take block not bb.
        (schedule_block): Don't set block num for moved insns.
        (schedule_region): Don't update_life_info or find_insn_reg_weight.
        (schedule_insns): Do it here instead.
        * combine.c (combine_instructions): Invoke compute_bb_for_insn
        before update_life_info.
        * recog.c (split_all_insns, peephole2_optimize): Update for
        new arg to update_life_info.
        * rtlanal.c (remove_note): Cope with NULL note.
        * toplev.c (rest_of_compilation): Don't invoke recompute_reg_usage
        if we did sched1.

From-SVN: r30103
1999-10-20 07:04:12 -07:00
Richard Earnshaw
5b9188072e * gcc-page.c: Try MAP_ANON if we don't have MAP_ANONYMOUS.
From-SVN: r30102
1999-10-20 12:53:23 +00:00
Richard Earnshaw
506f9fbf42 (split_edge): Handle casesi insns.
From-SVN: r30101
1999-10-20 12:45:22 +00:00
Richard Earnshaw
ee7b8369c2 (merge_blocks_move_predecessor_nojumps): Re-order the basic block records so...
(merge_blocks_move_predecessor_nojumps): Re-order the basic
block records so that merge_blocks_nomove will clean up correctly.

From-SVN: r30100
1999-10-20 12:39:01 +00:00
Richard Earnshaw
dc9e9f3f88 (jump_optimize_1): More accurately detect casesi insns.
From-SVN: r30099
1999-10-20 10:21:47 +00:00
Jeff Law
2cd6f3b397 Daily bump.
From-SVN: r30098
1999-10-20 01:45:06 -06:00
Mark Mitchell
4f71f6300a cp-tree.h (DECL_NAMESPACE_SCOPE_P): Don't treat template parameters as having namespace scope.
* cp-tree.h (DECL_NAMESPACE_SCOPE_P): Don't treat template
	parameters as having namespace scope.

From-SVN: r30097
1999-10-20 07:02:30 +00:00
Jeffrey A Law
7978192f77 pa.md (call, call_value): Do not emit a blockage after restoring the PIC register.
* pa.md (call, call_value): Do not emit a blockage after restoring
        the PIC register.

From-SVN: r30096
1999-10-19 23:45:09 -06:00