Commit Graph

39748 Commits

Author SHA1 Message Date
Douglas B Rupp
af328d8dd7 configure.in (uintptr_t): Use AC_CHECK_TYPE.
* configure.in (uintptr_t): Use AC_CHECK_TYPE.
	* configure: Regenerated.

From-SVN: r48442
2002-01-01 05:01:43 -05:00
GCC Administrator
3cce904905 Daily bump.
From-SVN: r48440
2002-01-01 08:16:26 +00:00
Tom Tromey
12cfb4fc72 parse.y (dump_java_tree): New function.
* parse.y (dump_java_tree): New function.
	(source_end_java_method): Call it.
	(end_class_declaration): Likewise.
	* lang.c (java_decode_option): Call dump_switch_p.

From-SVN: r48439
2002-01-01 01:42:15 +00:00
Richard Henderson
f95e79cc11 * config/ia64/ia64.c (mark_reg_gr_used_mask): Mind HARD_REGNO_NREGS.
From-SVN: r48437
2001-12-31 16:23:22 -08:00
Ira Ruben
a4219437e2 aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
* aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
* configure: Regenerated.

From-SVN: r48436
2001-12-31 18:23:49 -05:00
Richard Henderson
3ada20eee1 regrename.c (build_def_use): Don't rename asm operands that were originally hard registers.
* regrename.c (build_def_use): Don't rename asm operands that
        were originally hard registers.
        (copyprop_hardreg_forward_1): Likewise.
        (find_oldest_value_reg): Copy ORIGINAL_REGNO from source.
        * varasm.c (make_decl_rtl): Use gen_rtx_raw_REG.  Set ORIGINAL_REGNO.

        * gcc.dg/asm-5.c: New.

From-SVN: r48435
2001-12-31 15:16:08 -08:00
Douglas B Rupp
5a598cccec vms.h (HAS_INIT_SECTION, [...]): Remove.
* config/alpha/vms.h (HAS_INIT_SECTION, NEED_ATEXIT): Remove.
	(NAME__MAIN, SYMBOL__MAIN): Define.

From-SVN: r48434
2001-12-31 18:03:52 -05:00
Richard Henderson
f6598df3a0 alpha.c (reg_no_subreg_operand): Reject all non-registers.
* config/alpha/alpha.c (reg_no_subreg_operand): Reject all
        non-registers.

From-SVN: r48433
2001-12-31 13:33:58 -08:00
Richard Henderson
7687c5b8c6 * final.c (alter_subreg): Assign REGNO after changing the rtx code.
From-SVN: r48432
2001-12-31 13:33:36 -08:00
Richard Henderson
a124fcda15 cfgrtl.c (delete_insn): Check for not NOTE_INSN_DELETED_LABEL before decrementing LABEL_NUSES from a...
* cfgrtl.c (delete_insn): Check for not NOTE_INSN_DELETED_LABEL
        before decrementing LABEL_NUSES from a jump table.

From-SVN: r48431
2001-12-31 13:33:19 -08:00
Paolo Carlini
6d66e50d52 iterator: Add #include <bits/std_iterator.h>, tweak.
2001-12-31  Paolo Carlini  <pcarlini@unitus.it>

	* include/ext/iterator:  Add #include <bits/std_iterator.h>, tweak.
	* testsuite/ext/headers.cc:  Add <ext/iterator>.

From-SVN: r48430
2001-12-31 19:30:24 +00:00
Paolo Carlini
36955a954f algo.h: Add two more using declarations.
2001-12-31  Paolo Carlini  <pcarlini@unitus.it>

	* include/backward/algo.h:  Add two more using declarations.
	* include/backward/iterator.h:  Include <ext/iterator>,
	add using declaration.
	* include/ext/algorithm:  Add #pragma GCC system_header.

From-SVN: r48429
2001-12-31 18:03:47 +00:00
Phil Edwards
3d90ff9352 stl_bvector.h: Change calls to 3-argument distance() into standard 2-argument version.
2001-12-31  Phil Edwards  <pme@gcc.gnu.org>

	* include/bits/stl_bvector.h:  Change calls to 3-argument distance()
	into standard 2-argument version.
	* include/bits/stl_deque.h:  Likewise.
	* include/bits/stl_tempbuf.h:  Likewise.
	* include/bits/stl_tree.h:  Likewise.
	* include/bits/stl_vector.h:  Likewise.
	* include/ext/stl_hashtable.h:  Likewise.
	* include/bits/stl_iterator_base_funcs.h:  Move distance() extension...
	* include/ext/iterator:  to here.  New file.
	* include/Makefile.am (ext_headers):  Add new file, alphabatize.
	* include/Makefile.in:  Regenerate.

