aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2005-03-08alpha.c (code_for_builtin): Replace special-case builtin codes with ctzdi2, ↵Richard Henderson3-90/+571
clzdi2, popcountdi2. * config/alpha/alpha.c (code_for_builtin): Replace special-case builtin codes with ctzdi2, clzdi2, popcountdi2. (struct alpha_builtin_def): Add is_const. (zero_arg_builtins, one_arg_builtins, two_arg_builtins): Init it. (alpha_v8qi_u, alpha_v8qi_s, alpha_v4hi_u, alpha_v4hi_s): New. (alpha_init_builtins): Init them. Set nothrow and const attributes on builtins. (alpha_fold_builtin_cmpbge, alpha_fold_builtin_zapnot, alpha_fold_builtin_extxx, alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx, alpha_fold_builtin_umulh, alpha_fold_vector_minmax, alpha_fold_builtin_perr, alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb, alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw, alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz, alpha_fold_builtin_ctpop, alpha_fold_builtin): New. (TARGET_FOLD_BUILTIN): New. * config/alpha/alpha.md (UNSPEC_CTTZ): Remove. (UNSPEC_CTLZ, UNSPEC_CTPOP): Remove. (ffsdi2): Use ctz. (cttz, builtin_cttz, builtin_ctlz, builtin_ctpop): Remove. From-SVN: r96098
2005-03-08re PR ada/20035 (failed run-time assertion : Tasking not implemented on this ↵James A. Morrison3-0/+183
configuration on sparc-linux) 2005-03-07 James A. Morrison <phython@gcc.gnu.org> Laurent Guerby <laurent@guerby.net> PR ada/20035 * system-linux-sparc.ads: New. * Makefile.in: Add sparc linux entry. Co-Authored-By: Laurent GUERBY <laurent@guerby.net> From-SVN: r96097
2005-03-08tree-vect-analyze.c (vect_object_analysis): Analyze initial condition of ↵Ira Rosen4-3/+52
access function instead of base. * tree-vect-analyze.c (vect_object_analysis): Analyze initial condition of access function instead of base. From-SVN: r96092
2005-03-07* gcc.dg/tree-ssa/pr18134.c: New test.Jeff Law2-0/+26
From-SVN: r96087
2005-03-07Add Steven to the ChangeLog entry.Jeff Law1-0/+1
From-SVN: r96086
2005-03-0720030821-1.c: Verify that the computed goto was folded away.Jeff Law4-1/+80
* gcc.dg/tree-ssa/20030821-1.c: Verify that the computed goto was folded away. * gcc.dg/tree-ssa/pr18133-1.c: New test. * gcc.dg/tree-ssa/pr18133-2.c: New test. From-SVN: r96085
2005-03-07tree-cfg.c (find_taken_edge_computed_goto): New function.Jeff Law4-6/+114
* tree-cfg.c (find_taken_edge_computed_goto): New function. (find_taken_edge): Call find_taken_edge_computed_goto as appropriate. Allow any gimple invariant rather than just INTEGER_CST for VAL. (cleanup_control_flow): Cleanup a computed goto which has turned into a simple goto. (tree_merge_blocks): If block B has any forced labels, move them to the start of block A. * tree-ssa-dom.c (thread_across_edge): Allow threading across computed gotos as well. * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Handle removal of unnecessary computed gotos too. (lookup_redirection_data): Fix type of INSERT argument. Callers updated. From-SVN: r96084
2005-03-08tree-ssa-phiopt.c (tree_ssa_phiopt, [...]): Remove unused variable i.Kazu Hirata2-2/+3
* tree-ssa-phiopt.c (tree_ssa_phiopt, replace_phi_edge_with_variable): Remove unused variable i. From-SVN: r96083
2005-03-08diagnostic.h: Remove unused prototype debug_output_buffer.Kazu Hirata3-4/+5
* diagnostic.h: Remove unused prototype debug_output_buffer. * modulo-sched.c: Remove unused prototype set_row_column_for_ps. From-SVN: r96080
2005-03-08gimplify.c (gimple_push_bind_expr, [...]): Make them static.Kazu Hirata3-6/+7
* gimplify.c (gimple_push_bind_expr, gimple_pop_bind_expr, unshare_all_trees): Make them static. * tree-gimple.h: Remove the corresponding prototypes. From-SVN: r96079
2005-03-08tree-ssa-phiopt.c: Update copyright.Kazu Hirata2-74/+75
* tree-ssa-phiopt.c: Update copyright. Fix indentations. Remove trailing spaces. From-SVN: r96078
2005-03-08weak1.C: Skip test on hppa*-*-hpux*.John David Anglin5-0/+11
* g++.dg/warn/weak1.C: Skip test on hppa*-*-hpux*. * g++.dg/init/dso_handle1.C, gcc.dg/torture/builtin-noret-1.c, gcc.dg/torture/builtin-noret-2.c: Require weak support. From-SVN: r96077
2005-03-07* tree.h (DECL_IS_BUILTIN): Reverted my patch from earlier today.Per Bothner2-5/+5
From-SVN: r96075
2005-03-07re PR tree-optimization/17671 (PHI-OPT is not smart enough)Andrew Pinski7-152/+245
2005-03-06 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/17671 * tree-ssa-phiopt.c (tree_ssa_phiopt): Rewrite so we base the bbs on the COND_EXPR instead of the PHI_NODEs. (candidate_bb_for_phi_optimization): Remove. (replace_phi_with_stmt): Rename to ... (replace_phi_edge_with_variable): this and change so that we replace the phi argument instead of removing the PHI. (conditional_replacement): Change so we deal with PHI with more than two arguments. (value_replacement): Likewise. (abs_replacement): Likewise. 2005-03-06 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/17671 * gcc.dg/tree-ssa/phi-opt-[1-4].c: New tests. From-SVN: r96067
2005-03-08rs6000-protos.h: Rename output_e500_flip_eq_bit to output_e500_flip_gt_bit.Aldy Hernandez5-27/+51
* config/rs6000/rs6000-protos.h: Rename output_e500_flip_eq_bit to output_e500_flip_gt_bit. * config/rs6000/rs6000.c (print_operand): case D: Print out bit 31 as bit 31. (rs6000_generate_compare): Fix logic to look at the correct bits. (output_e500_flip_eq_bit): Rename to output_e500_flip_gt_bit. Look at GT bit. (rs6000_emit_sCOND): Rename gen_e500_flip_eq_bit to gen_e500_flip_gt_bit. Rename gen_move_from_CR_eq_bit to gen_move_from_CR_gt_bit. * config/rs6000/rs6000.md ("move_from_CR_eq_bit"): Change bit ("move_from_CR_eq_bit"): Rename to move_from_CR_gt_bit. (UNSPEC_MV_CR_EQ): Rename to UNSPEC_MV_CR_GT. * config/rs6000/spe.md ("e500_cr_ior_compare"): New. (E500_CR_IOR_COMPARE): New constant. [[Split portion of a mixed commit.]] From-SVN: r96063.2
2005-03-08Daily bump.GCC Administrator1-1/+1
From-SVN: r96058
2005-03-07class.c (finish_struct_1): Do not warn about non-virtual destructors in Java ↵Mark Mitchell4-1/+22
classes. * class.c (finish_struct_1): Do not warn about non-virtual destructors in Java classes. * g++.dg/warn/Wnvdtor.C: New test. From-SVN: r96054
2005-03-07host-cygwin.c: New file to support precompiled headers on cygwinEarl Chew4-0/+95
2005-03-08 Earl Chew <earl_chew@agilent.com> David Billinghurst <David.Billinghurst@riotinto.com> * config/i386/host-cygwin.c: New file to support precompiled headers on cygwin * config/i386/x-cygwin: Use host-cygwin.c on cygwin host * config.host: Use above files for cygwin host. Co-Authored-By: David Billinghurst <David.Billinghurst@riotinto.com> From-SVN: r96050
2005-03-07fold-const.c (fold_binary_op_with_conditional_arg): Fix typo ordering ops ↵David Edelsohn2-1/+6
from earlier change. * fold-const.c (fold_binary_op_with_conditional_arg): Fix typo ordering ops from earlier change. From-SVN: r96046
2005-03-07Various fixes to allow us to again build if --enable-mapped-location:Per Bothner6-8/+34
* c-decl.c (finish_function): Use SET_EXPR_LOCATION instead of unavailable annotate_with_file_line, if USE_MAPPED_LOCATION. * tree-cfg.c (remove_bb): If USE_MAPPED_LOCATION, change type of local variable loc. Change logic appropriately. * tree-vect-transform.c (vect_finish_stmt_generation): Use EXPR_LOCATION rather than EXPR_LOCUS if USE_MAPPED_LOCATION. * c-parser.c (c_parser_for_statement): Initialize loc variable. * tree.h (DECL_IS_BUILTIN): Temporarily revert definition of DECL_IS_BUILTIN in the USE_MAPPED_LOCATION because of jc1 issues. From-SVN: r96045
2005-03-07[multiple changes]Bryce McKinlay5-191/+37
2005-03-04 Bryce McKinlay <mckinlay@redhat.com> * verify-glue.c (vfy_is_assignable_from): Perform static check using can_widen_reference_to if the C++ ABI is in use. (vfy_get_interface_count, vfy_get_interface): Remove unused functions. * verify-impl.c (debug_print, make_utf8_const, init_type, copy_type, type_isresolved, init_state, set_pc, state_get_pc, _Jv_BytecodeVerifier): Clean up unused and disabled functions. (verify_fail): Report the current PC from the verifier context. (free_state): Remove #if 0 block to enable this function. (free_verifier_context): Call free_state on state_list iterator values before freeing them. * expr.c (pop_type_0): Pop correct type for error message when stack contains a multi-word type. 2005-03-04 Ranjit Mathew <rmathew@hotmail.com> * expr.c (build_java_array_length_access): Remove !flag_new_verifier for known NULL array length access. From-SVN: r96044
2005-03-07gcj.texi (Invoking gcj-dbtool): Document '-f'.Tom Tromey2-2/+10
gcc/java: * gcj.texi (Invoking gcj-dbtool): Document '-f'. libjava: * gnu/gcj/tools/gcj_dbtool/Main.java (main): Recognize '-f'. (usage): Document '-f'. From-SVN: r96041
2005-03-07re PR rtl-optimization/19683 (MIPS wrong-code for 64-bit multiply.)Richard Sandiford4-9/+61
PR rtl-optimization/19683 * reload1.c (choose_reload_regs): Pass the number of bits, not the number of bytes, to smallest_int_for_mode. Fix arguments to REG_CANNOT_CHANGE_MODE_P. From-SVN: r96033
2005-03-07Change ChangeLog file names from a numeric index (ChangeLog.N) to aIan Lance Taylor14-101874/+101847
year based name (ChangeLog-YYYY). This change does not itself get a ChangeLog entry. From-SVN: r96028
2005-03-07reorg.c (relax_delay_slots): Check that the jump is conditional before ↵Eric Botcazou2-0/+6
trying to invert it. * reorg.c (relax_delay_slots): Check that the jump is conditional before trying to invert it. From-SVN: r96027
2005-03-07* loop-unswitch.c (unswitch_loop): Remove local variable src.Kazu Hirata2-2/+3
From-SVN: r96026
2005-03-07cfgrtl.c (rtl_verify_flow_info_1): Remove local variable last_bb_seen.Kazu Hirata2-4/+4
* cfgrtl.c (rtl_verify_flow_info_1): Remove local variable last_bb_seen. From-SVN: r96025
2005-03-07cfghooks.c (verify_flow_info): Remove local variable num_bb_notes.Kazu Hirata2-2/+4
* cfghooks.c (verify_flow_info): Remove local variable num_bb_notes. From-SVN: r96024
2005-03-07tree-ssa-dce.c (control_dependence_map, [...]): Make them static.Kazu Hirata2-2/+5
* tree-ssa-dce.c (control_dependence_map, visited_control_parents): Make them static. From-SVN: r96020
2005-03-07* tree-ssa-pre.c (has_abnormal_preds): Make it static.Kazu Hirata2-1/+3
From-SVN: r96019
2005-03-07stor-layout.c (set_alignment): Remove.Kazu Hirata3-7/+3
* stor-layout.c (set_alignment): Remove. * tree.h: Remove the corresponding prototype. From-SVN: r96018
2005-03-07* tree-ssa-operands.c (check_build_stmt): Remove.Kazu Hirata2-5/+2
From-SVN: r96017
2005-03-07cfgbuild.c (find_sub_basic_blocks): Remove.Kazu Hirata6-50/+13
* cfgbuild.c (find_sub_basic_blocks): Remove. * basic-block.h: Remove the corresponding prototype. * cfgexpand.c, cfgrtl.c: Don't mention find_sub_basic_blocks in comments. * doc/cfg.texi: Don't mention find_sub_basic_blocks. From-SVN: r96016
2005-03-07recog.c (verify_changes): Make it static.Kazu Hirata3-2/+4
* recog.c (verify_changes): Make it static. * recog.h: Remove the corresponding prototype. From-SVN: r96015
2005-03-07reload1.c (reload_startobj, [...]): Make them static.Kazu Hirata2-7/+12
* reload1.c (reload_startobj, reload_firstobj, something_needs_operands_changed, reload_inherited, reload_inheritance_insn, reload_override_in, reload_spill_index): Make them static. From-SVN: r96014
2005-03-07flow.c (regs_live_at_setjmp): Make it static.Kazu Hirata3-5/+4
* flow.c (regs_live_at_setjmp): Make it static. * flow.h: Remove the corresponding prototype. From-SVN: r96013
2005-03-07* calls (stack_arg_under_construction): Make it static.Kazu Hirata2-1/+3
From-SVN: r96012
2005-03-07bb-reorder.c (max_entry_frequency, [...]): Make them static.Kazu Hirata2-2/+7
* bb-reorder.c (max_entry_frequency, max_entry_frequency): Make them static. From-SVN: r96011
2005-03-07* Replace tabs with spaces.Steven G. Kargl22-367/+391
Co-Authored-By: Paul Thomas <prthomas@drfccad.cea.fr> From-SVN: r96009
2005-03-07cygwin1.c (mingw_scan): Use xstrdup in calls to putenv.David Billinghurst2-4/+8
2005-03-07 David Billinghurst <David.Billinghurst@riotinto.com> * config/i386/cygwin1.c(mingw_scan): Use xstrdup in calls to putenv. From-SVN: r96006
2005-03-07hpux.h (LINK_SPEC): Add -z.Joseph Myers3-1/+11
* config/ia64/hpux.h (LINK_SPEC): Add -z. * config/ia64/ia64.c (ia64_function_value): Return a REG not a PARALLEL for an empty structure. From-SVN: r96004
2005-03-07fold-const.c (fold_binary): Unroll the very first "for" loop.Kazu Hirata2-17/+44
* fold-const.c (fold_binary): Unroll the very first "for" loop. From-SVN: r96003
2005-03-07* fold-const.c (fold_binary): Remove handling of RANGE_EXPR.Kazu Hirata2-10/+4
From-SVN: r96002
2005-03-06predicates.md (branch_comparison_operator): Remove redundant match_code test.David Edelsohn2-13/+21
* config/rs6000/predicates.md (branch_comparison_operator): Remove redundant match_code test. (scc_comparison_operator): Swap match_operand and match_code tests. (branch_positive_comparison_operator): Same. (trap_comparison_operator): Use comparison_operator and swap with match_code test. From-SVN: r96000
2005-03-07Daily bump.GCC Administrator1-1/+1
From-SVN: r95998
2005-03-06re PR target/20288 (AVR assignment of a value through a 16 bit pointer ↵Marek Michalkiewicz3-24/+91
generates out of order code) PR target/20288 * config/avr/avr.c (print_operand): Add 'p' and 'r'. (out_movhi_r_mr): Read low byte of volatile MEM first. (out_movhi_mr_r): Write high byte of volatile MEM first. From-SVN: r95993
2005-03-06* es.po: Update.Joseph Myers2-4394/+2960
From-SVN: r95991
2005-03-06* fold-const.c (fold_unary): Use build1 instead of copy_node.Kazu Hirata2-2/+3
From-SVN: r95989
2005-03-06* cse.c (cse_reg_info_table): Make it static.Kazu Hirata2-1/+3
From-SVN: r95988
2005-03-06* cselib.c (reg_values, reg_values_size): Make them static.Kazu Hirata2-2/+6
From-SVN: r95987