aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2002-01-02c-common.h (genrtl_expr_stmt_value): Declare.Alexandre Oliva8-41/+124
* c-common.h (genrtl_expr_stmt_value): Declare. * c-semantics.c (genrtl_goto_stmt): Redirect to... (genrtl_goto_stmt_value): ... this new function. Pass new argument down to expand_expr_stmt_value, taking TREE_ADDRESSABLE into account. * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a STMT_EXPR as addressable, i.e., one whose result we want. * expr.c (expand_expr): Don't save expression statement value of labeled_blocks or loop_exprs. * stmt.c (expand_expr_stmt): Redirect to... (expand_expr_stmt_value): ... this new function. Use new argument to tell whether to save expression value. (expand_end_stmt_expr): Reset last_expr_type and last_expr_value if we don't have either. * tree-inline.c (declare_return_variable): Mark its use statement as addressable. * tree.h: Document new use of TREE_ADDRESSABLE. (expand_expr_stmt_value): Declare. From-SVN: r48456
2002-01-01configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of ↵Joseph Myers7-14/+24
${srcdir}/ginclude/ to every... * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of ${srcdir}/ginclude/ to every entry in extra_headers. * configure: Regenerate. * ginclude/math-3300.h: Rename to config/m68k/math-3300.h. * ginclude/math-68881.h: Rename to config/m68k/math-68881.h. * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h. * ginclude/proto.h: Rename to config/convex/proto.h. From-SVN: r48454
2002-01-01Fix corrupted hunkRichard Kenner1-395/+0
From-SVN: r48453
2002-01-01attribs.c (handle_vector_size_attribute): Use host_integerp and ↵Richard Kenner5-23/+37
tree_int_cst; remove warnings. * attribs.c (handle_vector_size_attribute): Use host_integerp and tree_int_cst; remove warnings. * caller-save.c (insert_restore): Add cast to get rid of warning. (insert_save): Likewise. * emit-rtl.c (adjust_address_1, offset_address): Likewise. * regmove.c (find_matches): Add temporary var to kill a warning. From-SVN: r48452
2002-01-01vms.h (DWARF2_UNWIND_INFO, [...]): Define.Douglas B Rupp5-7/+518
* config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX, LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define. * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o (vms-dwarf2eh.o): Add Makefile rule. * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o. * config/alpha/vms-dwarf2eh.asm: New file. From-SVN: r48451
2002-01-01* gcc.c (delete_if_ordinary): Delete all versions.Douglas B Rupp2-2/+8
From-SVN: r48450
2002-01-01Update copyright years listHans-Peter Nilsson3-3/+3
From-SVN: r48449
2002-01-01mmix.md: Update FIXME to not mention define_constants.Hans-Peter Nilsson4-41/+81
* config/mmix/mmix.md: Update FIXME to not mention define_constants. (MMIX_rJ_REGNUM): New define_constants constant. ("movqi", "movsi", "movdi", "*movdicc_real_foldable", "*movdicc_real"): Adjust contraints formatting. ("*bCC_foldable"): Add %+ for P in output format and delete FIXME for branch prediction. ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in output template. ("*call_real", "*call_value_real", "nonlocal_goto_receiver", "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of number. Delete related FIXMEs. * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change from number to MMIX_rJ_REGNUM. (TARGET_MASK_BRANCH_PREDICT): New. (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT. (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols value. Add -mbranch-predict and -mno-branch-predict. (TARGET_VERSION): Drop date. (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number. * config/mmix/mmix.c (mmix_encode_section_info): Correct condition for finding out global symbols. (mmix_asm_output_labelref): Revert condition for global symbol. (mmix_print_operand): <case '+'>: Emit P for a likely branch. (mmix_print_operand_punct_valid_p): A '+' is valid. From-SVN: r48448
2002-01-01* gcc.dg/mmix-1.c: New test.Hans-Peter Nilsson2-0/+46
From-SVN: r48447
2002-01-01Daily bump.GCC Administrator2-2/+2
From-SVN: r48440
2002-01-01parse.y (dump_java_tree): New function.Tom Tromey3-2/+37
* 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
2001-12-31* config/ia64/ia64.c (mark_reg_gr_used_mask): Mind HARD_REGNO_NREGS.Richard Henderson2-1/+9
From-SVN: r48437
2001-12-31regrename.c (build_def_use): Don't rename asm operands that were originally ↵Richard Henderson5-22/+160
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-31vms.h (HAS_INIT_SECTION, [...]): Remove.Douglas B Rupp2-5/+7
* config/alpha/vms.h (HAS_INIT_SECTION, NEED_ATEXIT): Remove. (NAME__MAIN, SYMBOL__MAIN): Define. From-SVN: r48434
2001-12-31alpha.c (reg_no_subreg_operand): Reject all non-registers.Richard Henderson2-19/+11
* config/alpha/alpha.c (reg_no_subreg_operand): Reject all non-registers. From-SVN: r48433
2001-12-31* final.c (alter_subreg): Assign REGNO after changing the rtx code.Richard Henderson1-1/+2
From-SVN: r48432
2001-12-31cfgrtl.c (delete_insn): Check for not NOTE_INSN_DELETED_LABEL before ↵Richard Henderson1-1/+9
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-31eb130.C: hash_set is now in namespace __gnu_cxxPaolo Carlini2-1/+6
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-31Daily bump.GCC Administrator2-2/+2
From-SVN: r48419
2001-12-31* halfpic.h: Remove foward defs of tree_node and rtx_def.Graham Stott2-5/+4
From-SVN: r48418
2001-12-31* toplev.h: Remove forward def of tree_node, rtx_def.Graham Stott2-5/+4
From-SVN: r48417
2001-12-31except.h: Remove forward def of tree_node, rtx_def and define of tree, rtx.Graham Stott1-18/+0
* except.h: Remove forward def of tree_node, rtx_def and define of tree, rtx. Also remove undefs. From-SVN: r48416
2001-12-31basic-block.h: Remove forward def of tree_node and define of tree.Graham Stott1-5/+0
* basic-block.h: Remove forward def of tree_node and define of tree. From-SVN: r48415
2001-12-31except.h: Remove forward def of tree_node, rtx_def and define of tree, rtx.Graham Stott1-0/+10
* 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-31Remove extranwous changelog header.Graham Stott1-2/+0
From-SVN: r48413
2001-12-30cfglayout.c (scope_def, [...]): Remove.Richard Henderson8-690/+189
* 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-31* c-lex.c: Include tree.h before expr.hGraham Stott2-2/+6
From-SVN: r48411
2001-12-31* c-typeck.c: Include rtl.h earlier.Graham Stott2-1/+5
From-SVN: r48410
2001-12-31tree.h (STRIP_NOPS): Remove extraneous semicolon.Graham Stott2-4/+12
* 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-31final.c (struct bb_list): Delete.Graham Stott2-20/+5
* final.c (struct bb_list): Delete. (struct bb_str): Likewise. From-SVN: r48408
2001-12-31cfgloop.c (flow_loop_entry_edges_find): Fix typo.Graham Stott2-2/+7
* cfgloop.c (flow_loop_entry_edges_find): Fix typo. (flow_loop_exit_edges_find): Likewise. From-SVN: r48407
2001-12-31gcse.c (gcse_main): Fix typos.Graham Stott2-8/+13
* gcse.c (gcse_main): Fix typos. (alloc_gcse_mem): Likewise. From-SVN: r48406
2001-12-31* function.h: Remove undefs for rtx and tree.Graham Stott2-8/+4
From-SVN: r48405
2001-12-30loop.c (check_dbra_loop): Fix last change: examine both ↵Richard Henderson2-1/+8
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-30integrate.c (copy_rtx_and_substitute): Fix error last change: we need to ↵Richard Henderson2-3/+8
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-30mmix.md ("*call_real"): Fix typo in comment.Hans-Peter Nilsson5-21/+28
* 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* unroll.c: Move include files above first use of `const'.Kaveh R. Ghazi2-17/+21
From-SVN: r48400
2001-12-30cfgrtl.c (try_redirect_by_replacing_jump): Allow redirect_jump to fail if ↵Jakub Jelinek5-6/+54
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-30Daily bump.GCC Administrator2-2/+2
From-SVN: r48398
2001-12-29gcc.c (init_gcc_spec): Do not link with static libgcc.a if gcc invoked with ↵David Edelsohn2-1/+6
-shared. * gcc.c (init_gcc_spec): Do not link with static libgcc.a if gcc invoked with -shared. From-SVN: r48396
2001-12-30i386.c (ix86_asm_dialect): Fix enum type.Graham Stott2-24/+25
* 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-29Fix typo in last change.Richard Kenner1-1/+1
From-SVN: r48392
2001-12-30i386.c (ix86_asm_dialect): Fix enum type.Graham Stott1-0/+18
* 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-29expr.c (store_field): Use adjust_address, not PUT_MODE.Richard Kenner5-22/+17
* 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-29varasm.c (decode_addr_const, [...]): Call output_constant_def instead of ↵Richard Kenner2-1/+6
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* expr.c (convert_move): If -fforce-mem, force FROM to not be memory.Richard Kenner2-0/+5
From-SVN: r48385
2001-12-29stor-layout.c (layout_decl): Don't misalign field of variable size for ↵Richard Kenner2-1/+12
packed record. * stor-layout.c (layout_decl): Don't misalign field of variable size for packed record. From-SVN: r48384
2001-12-29dwarf2out.c (compute_section_prefix): Avoid cast warning.Richard Kenner2-10/+16
* 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-29cfglayout.c (insert_intra_before_1): New.Jakub Jelinek6-12/+178
* 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* g++.dg/eh/loop1.C: New.Richard Henderson2-0/+34
From-SVN: r48378