aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2005-06-04intrinsic.texi: Add documentation for command_argument_count...Jerry DeLisle2-38/+399
2005-06-03 Jerry DeLisle <jvdelisle@verizon.net> * fortran/intrinsic.texi: Add documentation for command_argument_count, conjg, dconjg, count, cpu_time, cshift, date_and_time, dble, dfloat. From-SVN: r100575
2005-06-04* g++.dg/opt/crossjump1.C: Gate -fPIC usage on target fpic.Hans-Peter Nilsson2-1/+6
From-SVN: r100574
2005-06-04re PR c/21873 (infinite warning loop on bad array initializer)Joseph Myers4-12/+79
PR c/21873 * c-typeck.c (push_init_level): Don't pop levels without braces if implicit == 1. testsuite: * gcc.dg/init-excess-1.c: New test. From-SVN: r100571
2005-06-04Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r100569.2
2005-06-04c-parser.c (c_parser_parms_declarator): Don't use chainon().Geoffrey Keating2-6/+10
* c-parser.c (c_parser_parms_declarator): Don't use chainon(). (c_parser_expr_list): Don't use chainon(). From-SVN: r100567
2005-06-03tree-data-ref.c (compute_self_dependence): New function.Sebastian Pop2-1/+44
2005-06-03 Sebastian Pop <pop@cri.ensmp.fr> * tree-data-ref.c (compute_self_dependence): New function. (compute_all_dependences): Use it. From-SVN: r100565
2005-06-03re PR c++/21853 (constness of pointer to data member ignored)Mark Mitchell4-10/+36
PR c++/21853 * typeck.c (casts_away_constness_r): Do not drop cv-qualifiers on the pointed-to type for a pointer-to-member. PR c++/21853 * g++.dg/expr/static_cast6.C: New test. From-SVN: r100560
2005-06-03darwin.h (LINK_SPEC): Pass -syslibroot to linker when -isysroot passed.Geoffrey Keating2-0/+6
* config/darwin.h (LINK_SPEC): Pass -syslibroot to linker when -isysroot passed. From-SVN: r100559
2005-06-03re PR c/21879 (Memory management problem)Joseph Myers2-1/+11
PR c/21879 * c-decl.c (start_function): Restore label_context_stack_se and label_context_stack_vm if returning with an error. From-SVN: r100557
2005-06-03configure.ac: Check declaration for asprintf, needed by libiberty.h.Gabriel Dos Reis4-2/+17
* configure.ac: Check declaration for asprintf, needed by libiberty.h. * configure: Regenerate. * config.in: Likewise. From-SVN: r100555
2005-06-03tree-ssa-dom.c (record_edge_info): Use last_basic_block to allocate info array.Diego Novillo5-5/+69
* tree-ssa-dom.c (record_edge_info): Use last_basic_block to allocate info array. * tree-vrp.c (extract_range_from_unary_expr): Set resulting range to varying in cast expressions that change TYPE_PRECISION. testsuite/ChangeLog * gcc.dg/tree-ssa/vrp14.c: New test. From-SVN: r100554
2005-06-03mips.opt: Add RejectNegative to divide-breaks and divide-traps.Eric Christopher2-2/+7
2005-06-03 Eric Christopher <echristo@redhat.com> * config/mips/mips.opt: Add RejectNegative to divide-breaks and divide-traps. From-SVN: r100552
2005-06-03basic-block.h (remove_predictions_associated_with_edge): Declare.Jan Hubicka4-0/+26
* basic-block.h (remove_predictions_associated_with_edge): Declare. * cfg.c (remove_edge): Use it. * predict.c (remove_predictions_associated_with_edge): New function. From-SVN: r100551
2005-06-03rs6000.c (rs6000_conditional_register_usage): Clear call_realy_used_regs[r2] ↵Pat Haugen2-1/+11
when ABI_AIX. 2005-06-03 Pat Haugen <pthaugen@us.ibm.com> * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Clear call_realy_used_regs[r2] when ABI_AIX. From-SVN: r100549
2005-06-03re PR c++/21336 (Internal compiler error when using custom new operators)Mark Mitchell6-43/+76
PR c++/21336 * cp-tree.h (grok_op_properties): Remove friendp parameter. * decl.c (grokfndecl): Adjust call. (grok_op_properties): Determine the class of which the function is a member by looking at its DECL_CONTEXT, not current_class_type. * pt.c (tsubst_decl): Adjust call to grok_op_properties. PR c++/21336 * g++.dg/template/new2.C: New test. From-SVN: r100541
2005-06-03ppc-vector-memcpy.c (foo): Use non-zero values for all entries in initializer.Josh Conner2-1/+6
* gcc.dg/ppc-vector-memcpy.c (foo): Use non-zero values for all entries in initializer. From-SVN: r100540
2005-06-03re PR middle-end/21858 (ICE in compare_values, at tree-vrp.c:301)Richard Guenther4-4/+34
2005-06-03 Richard Guenther <rguenth@gcc.gnu.org> PR middle-end/21858 * fold-const.c (fold_binary): Fix type mismatches in folding of comparisons. * gcc.dg/pr21858.c: New testcase. From-SVN: r100539
2005-06-03cgraph.c, [...]: Fix comment typos.Kazu Hirata4-7/+13
* cgraph.c, cgraphunit.c, config/mips/mips.c: Fix comment typos. From-SVN: r100538
2005-06-03* collect2.c (maybe_unlink): Use unlink_if_ordinary.Joseph Myers2-1/+5
From-SVN: r100537
2005-06-03Revert my previous patch.Bernd Schmidt2-8/+15
From-SVN: r100536
2005-06-03re PR testsuite/21292 (gen-vect-11b.c and gen-vect-11c.c fail)Paolo Bonzini11-9/+43
2005-06-03 Paolo Bonzini <bonzini@gnu.org> PR tree-optimization/21292 * lib/target-supports.exp (check_effective_target_vect_cmdline_needed): New. * gcc.dg/tree-ssa/gen-vect-11.c, gcc.dg/tree-ssa/gen-vect-11a.c, gcc.dg/tree-ssa/gen-vect-11b.c, gcc.dg/tree-ssa/gen-vect-11c.c, gcc.dg/tree-ssa/gen-vect-2.c, gcc.dg/tree-ssa/gen-vect-25.c, gcc.dg/tree-ssa/gen-vect-26.c, gcc.dg/tree-ssa/gen-vect-28.c, gcc.dg/tree-ssa/gen-vect-32.c: Require it. From-SVN: r100535
2005-06-03Fix typo in ASM_SEPCNick Clifton2-1/+6
From-SVN: r100534
2005-06-03re PR java/21722 (gcj miscompiles accesses to static final vars with ↵Tom Tromey2-11/+17
indirect dispatch) PR java/21722: * class.c (build_static_field_ref): Don't fold constant fields if current class is from a .class file and we're using indirect dispatch. From-SVN: r100533
2005-06-03re PR tree-optimization/21849 (wrong use of sbitmap in tree-ssa-copy.c)Kazu Hirata2-0/+6
PR tree-optimization/21849 * tree-ssa-copy.c (dump_copy_of): Call sbitmap_zero. From-SVN: r100531
2005-06-02* gcc.dg/sync-2.c: Use -march=i486 for i386.Richard Henderson2-0/+6
From-SVN: r100530
2005-06-02Makefile.in (tree-vect-generic.o): New.Richard Henderson6-493/+573
* Makefile.in (tree-vect-generic.o): New. (OBJS-common, GTFILES, s-gtype): Add it. * tree-complex.c (build_replicated_const, vector_inner_type, vector_last_type, vector_last_nunits, build_word_mode_vector_type, elem_op_func, tree_vec_extract, do_unop, do_binop, do_plus_minus, do_negate, expand_vector_piecewise, expand_vector_parallel, expand_vector_addition, expand_vector_operation, type_for_widest_vector_mode, expand_vector_operations_1, gate_expand_vector_operations, expand_vector_operations, pass_lower_vector_ssa): Move to tree-vect-generic.c. (tree_lower_complex): Rename from tree_lower_operations. (pass_lower_complex): Rename from pass_pre_expand. * tree-vect-generic.c: New file. * tree-pass.h (pass_lower_complex): Rename from pass_pre_expand. (pass_lower_vector): New. * tree-optimize.c (init_tree_optimization_passes): Update to match. From-SVN: r100529
2005-06-02modulo-sched.c (doloop_register_get): Protect against doloop_end not defined.Richard Henderson2-1/+10
* modulo-sched.c (doloop_register_get): Protect against doloop_end not defined. From-SVN: r100528
2005-06-03Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r100525.2
2005-06-02sh.c (general_movsrc_operand, [...]): Move to ...Kazu Hirata4-829/+906
* config/sh/sh.c (general_movsrc_operand, general_movdst_operand, arith_reg_operand, arith_reg_dest, logical_reg_operand, int_gpr_dest, fp_arith_reg_operand, fp_arith_reg_dest, arith_operand, arith_reg_or_0_operand, xor_operand, cmp_operand, logical_operand, and_operand, fpscr_operand, fpul_operand, symbol_ref_operand, commutative_float_operator, noncommutative_float_operator, unary_float_operator, binary_float_operator, binary_logical_operator, equality_comparison_operator, greater_comparison_operator, less_comparison_operator, shift_operator, logical_operator, target_reg_operand, target_operand, mextr_bit_offset, extend_reg_operand, trunc_hi_operand, extend_reg_or_0_operand, minuend_operand, general_extend_operand, ua_address_operand, cache_address_operand, inqhi_operand, sh_rep_vec, sh_1el_vec, sh_const_vec, ua_offset, sh_register_operand, cmpsi_operand, shift_count_reg_operand, shift_count_operand, unaligned_load_operand): Move to ... * config/sh/predicates.md: ... here. * config/sh/sh.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove. From-SVN: r100523
2005-06-02trans.c (gnat_gimplify_expr): Call recompute_tree_invarant_for_addr_expr when...Andrew Pinski2-0/+7
2005-06-03 Andrew Pinski <pinskia@physics.uc.edu> * trans.c (gnat_gimplify_expr): Call recompute_tree_invarant_for_addr_expr when we change the operand of the ADDR_EXPR. From-SVN: r100522
2005-06-02tree.c (build_common_builtin_nodes): Fix the return type on __builtin_memcmp.Andrew Pinski2-1/+6
2005-06-03 Andrew Pinski <pinskia@physics.uc.edu> * tree.c (build_common_builtin_nodes): Fix the return type on __builtin_memcmp. From-SVN: r100520
2005-06-02tree-ssa-loop-ivopts.c (build_addr_strip_iref): Remove.Richard Guenther2-22/+10
2005-06-03 Richard Guenther <rguenth@gcc.gnu.org> * tree-ssa-loop-ivopts.c (build_addr_strip_iref): Remove. (find_interesting_uses_address): Use build_fold_addr_expr instead. (strip_offset_1): Likewise. (tree_to_aff_combination): Likewise. From-SVN: r100519
2005-06-02convert.c (convert_to_pointer): Avoid recursion if no conversion is needed.DJ Delorie2-10/+11
* convert.c (convert_to_pointer): Avoid recursion if no conversion is needed. From-SVN: r100518
2005-06-02tree-chrec.c (chrec_fold_plus_1): Ensure we build binary operations with the ↵Richard Guenther3-10/+17
correct types. 2005-06-02 Richard Guenther <rguenth@gcc.gnu.org> * tree-chrec.c (chrec_fold_plus_1): Ensure we build binary operations with the correct types. * tree-ssa-loo-ivopts.c (idx_find_step): Use sizetype for all computation. From-SVN: r100517
2005-06-02tree-vrp.c, [...]: Fix comment typos.Kazu Hirata6-13/+20
* tree-vrp.c, config/arm/arm.md, config/arm/arm1020e.md, config/rs6000/rs6000.md: Fix comment typos. Follow splling conventions. * doc/install.texi: Fix a typo. From-SVN: r100516
2005-06-02Index: ChangeLogGeoffrey Keating1-0/+23
2005-05-31 Geoffrey Keating <geoffk@geoffk.org> * config/rs6000/rs6000.md (sync_boolcshort_internal): New. * config/rs6000/rs6000.c (rs6000_emit_sync): Shift count must be complemented for big-endian. Mask for AND must be rotated, not shifted. Handle short operands with NOT on the memory operation. Index: testsuite/ChangeLog 2005-05-31 Geoffrey Keating <geoffk@geoffk.org> * lib/target-supports.exp (check_effective_target_sync_char_short): New. * gcc.dg/sync-2.c: New. From-SVN: r100515
2005-06-02cgraphunit.c (cgraph_function_and_variable_visibility): Extern inline ↵Jan Hubicka2-0/+6
functions are not local. * cgraphunit.c (cgraph_function_and_variable_visibility): Extern inline functions are not local. From-SVN: r100514
2005-06-02gimplify.c (gimplify_ctx): Change the type of case_labels to VEC from VARRAY.Kazu Hirata2-8/+17
* gimplify.c (gimplify_ctx): Change the type of case_labels to VEC from VARRAY. (gimplify_switch_expr, gimplify_case_label_expr): Adjust uses of case_labels. From-SVN: r100513
2005-06-02c-typeck.c (build_indirect_ref): Build INDIRECT_REF with correct type.Richard Guenther4-4/+17
2005-06-02 Richard Guenther <rguenth@gcc.gnu.org> * c-typeck.c (build_indirect_ref): Build INDIRECT_REF with correct type. * gcc.dg/wtypequal.c: New testcase. From-SVN: r100512
2005-06-02* method.c (synthesize_method): Add addtional arg to warning call.Nathan Sidwell2-1/+3
From-SVN: r100511
2005-06-02s390.c (s390_add_execute): Do not handle out-of-pool execute templates.Ulrich Weigand2-38/+36
* config/s390/s390.c (s390_add_execute): Do not handle out-of-pool execute templates. (s390_dump_pool): Likewise. (s390_mainpool_start, s390_mainpool_finish): Likewise. (s390_chunkify_start): Likewise. (s390_dump_execute): Remove. (s390_reorg): Handle out-of-pool execute templates. From-SVN: r100510
2005-06-02optabs.c: (expand_bool_compare_and_swap): Emit barrier after unconditional jump.Adrian Straetling2-0/+6
2005-06-02 Adrian Straetling <straetling@de.ibm.com> * optabs.c: (expand_bool_compare_and_swap): Emit barrier after unconditional jump. From-SVN: r100508
2005-06-02cgraph.c (cgraph_node): Maintain master clones.Jan Hubicka5-9/+164
* cgraph.c (cgraph_node): Maintain master clones. (cgraph_remove_node): Likewise. (availability_names): New static variable. (dump_cgraph_node): Dump availability. (dump_cgraph_varpool_node): Likewise. (cgraph_is_master_clone, cgraph_master_clone, cgraph_function_body_availability, cgraph_variable_initializer_availability): New functions. * cgraph.h (availability): New enum. (struct cgraph_node): Add master_clone. (cgraph_is_master_clone, cgraph_master_clone, cgraph_function_body_availability, cgraph_variable_initializer_availability): Declare. * cgraphunit.c (cgraph_expand_function): Setcgraph_function_flags_ready. (cgraph_remove_unreachable_nodes): Remove unreachable nodes. * ipa-inline.c (cgraph_decide_inlining): Do not call cgraph_remove_unreachable_nodes. From-SVN: r100507
2005-06-02cgraphunit.c (cgraph_function_and_variable_visibility): Fix typo in previous ↵Jan Hubicka2-1/+6
patch. * cgraphunit.c (cgraph_function_and_variable_visibility): Fix typo in previous patch. From-SVN: r100506
2005-06-02re PR tree-optimization/21582 ((optimisation) VRP pass could/should use ↵Diego Novillo4-1/+94
non-null function attribute) PR 21582 * tree-vrp.c (nonnull_arg_p): New. (get_value_range): Call it. testsuite/ChangeLog PR 21582 * gcc.dg/tree-ssa/pr21582.c: New test. From-SVN: r100505
2005-06-02mips.h (processor_type): Remove PROCESSOR_DEFAULT, add PROCESSOR_MAX.Eric Christopher4-186/+384
2005-06-02 Eric Christopher <echristo@redhat.com> * config/mips/mips.h (processor_type): Remove PROCESSOR_DEFAULT, add PROCESSOR_MAX. (mips_rtx_cost_data): New datatype. (MEMORY_MOVE_COST): Use data from structure. (BRANCH_COST): Ditto. (LOGICAL_OP_NON_SHORT_CIRCUIT): Define to zero. * config/mips/mips.md (cpu): Rework for processor_type changes. * config/mips/mips.c (mips_cost): New variable. (DEFAULT_COSTS): Define. (mips_rtx_cost_data): New. (mips_rtx_costs): Use. Minor formatting changes. Use COSTS_N_INSNS for NEG cost. Add support for FLOAT, UNSIGNED_FLOAT, FIX, FLOAT_EXTEND, FLOAT_TRUNCATE, and SQRT. (override_options): Set cost data. (mips_register_move_cost): Formatting changes. (bdesc_arrays): Use PROCESSOR_MAX. (mips_init_builtins): Ditto. From-SVN: r100503
2005-06-02re PR c++/21280 (#pragma interface, templates, and "inline function used but ↵Nathan Sidwell14-31/+107
never defined") cp: PR c++/21280 * Make-lang.in (method.o): Add diagnostic.h * decl.c (start_preparsed_function): Use decl's location for file info. * decl2.c (cp_finish_file): Set input_location before synthesizing a function. (mark_used): When deferring a synthesized function, save current location. Do not set function's location when actually synthesizing it. * method.c: #include diagnostic.h. (synthesize_method): Set the functions source location. Show needed location if errors are emitted. testsuite: PR c++/21280 * g++.dg/opt/interface2.h: New. * g++.dg/opt/interface2.C: New. * g++.dg/init/ctor4.C: Adjust error lines. * g++.old-deja/g++.bob/inherit2.C: Likewise. * g++.old-deja/g++.bugs/900205_04.C: Likewise. * g++.old-deja/g++.jason/opeq3.C: Likewise. * g++.old-deja/g++.pt/assign1.C: Likewise. * g++.old-deja/g++.pt/crash20.C: Likewise. From-SVN: r100500
2005-06-02re PR tree-optimization/21765 (-free-vrp is undocumented.)Diego Novillo2-0/+21
PR 21765 * doc/invoke.texi: Document -ftree-vrp. From-SVN: r100495
2005-06-02re PR tree-optimization/21734 (ICE: -ftree-vectorize, segfault)Dorit Nuzman5-3/+61
PR tree-optimization/21734 * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop): Use the phi_result when current_def is not available. (slpeel_update_phi_nodes_for_guard1): Don't fail if current_def is not available. From-SVN: r100494
2005-06-02rs6000.c (rs6000_insn_valid_within_doloop): New.David Edelsohn2-0/+26
* config/rs6000/rs6000.c (rs6000_insn_valid_within_doloop): New. (TARGET_INSN_VALID_WITHIN_DOLOOP): Define. From-SVN: r100493