From-SVN: r48428
2001-12-31 16:16:17 +00:00
Paolo Carlini
c49b2550b7 eb130.C: hash_set is now in namespace __gnu_cxx
2001-12-31  Paolo Carlini  <pcarlini@unitus.it>

        * g++.old-deja/g++.robertl/eb130.C: hash_set is now
	in namespace __gnu_cxx

From-SVN: r48427
2001-12-31 15:27:36 +00:00
Phil Edwards
0de92bd834 stl_deque.h: Doxygenate with initial/example hooks.
2001-12-31  Phil Edwards  <pme@gcc.gnu.org>

	* include/bits/stl_deque.h:  Doxygenate with initial/example hooks.
	Clean up spacing and indentation.

From-SVN: r48426
2001-12-31 14:53:47 +00:00
Paolo Carlini
63fea34ee3 slist: Move into __gnu_cxx, tweak, add using declarations.
2001-12-31  Paolo Carlini  <pcarlini@unitus.it>

	* include/ext/slist:  Move into __gnu_cxx,
	tweak, add using declarations.

From-SVN: r48423
2001-12-31 10:26:01 +00:00
Paolo Carlini
e538847e1c hash_map: Move into __gnu_cxx, tweak, add using declarations.
2001-12-31  Paolo Carlini  <pcarlini@unitus.it>

	* include/ext/hash_map:  Move into __gnu_cxx,
	tweak, add using declarations.
	* include/ext/hash_set:  Ditto.
	* include/ext/ropeimpl.h:  Ditto.
	* include/ext/stl_hash_fun.h:  Ditto.
	* include/ext/stl_hashtable.h:  Ditto.
	* include/ext/stl_rope.h:  Ditto.
	* src/ext-inst.cc: Tweak.
	* testsuite/ext/rope.cc: Tweak.

From-SVN: r48422
2001-12-31 10:22:00 +00:00
Paolo Carlini
a2ee914480 algo.h: Include <ext/algorithm>, tweak using declarations.
2001-12-31  Paolo Carlini  <pcarlini@unitus.it>

        * include/backward/algo.h:  Include <ext/algorithm>,
        tweak using declarations.

From-SVN: r48421
2001-12-31 09:10:39 +00:00
GCC Administrator
2b0ee5c813 Daily bump.
From-SVN: r48419
2001-12-31 08:16:10 +00:00
Graham Stott
b8fcefb506 * halfpic.h: Remove foward defs of tree_node and rtx_def.
From-SVN: r48418
2001-12-31 06:03:23 +00:00
Graham Stott
b88098a30b * toplev.h: Remove forward def of tree_node, rtx_def.
From-SVN: r48417
2001-12-31 05:54:02 +00:00
Graham Stott
b52155b696 except.h: Remove forward def of tree_node, rtx_def and define of tree, rtx.
* except.h: Remove forward def of tree_node, rtx_def and
        define of tree, rtx. Also remove undefs.

From-SVN: r48416
2001-12-31 05:44:58 +00:00
Graham Stott
d505d66461 basic-block.h: Remove forward def of tree_node and define of tree.
* basic-block.h: Remove forward def of tree_node and
        define of tree.

From-SVN: r48415
2001-12-31 05:44:08 +00:00
Graham Stott
47f1618a35 except.h: Remove forward def of tree_node, rtx_def and define of tree, rtx.
* except.h: Remove forward def of tree_node, rtx_def and
        define of tree, rtx. Also remove undefs.

        * basic-block.h: Remove forward def of tree_node and
        define of tree.

From-SVN: r48414
2001-12-31 05:42:52 +00:00
Graham Stott
b90d6aac62 Remove extranwous changelog header.
From-SVN: r48413
2001-12-31 04:46:11 +00:00
Richard Henderson
d73b1f074b cfglayout.c (scope_def, [...]): Remove.
* cfglayout.c (scope_def, scope_forest_info, forest,
        relate_bbs_with_scopes, make_new_scope, build_scope_forest,
        remove_scope_notes, insert_intra_before_1, insert_intra_1,
        insert_intra_bb_scope_notes, insert_inter_bb_scope_notes,
        rebuild_scope_notes, free_scope_forest_1, dump_scope_forest,
        dump_scope_forest_1, get_next_bb_note, get_prev_bb_note): Remove.
        (fixup_reorder_chain): Don't set scope for bb.
        (insn_scopes, scope_to_insns_initialize, set_block_levels,
        change_scope, scope_to_insns_finalize): New.
        (cfg_layout_initialize, cfg_layout_finalize): Update to match.
        * cfglayout.h (scope_def, scope): Remove.
        (reorder_block_def): Remove scope member.
        (scope_to_insns_initialize, scope_to_insns_finalize): Declare.
        * haifa-sched.c: Revert reemit_other_notes change.
        * sched-ebb.c (schedule_ebbs): Don't call remove_unnecessary_notes.
        Use scope_to_insns_initialize and scope_to_insns_finalize.
        * sched-rgn.c (schedule_insns): Likewise.

        * gcc.dg/debug-6.c: New.

