aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2005-03-05config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for *-*-hpux11.[1-9]*, ↵Joseph Myers2-1/+6
not just for *-*-hpux11.11. * config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for *-*-hpux11.[1-9]*, not just for *-*-hpux11.11. From-SVN: r95918
2005-03-05gcc.exp (gcc_target_compile): Put braces around ↵Matthew Sachs4-3/+10
additional_flags=$TOOL_OPTIONS... * gcc.exp (gcc_target_compile): Put braces around additional_flags=$TOOL_OPTIONS; allows for whitespace in $TOOL_OPTIONS. * objc.exp (objc_target_compile): Likewise. * treelang.exp (treelang_target_compile): Likewise. From-SVN: r95912
2005-03-05Daily bump.GCC Administrator1-1/+1
From-SVN: r95909
2005-03-04basic-block.h (rediscover_loops_after_threading): Declare.Jeff Law5-7/+317
* basic-block.h (rediscover_loops_after_threading): Declare. * tree-ssa-dom.c: Include cfgloop.h. (tree_ssa_dominator_optimize): Discover loops and some basic properties. Remove forwarder blocks recreated by loop header canonicalization. Also mark backedges in the CFG. * tree-ssa-threadupdate.c: Include cfgloop.h (rediscover_loops_after_threading): Define. (struct local_info): New field, JUMP_THREADED. (prune_undesirable_thread_requests): New function. (redirect_edges): Clear EDGE_ABNORMAL. If edges were threaded then record that fact for the callers of redirct_edges. (thread_block): If BB has incoming backedges, then call prune_undesirable_thraed_requests. Note when we are going to have to rediscover loop information. Return a boolean indicating if any jumps were threaded. (thread_through_all_blocks): Bubble up boolean indicating if any jumps were threaded. * Makefile.in (tree-ssa-dom.o): Depend on cfgloop.h (tree-ssa-threadupdate.o): Similarly. From-SVN: r95903
2005-03-04re PR fortran/19673 (pointer function with RESULT specified returns pointer ↵Tobias Schlüter4-2/+33
to "ptr" rather than "*ptr") fortran/ PR fortran/19673 * trans-expr.c (gfc_conv_function_call): Correctly dereference argument from a pointer function also if it has a result clause. testsuite/ PR fortran/19673 * gfortran.dg/func_result_1.f90: New test. From-SVN: r95901
2005-03-04fold-const.c (fold_ternary): Unroll the "for" loop to extract operands.Kazu Hirata2-59/+52
* fold-const.c (fold_ternary): Unroll the "for" loop to extract operands. From-SVN: r95895
2005-03-04unwind-dw2-fde-glibc.c (struct unw_eh_callback_data.check_cache): New field.Andrew Haley2-7/+138
2005-03-04 Andrew Haley <aph@redhat.com> * unwind-dw2-fde-glibc.c (struct unw_eh_callback_data.check_cache): New field. (frame_hdr_cache): New. (_Unwind_IteratePhdrCallback): Add ext_dl_phdr_info. Cache frame header info. From-SVN: r95894
2005-03-04* expr.c (gfc_copy_shape_excluding): Change && to ||.Steven G. Kargl2-1/+5
From-SVN: r95891
2005-03-04re PR java/18362 (internal compiler error: in size_binop, at fold-const.c:1598)Andrew Haley2-8/+22
2005-03-04 Andrew Haley <aph@redhat.com> PR java/18362 * class.c (set_method_index): Don't set method_index if it is NULL_TREE. (layout_class_method): Don't complain about "non-static method foo overrides static method" in the case of indirect dispatch. From-SVN: r95888
2005-03-04* rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)Richard Sandiford10-38/+219
(print_c_condition): Declare. * read-rtl.c (ptr_loc): New structure. (ptr_locs, ptr_loc_obstack, joined_conditions) (joined_conditions_obstack): New variables. (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc) (get_rtx_ptr_loc, copy_rtx_ptr_loc, print_rtx_ptr_loc) (join_c_conditions, print_c_condition): New functions. (apply_macro_to_string): Associate the new string with the same source location as the old one. (add_condition_to_string): Use join_c_conditions. (read_string): Use set_rtx_ptr_loc to record a filename and line number for the string. (read_rtx): Initialize the new variables above. * genattrtab.c (write_test_expr, write_attr_value): Use print_c_condition. * genconditions.c (write_header): Don't define MAYBE_EVAL. Move its comment above the GCC_VERSION check. (write_one_condition): Use print_rtx_ptr_loc and print_c_condition. Inline the definition of MAYBE_EVAL. * genemit.c (gen_expand, gen_split): Use print_rtx_ptr_loc. * genoutput.c (process_template): Likewise. * genpreds.c (write_predicate_subfunction): Likewise. (write_predicate_expr): Use print_c_condition. * genrecog.c (write_cond): Likewise. * gensupport.c (process_rtx): Use join_c_conditions to join the conditions of a define_insn_and_split. Record a source location for the string after the "&&". (alter_test_for_insn): Use join_c_conditions. From-SVN: r95883
2005-03-03revert: re PR tree-optimization/15784 (fold misses binary optimization)Andrew Pinski2-15/+8
2005-03-04 Andrew Pinski <pinskia@physics.uc.edu> Revert for now: 2005-03-03 James A. Morrison <phython@gcc.gnu.org> PR tree-optimization/15784 * fold-const.c (fold): Fold ~A + 1 to -1. Fold -A - 1 and -1 - A to ~A. From-SVN: r95880
2005-03-04* gcc.misc-tests/options.exp: New test.Ben Elliston2-0/+52
From-SVN: r95879
2005-03-04gcc.c (option_map): Add --coverage.Ben Elliston4-3/+22
* gcc.c (option_map): Add --coverage. (LINK_COMMAND_SPEC): Pass -lgcov for `coverage'. (cc1_options): Pass -fprofile-arcs -ftest-coverage for `coverage'. * config/darwin.h: Pass -lgcov for `coverage'. * doc/invoke.texi (Debugging Options): Document --coverage. From-SVN: r95878
2005-03-04* gcse.c (bypass_block): Use find_edge wherever possible.Kazu Hirata2-20/+10
From-SVN: r95873
2005-03-04re PR debug/20253 (Macro debug info broken due to lexer change)Daniel Berlin4-4/+33
2005-03-03 Daniel Berlin <dberlin@dbrelin.org> Fix PR debug/20253 * c-opts.c (c_common_parse_file): Call start_source_file and end_source_file at the approriate times. * dwarf2out.c (dwarf2out_finish): Don't auto-end the main file, it will be done for us now. From-SVN: r95872
2005-03-04fold-const.c (fold_ternary): New.Kazu Hirata2-185/+247
* fold-const.c (fold_ternary): New. (fold): Call fold_ternary on ternary expressions. Remove handling of ternary expressions. From-SVN: r95871
2005-03-04re PR tree-optimization/15784 (fold misses binary optimization)James A. Morrison4-0/+37
2005-03-03 James A. Morrison <phython@gcc.gnu.org> PR tree-optimization/15784 * fold-const.c (fold): Fold ~A + 1 to -1. Fold -A - 1 and -1 - A to ~A. From-SVN: r95870
2005-03-04pr17133.c: New.Geoffrey Keating3-0/+42
* gcc.c-torture/execute/pr17133.c: New. * gcc.c-torture/compile/20050303-1.c: New. From-SVN: r95865
2005-03-03predicates.md (branch_comparison_operator): Convert from C block to ↵David Edelsohn2-17/+13
conditional format. * config/rs6000/predicates.md (branch_comparison_operator): Convert from C block to conditional format. From-SVN: r95864
2005-03-04be.po, [...]: Update.Joseph Myers12-43130/+44188
* be.po, ca.po, da.po, de.po, el.po, es.po, fr.po, ja.po, nl.po, sv.po, tr.po: Update. From-SVN: r95860
2005-03-04Daily bump.GCC Administrator1-1/+1
From-SVN: r95858
2005-03-04trans-intrinsic.c (gfc_get_symbol_for_expr): Fix comment typo, clarify comment.Tobias Schlüter2-2/+7
* trans-intrinsic.c (gfc_get_symbol_for_expr): Fix comment typo, clarify comment. From-SVN: r95852
2005-03-03assert4.c: Fix for cygwinDavid Billinghurst2-2/+6
2005-03-04 David Billinghurst <David.Billinghurst@riotinto.com> * gcc.dg/cpp/assert4.c: Fix for cygwin From-SVN: r95849
2005-03-03tree-dfa.c (add_referenced_var): Don't walk initializer of external and ↵Jan Hubicka2-1/+13
non-constant public variables. * tree-dfa.c (add_referenced_var): Don't walk initializer of external and non-constant public variables. From-SVN: r95844
2005-03-03fold-const.c (fold_unary): Avoid directly using the original expression t as ↵Kazu Hirata2-31/+28
much as possible. * fold-const.c (fold_unary): Avoid directly using the original expression t as much as possible. From-SVN: r95837
2005-03-03* fold-const.c (fold): Remove handling of unary expressions.Kazu Hirata2-398/+4
From-SVN: r95836
2005-03-03tree-phinodes.c (remove_phi_node): Clean up by factoring out calls to ↵Kazu Hirata2-24/+18
release_ssa_name and release_phi_node. * tree-phinodes.c (remove_phi_node): Clean up by factoring out calls to release_ssa_name and release_phi_node. From-SVN: r95835
2005-03-03cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of EDGE_I.Kazu Hirata2-1/+4
* cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of EDGE_I. From-SVN: r95834
2005-03-03tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code with LABEL_EXPR.Kazu Hirata2-8/+9
* tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code with LABEL_EXPR. From-SVN: r95831
2005-03-03jump.c (redirect_exp_1): If nlabel is a NULL pointer create a RETURN rtx...Roger Sayle2-1/+10
* jump.c (redirect_exp_1): If nlabel is a NULL pointer create a RETURN rtx, and not a LABEL_REF containing a NULL pointer. Co-Authored-By: Andrew Pinski <pinskia@physics.uc.edu> From-SVN: r95830
2005-03-03Fix my last entryHans-Peter Nilsson1-1/+2
From-SVN: r95825
2005-03-03Describe special registers SRP and MOF as allocatable registers.Hans-Peter Nilsson4-83/+293
* config/cris/cris.c (cris_md_asm_clobbers): New function. (TARGET_MD_ASM_CLOBBERS): Define to cris_md_asm_clobbers. (cris_conditional_register_usage): Enable CRIS_MOF_REGNUM if TARGET_HAS_MUL_INSNS. (cris_print_operand) <case 'd'>: New case. <case REG>: Allow CRIS_MOF_REGNUM and CRIS_SRP_REGNUM. * config/cris/cris.h (CRIS_PC_REGNUM, CRIS_SRP_REGNUM): Don't define. (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS) (REG_ALLOC_ORDER): Update for MOF. (enum reg_class): New members MOF_REGS, GENERAL_REGS and SPECIAL_REGS. (GENERAL_REGS): No longer a define of ALL_REGS. (REGNO_REG_CLASS, REG_CLASS_CONTENTS, REG_CLASS_NAMES) (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER): Adjust accordingly. (CRIS_SPECIAL_REGS_CONTENTS): New macro. (REG_CLASS_FROM_LETTER): Allocate 'h' and 'x'. (SECONDARY_RELOAD_CLASS): Define. (STACK_POINTER_REGNUM): Define as CRIS_SP_REGNUM. (FRAME_POINTER_REGNUM): Define as CRIS_FP_REGNUM. (ARG_POINTER_REGNUM): Define as CRIS_AP_REGNUM. (STATIC_CHAIN_REGNUM): Define as CRIS_STATIC_CHAIN_REGNUM. (REGISTER_MOVE_COST): Define. (PIC_OFFSET_TABLE_REGNUM): Define in terms of CRIS_GOT_REGNUM. * config/cris/cris.md (CRIS_GOT_REGNUM, CRIS_STATIC_CHAIN_REGNUM) (CRIS_FP_REGNUM, CRIS_SP_REGNUM, CRIS_SRP_REGNUM, CRIS_AP_REGNUM) (CRIS_MOF_REGNUM): New define_constants. ("*movsi_internal", "movhi", "movqi", "movsf"): Add alternatives for special registers. ("reload_inhi", "reload_outhi", "reload_inqi", ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3") ("mulsidi3", "umulsidi3", "smulsi3_highpart", "umulsi3_highpart"): Adjust for MOF being properly described as a register. (indir_to_reg_split): Name this split. Conditionalize on the destination register being a general register. (movei): Conditionalize on on operands 0 and 1 having the same register class. From-SVN: r95823
2005-03-03re PR target/20277 (-mcpu=power4 vs. -maltivec)Alan Modra2-3/+8
PR target/20277 * config/rs6000/rs6000.c (rs6000_override_options): Don't allow -mcpu to override any other explicitly given flags. From-SVN: r95820
2005-03-03jcf-io.c (caching_stat): Use __extension__ to avoid pedantic warning.Kaveh R. Ghazi3-8/+11
* jcf-io.c (caching_stat): Use __extension__ to avoid pedantic warning. * Make-lang.in: Don't elide warnings in jcf-io.c. From-SVN: r95819
2005-03-03Daily bump.GCC Administrator1-1/+1
From-SVN: r95817
2005-03-02recog.c (verify_changes, [...]): New functions, broken out of ↵J"orn Rennecke6-113/+93
apply_change_group. * recog.c (verify_changes, confirm_change_group): New functions, broken out of apply_change_group. (apply_change_group): Use them. * recog.h (verify_change, confirm_change_group): Declare. * rtl.h (redirect_jump_2): Declare. * jump.c (redirect_exp, invert_exp): Delete. (invert_exp_1): Take second parameter. Return value. Changed caller. (redirect_jump_2): New function, broken out of redirect_jump. (redirect_jump): Use redirect_jump_1 and redirect_jump_2. (invert_jump): Use invert_jump_1 and redirect_jump_2. * ifcvt.c (dead_or_predicable): Use redirect_jump_2. From-SVN: r95813
2005-03-02varasm.c (named_section): Use xstrdup rather than doing it by hand.Geoffrey Keating2-7/+5
* varasm.c (named_section): Use xstrdup rather than doing it by hand. From-SVN: r95812
2005-03-02* config/darwin8.h (LIB_SPEC): Switch -lmx and -lSystem.Geoffrey Keating2-4/+10
From-SVN: r95805
2005-03-02Undo PR tree-optimization/18815 fix.Devang Patel2-13/+6
From-SVN: r95803
2005-03-02name-lookup.c (push_overloaded_decl): Don't error if the new decl matches ↵Alexandre Oliva5-2/+101
the old one. gcc/cp/ChangeLog: * name-lookup.c (push_overloaded_decl): Don't error if the new decl matches the old one. * decl.c (redeclaration_error_message): Likewise. gcc/testsuite/ChangeLog: * g++.dg/overload/using2.C: New. From-SVN: r95798
2005-03-02re PR tree-optimization/18815 (Tree if-conversion screws up cfg very badly)Devang Patel2-2/+19
PR tree-optimization/18815 * tree-if-conv.c (combine_blocks): Adjust loop header edges for loops with zero exit edges. From-SVN: r95796
2005-03-02tree-ssa-dom.c (tree_ssa_dominator_optimize): Call free_dominance_info only ↵Kazu Hirata2-1/+5
when needed. * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call free_dominance_info only when needed. From-SVN: r95791
2005-03-02cfg.c (connect_src, [...]): New.Kazu Hirata2-64/+76
* cfg.c (connect_src, connect_dest, disconnect_src, disconnct_dest): New. (unchecked_make_edge, remove_edge, redirect_edge_succ, redirect_edge_pred): Use the new functions. From-SVN: r95790
2005-03-02re PR target/20276 (64bit PPC target uses __adddi3)David Edelsohn2-2/+8
PR target/20276 * config/rs6000/predicates.md (reg_or_cint64_operand): Fix typo. (reg_or_sub_cint64_operand): Same. From-SVN: r95789
2005-03-02tree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of CFG_ALTERED in ↵Jeff Law2-2/+7
the main DOM iteration loop. * tree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of CFG_ALTERED in the main DOM iteration loop. From-SVN: r95788
2005-03-02re PR c++/19916 (Segmentation fault in ↵Mark Mitchell4-55/+76
__static_initialization_and_destruction_0) PR c++/19916 * varasm.c (initializer_constant_valid_p): Allow conversions between OFFSET_TYPEs. Tidy. PR c++/19916 * g++.dg/init/ptrmem2.C: New test. From-SVN: r95787
2005-03-02cris.md ("return"): Remove epilogue delay list sanity check.Hans-Peter Nilsson2-5/+5
* config/cris/cris.md ("return"): Remove epilogue delay list sanity check. From-SVN: r95786
2005-03-02linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT) for Thumb.Daniel Jacobowitz3-4/+13
* config/arm/linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT) for Thumb. * config/arm/netbsd-elf.h (ARM_FUNCTION_PROFILER): Likewise. From-SVN: r95785
2005-03-02fold-const.c (fold_unary): New.Kazu Hirata2-0/+438
* fold-const.c (fold_unary): New. (fold): Call fold_unary on unary expressions. From-SVN: r95783
2005-03-02PR middle-end/18029 and PR middle-end/18030Kazu Hirata2-0/+39
PR middle-end/18029 and PR middle-end/18030 * expr.c (optimize_bitfield_assignment_op): Add a special case to handle BIT_IOR_EXPR and BIT_XOR_EXPR. From-SVN: r95782