From-SVN: r48412
2001-12-30 20:19:35 -08:00
Graham Stott
eb3aaa5b86 * c-lex.c: Include tree.h before expr.h
From-SVN: r48411
2001-12-31 04:13:35 +00:00
Graham Stott
742b62e75a * c-typeck.c: Include rtl.h earlier.
From-SVN: r48410
2001-12-31 04:10:19 +00:00
Graham Stott
713cc17b3c tree.h (STRIP_NOPS): Remove extraneous semicolon.
* tree.h (STRIP_NOPS): Remove extraneous semicolon.
        (STRIP_SIGN_NOPS): Likewise.
        (STRIP_TYPE_NOPS): Likewise.
        (COMPLETE_OR_UNBOUND_ARRAY_TYPE_P): Add Parenthesis around
        macro paramater.

From-SVN: r48409
2001-12-31 04:07:11 +00:00
Graham Stott
1048f2e25d final.c (struct bb_list): Delete.
* final.c (struct bb_list): Delete.
        (struct bb_str): Likewise.

From-SVN: r48408
2001-12-31 03:56:16 +00:00
Graham Stott
e4ed918f65 cfgloop.c (flow_loop_entry_edges_find): Fix typo.
* cfgloop.c (flow_loop_entry_edges_find): Fix typo.
        (flow_loop_exit_edges_find): Likewise.

From-SVN: r48407
2001-12-31 03:54:04 +00:00
Graham Stott
a176492c72 gcse.c (gcse_main): Fix typos.
* gcse.c (gcse_main): Fix typos.
	(alloc_gcse_mem): Likewise.

From-SVN: r48406
2001-12-31 03:51:45 +00:00
Graham Stott
38beb93302 * function.h: Remove undefs for rtx and tree.
From-SVN: r48405
2001-12-31 03:48:46 +00:00
Richard Henderson
2b701ab743 loop.c (check_dbra_loop): Fix last change: examine both has_multiple_exit_targets and exit_count.
* loop.c (check_dbra_loop): Fix last change: examine both
        has_multiple_exit_targets and exit_count.

From-SVN: r48404
2001-12-30 19:09:48 -08:00
Richard Henderson
c81f560b4b integrate.c (copy_rtx_and_substitute): Fix error last change: we need to unconditionally create a new mem.
* integrate.c (copy_rtx_and_substitute): Fix error last change:
        we need to unconditionally create a new mem.

From-SVN: r48403
2001-12-30 10:01:05 -08:00
Hans-Peter Nilsson
e9fef64c58 mmix.md ("*call_real"): Fix typo in comment.
* config/mmix/mmix.md ("*call_real"): Fix typo in comment.
	* config/mmix/mmix.h (EXTRA_CONSTRAINT): Pass MMIX_REG_OK_STRICT
	to mmix_extra_constraint.
	* config/mmix/mmix.c (mmix_secondary_reload_class): Only handle
	non-global register classes.  Mark now unused parameters as such.
	(mmix_extra_constraint, 'U'): Use new parameter strict and call
	calling memory_operand_p or strict_memory_address_p, not
	address_operand.
	* config/mmix/mmix-protos.h (mmix_extra_constraint): Add parameter.

From-SVN: r48402
2001-12-30 16:48:59 +00:00
Kaveh R. Ghazi
f6e67fa57e * unroll.c: Move include files above first use of `const'.
From-SVN: r48400
2001-12-30 15:58:42 +00:00
Jakub Jelinek
6ee3c8e412 cfgrtl.c (try_redirect_by_replacing_jump): Allow redirect_jump to fail if target is EXIT_BLOCK_PTR, die otherwise.
* cfgrtl.c (try_redirect_by_replacing_jump): Allow redirect_jump
	to fail if target is EXIT_BLOCK_PTR, die otherwise.
	(redirect_edge_and_branch): Likewise.
	* cfgcleanup.c (try_forward_edge): Don't force jump redirecting
	if target is EXIT_BLOCK_PTR.

	* gcc.c-torture/compile/20011229-2.c: New test.

From-SVN: r48399
2001-12-30 13:20:43 +01:00
GCC Administrator
285f491adf Daily bump.
From-SVN: r48398
2001-12-30 08:16:40 +00:00
David Edelsohn
bde5864890 gcc.c (init_gcc_spec): Do not link with static libgcc.a if gcc invoked with -shared.
* gcc.c (init_gcc_spec): Do not link with static libgcc.a if
        gcc invoked with -shared.

From-SVN: r48396
2001-12-29 23:11:52 -05:00
Graham Stott
80f33d06a3 i386.c (ix86_asm_dialect): Fix enum type.
* config/i386/i386.c (ix86_asm_dialect): Fix enum type.

        (override_options): Delete abs macro unused.

        (output_pic_addr_const): Use ASM_ATT/ASM_INTEL enumerations
        when testing ASSEMBLER_DIALECT.

        (print_reg): Likewise.
        (print_operand): Likewise.
        (print_operand_address): Likewise.
        (print_operand): abort if ASSEMBLER_DIALECT is unknown dialect.

        * config/i386/i386.h (ix86_asm_dialect): Fix enum type.

        (FIND_BASE_TERM): Fix typo.

From-SVN: r48393
2001-12-30 01:34:44 +00:00
Richard Kenner
0023400b9c Fix typo in last change.
From-SVN: r48392
2001-12-29 20:30:56 -05:00
Graham Stott
6b66732058 i386.c (ix86_asm_dialect): Fix enum type.
* config/i386/i386.c (ix86_asm_dialect): Fix enum type.

        (override_options): Delete abs macro unused.

        (output_pic_addr_const): Use ASM_ATT/ASM_INTEL enumerations
        when testing ASSEMBLER_DIALECT.

        (print_reg): Likewise.
        (print_operand): Likewise.
        (print_operand_address): Likewise.
        (print_operand): abort if ASSEMBLER_DIALECT is unknown dialect.

        * config/i386/i386.h (ix86_asm_dialect): Fix enum type.

        (FIND_BASE_TERM): Fix typo.

From-SVN: r48391
2001-12-30 01:29:25 +00:00
Richard Kenner
c4e59f513b expr.c (store_field): Use adjust_address, not PUT_MODE.
* expr.c (store_field): Use adjust_address, not PUT_MODE.
	(expand_expr, case VIEW_CONVERT_EXPR): Likewise.
	* reload1.c (eliminate_regs, case SUBREG): Likewise, but use
	adjust_address_nv.
	* varasm.c (make_decl_rtl): Likewise.
	* integrate.c (copy_rtx_and_substitute, case MEM): Likewise, but use
	replace_equiv_address_nv.

From-SVN: r48387
2001-12-29 16:35:02 -05:00
Richard Kenner
44e3910ab7 varasm.c (decode_addr_const, [...]): Call output_constant_def instead of looking at TREE_CST_RTL.
* varasm.c (decode_addr_const, case INTEGER_CST): Call
	output_constant_def instead of looking at TREE_CST_RTL.

From-SVN: r48386
2001-12-29 16:17:50 -05:00
Richard Kenner
9413de453d * expr.c (convert_move): If -fforce-mem, force FROM to not be memory.
From-SVN: r48385
2001-12-29 16:05:22 -05:00
Richard Kenner
6790d1bd90 stor-layout.c (layout_decl): Don't misalign field of variable size for packed record.
* stor-layout.c (layout_decl): Don't misalign field of variable size
	for packed record.

From-SVN: r48384
2001-12-29 16:00:51 -05:00
Richard Kenner
f11c304305 dwarf2out.c (compute_section_prefix): Avoid cast warning.
* dwarf2out.c (compute_section_prefix): Avoid cast warning.
	(gen_decl_die): Only check DECL_IGNORED_P on decls.
	(dwarf2out_decl): Check for DECL_IGNORED_P only when needed.

From-SVN: r48382
2001-12-29 15:56:08 -05:00
Jakub Jelinek
545614570c cfglayout.c (insert_intra_before_1): New.
* cfglayout.c (insert_intra_before_1): New.
	(insert_inter_bb_scope_notes): Emit sibling block notes which don't
	span multiple basic blocks.

	* gcc.dg/debug-3.c: New test.
	* gcc.dg/debug-4.c: New test.
	* gcc.dg/debug-5.c: New test.

From-SVN: r48380
2001-12-29 21:01:15 +01:00
Richard Henderson
9d430eb5b1 os_defines.h: Don't define __glibcpp_long_bits.
* config/os/hpux/bits/os_defines.h: Don't define __glibcpp_long_bits.
        * config/os/hpux/bits/cpu_limits.h: New file.
        * configure.target (CPULIMITSH): Use it.

From-SVN: r48379
2001-12-29 11:18:32 -08:00