aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2005-05-30re PR target/21761 (mainline gcc causing internal compiler error.)Geoffrey Keating4-1/+17
2005-05-29 Geoffrey Keating <geoffk@apple.com> PR target/21761 * config/rs6000/rs6000.md: Remove stray TARGET_32BIT from pattern involving `:P'. Index: testsuite/ChangeLog 2005-05-29 Geoffrey Keating <geoffk@apple.com> PR target/21761 * gcc.c-torture/compile/pr21761.c: New. From-SVN: r100352
2005-05-30badalloc1.C: Make XFAIL only on darwin before darwin8.Geoffrey Keating2-1/+6
* g++.old-deja/g++.eh/badalloc1.C: Make XFAIL only on darwin before darwin8. From-SVN: r100351
2005-05-30* Makefile.in (install-cpp): Depend on installdirs.Geoffrey Keating2-1/+5
From-SVN: r100350
2005-05-30tree-outof-ssa.c (_elim_graph): Change the type of edge_list to VEC(int,heap)*.Kazu Hirata2-16/+29
* tree-outof-ssa.c (_elim_graph): Change the type of edge_list to VEC(int,heap)*. (new_elim_graph, clear_elim_graph, delete_elim_graph, elim_graph_add_edge, elim_graph_remove_succ_edge, FOR_EACH_ELIM_GRAPH_SUCC, FOR_EACH_ELIM_GRAPH_PRED): Use VEC instead of VARRAY. From-SVN: r100349
2005-05-30* raise.c (db): Add ATTRIBUTE_PRINTF_2.Kaveh R. Ghazi2-1/+5
From-SVN: r100346
2005-05-30Credit Janne for the issue patch.Janne Blomqvist1-1/+2
From-SVN: r100343
2005-05-30re PR fortran/20846 (inquire(FILE=..., UNIT=...) not flagged as error)Steven G. Kargl2-0/+15
PR fortran/20846 * gfortran.dg/inquire_8.f90: New test. From-SVN: r100339
2005-05-30re PR fortran/20846 (inquire(FILE=..., UNIT=...) not flagged as error)Janne Blomqvist2-0/+22
fortran/PR20846 * io.c (gfc_match_inquire): Implement constraints on UNIT and FILE usage. From-SVN: r100338
2005-05-30Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r100336.2
2005-05-29cgraphunit.c, [...]: Fix typos and follow spelling conventions in error/dump ↵Kazu Hirata11-12/+19
messages. * cgraphunit.c, ipa-inline.c, loop-iv.c, modulo-sched.c, opts.c, postreload-gcse.c, tree-browser.def, tree-eh.c, tree-ssa-copyrename.c, tree-vect-analyze.c: Fix typos and follow spelling conventions in error/dump messages. From-SVN: r100330
2005-05-29ifcvt.c (noce_emit_move_insn): Construct a SET pattern directly if the RHS ↵Roger Sayle2-1/+11
isn't suitable for calling... * ifcvt.c (noce_emit_move_insn): Construct a SET pattern directly if the RHS isn't suitable for calling emit_move_insn. Co-Authored-By: Richard Henderson <rth@redhat.com> From-SVN: r100329
2005-05-29ChangeLog: add PR numbersFrancois-Xavier Coudert2-0/+3
* ChangeLog: add PR numbers * gfortran.dg/dollar_edit_descriptor-1.f: Add correct dg-options. From-SVN: r100328
2005-05-29tree-ssa-ccp.c (ccp_fold): Return immediately after calling fold_unary and ↵Kazu Hirata2-12/+7
fold_binary. * tree-ssa-ccp.c (ccp_fold): Return immediately after calling fold_unary and fold_binary. From-SVN: r100326
2005-05-29char_pointer_assign.f90: Test character-pointerassignments and pointer ↵Paul Thomas4-0/+140
assignments. 2005-05-29 Paul Thomas <pault@gcc.gnu.org> * gfortran.dg/char_pointer_assign.f90: Test character-pointerassignments and pointer assignments. * gfortran.dg/char_pointer_dummy.f90: Test character-pointer dummy arguments. * gfortran.dg/char_pointer_func.f90: Test character-pointer function returns. * gfortran.dg/char_pointer_dependency.f90: Test character-pointer functions with dependencies. From-SVN: r100325
2005-05-29re PR fortran/16939 (Pointers not passed as subroutine arguments)Paul Thomas2-39/+108
2005-05-29 Paul Thomas <pault@gcc.gnu.org> PR fortran/16939 PR fortran/17192 PR fortran/17193 PR fortran/17202 PR fortran/18689 PR fortran/18890 PR fortran/21297 * fortran/trans-array.c (gfc_conv_resolve_dependencies): Add string length to temp_ss for character pointer array assignments. * fortran/trans-expr.c (gfc_conv_variable): Correct errors in dereferencing of characters and character pointers. * fortran/trans-expr.c (gfc_conv_function_call): Provide string length as return argument for various kinds of handling of return. Return a char[]* temporary for character pointer functions and dereference the temporary upon return. From-SVN: r100324
2005-05-29reg-stack.c (propagate_stack): Always copy the source stack to the destination.Roger Sayle2-76/+62
* reg-stack.c (propagate_stack): Always copy the source stack to the destination. This routine is now only called when this is safe. (better_edge): New function split out from convert_regs_1 to determine which of two edges is better to propagate across. (convert_regs_1): We need only search for a best edge if the stack layout hasn't been defined yet. Use better_edge to help find beste. No longer traverse unnecessary edges. From-SVN: r100323
2005-05-29tree-ssa-alias.c (new_type_alias): New procedure to create a type memory tag ↵Keith Besaw5-18/+74
for a pointer with a may-alias set... 2005-05-29 Keith Besaw <kbesaw@us.ibm.com> * tree-ssa-alias.c (new_type_alias): New procedure to create a type memory tag for a pointer with a may-alias set determined from a variable declaration. * tree-flow.h: export declaration of new_type_alias * tree-optimize.c (init_tree_optimization_passes): document that pass_may_alias cannot be called after pass_vectorize. * tree-vect-transform (vect_create_data_ref_ptr): Call new_type_alias when an type memory tag isn't available for a reference. (vectorizable_store): Use copy_virtual_operands to update virtual defs in place (so that loop_version can be called). Call mark_for_renaming for the virtual defs in case peeling is done and virtual uses outside the loop need to be updated. From-SVN: r100322
2005-05-29* gfortran.dg/output_exponents_1.f90: New test.Francois-Xavier Coudert2-0/+17
From-SVN: r100319
2005-05-29* gfortran.dg/dollar_edit_descriptor-1.f: New test.Francois-Xavier Coudert2-0/+16
From-SVN: r100316
2005-05-29re PR libfortran/20006 ($ format extension doesn't work)Francois-Xavier Coudert2-1/+11
PR libfortran/20006 * io.c (format_item_1): Add check and extension warning for $ edit descriptor. * io/format.c (parse_format_list): Set repeat count of $ format node to 1. * io/transfer.c (read_sf): Add g.seen_dollar to the test concerning advancing I/O. (data_transfer_init): Likewise. (finalize_transfer): Likewise. From-SVN: r100314
2005-05-29re PR tree-optimization/21639 (poisoned ggc memory used for -ftree-vectorize)Dorit Naishlos2-1/+6
PR tree-optimization/21639 * tree-complex.c (pass_lower_vector_s): Remove TODO_ggc_collect. From-SVN: r100313
2005-05-29cal.c, [...]: Fix comment typos.Kazu Hirata9-26/+32
* cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix comment typos. * gnat_rm.texi, gnat_ugn.texi: Fix typos. From-SVN: r100312
2005-05-29Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r100308.2
2005-05-29re PR c++/21340 (error in constructor lookup (can't find constructor with ↵Mark Mitchell4-0/+47
"const void**" argument)) PR c++/21340 * method.c (implicitly_declare_fn): Clear processing_template_decl when generating implicit declaration. PR c++/21340 * g++.dg/init/ctor6.C: New test. From-SVN: r100306
2005-05-28re PR tree-optimization/21562 (Quiet bad codegen (unrolling + tail call ↵Jan Hubicka4-13/+51
interaction)) PR tree-optimization/21562 * cfgexpand.c (construct_init_block): Deal properly with the case of entry edge not pointing to very first basic block. From-SVN: r100305
2005-05-28* basic-block.h: Remove forward declaration of bb_ann_d.Kazu Hirata2-3/+2
From-SVN: r100303
2005-05-28Makefile.in (OBJS-common): Add tree-cfgcleanup.o.Kazu Hirata5-721/+786
* Makefile.in (OBJS-common): Add tree-cfgcleanup.o. * tree-flow.h: Add prototypes for start_recording_case_labels and end_recording_case_labels. * tree-cfg.c (start_recording_case_labels, end_recording_case_labels): Export. (cleanup_tree_cfg_loop, modified_noreturn_calls, cleanup_control_flow, cleanup_control_expr_graph, remove_fallthru_edge, phi_alternatives_equal, tree_forwarder_block_p, has_abnormal_incoming_edge_p, remove_forwarder_block, cleanup_forwarder_blocks, remove_forwarder_block_with_phi, merge_phi_nodes, gate_merge_phi, pass_merge_phi): Move to ... * tree-cfgcleanup.c: ... here. From-SVN: r100302
2005-05-28tree-ssa-ccp.c (ccp_fold): Remove code that produces non-gimple min minvariant.Kazu Hirata2-32/+5
* tree-ssa-ccp.c (ccp_fold): Remove code that produces non-gimple min minvariant. From-SVN: r100301
2005-05-28* gfortran.dg/subnormal_1.f90: new test.Steven G. Kargl2-0/+15
From-SVN: r100300
2005-05-28arith.c (gfc_arith_init_1): Fix off by one problem;Steven G. Kargl2-3/+41
* arith.c (gfc_arith_init_1): Fix off by one problem; (gfc_check_integer_range): Chop extra bits in subnormal numbers. From-SVN: r100299
2005-05-28tree-ssa-threadupdate.c: (create_edge_and_update_destination_phis): Update ↵Jan Hubicka9-19/+151
profile. * tree-ssa-threadupdate.c: (create_edge_and_update_destination_phis): Update profile. * value-prof.c (tree_divmod_fixed_value_transform): Be more verbose in debug output. (tree_mod_subtract): Fix profile updating code. (tree_divmod_values_to_profile): Do not produce useless value profilers for divisions. * tree-prof.exp: Fix comment. * value-prof-1.c: New. * value-prof-2.c: New. * value-prof-3.c: New. * value-prof-4.c: New. From-SVN: r100298
2005-05-28intrinsic.texi: added documentation for BIT_SIZE, BTEST, CHAR, CEILING and CMPLXJerry DeLisle2-107/+328
* intrinsic.texi: added documentation for BIT_SIZE, BTEST, CHAR, CEILING and CMPLX Co-Authored-By: Steven G. Kargl <kargls@comcast.net> From-SVN: r100297
2005-05-28tree-inline.c (cfun_stack): Change the type to VEC(function_p,heap).Kazu Hirata2-11/+12
* tree-inline.c (cfun_stack): Change the type to VEC(function_p,heap). (push_cfun, pop_cfun): Use VEC instead of VARRAY. From-SVN: r100294
2005-05-28tree-ssa-dom.c (vrp_element_p): Define.Kazu Hirata2-22/+44
* tree-ssa-dom.c (vrp_element_p): Define. (vrp_hash_elt): Change the type of records to VEC(vrp_element_p,heap). (vrp_free): New. (tree_ssa_dominator_optimize): Pass vrp_free to htab_create. Update uses of VRP records. (simplify_cond_and_lookup_avail_expr, record_range): Update uses of VRP records. From-SVN: r100293
2005-05-28re PR c++/21614 (wrong code when calling member function of undefined class)Mark Mitchell5-7/+49
PR c++/21614 * typeck.c (get_member_function_from_ptrfunc): Do not attempt conversions to base classes of incomplete types. PR c++/21614 * g++.dg/expr/ptrmem6.C: New test. * g++.dg/expr/ptrmem6a.C: Likewise. From-SVN: r100291
2005-05-28c-decl.c (add_stmt): Add C frontend specific version.Ian Lance Taylor7-45/+72
./: * c-decl.c (add_stmt): Add C frontend specific version. (stmts_are_full_exprs_p): Remove. * c-common.h (STMT_IS_FULL_EXPR_P): Remove. (stmts_are_full_exprs_p): Don't declare. * c-semantics.c (add_stmt): Remove. cp/: * semantics.c (add_stmt): Add C++ frontend specific version. * cp-tree.h (STMT_IS_FULL_EXPR_P): Define. (stmts_are_full_exprs_p): Declare. From-SVN: r100289
2005-05-28Daily bump.GCC Administrator1-1/+1
[[Split portion of a mixed commit.]] From-SVN: r100287.2
2005-05-27cp-tree.def (UNARY_PLUS_EXPR): New C++ unary tree code.Roger Sayle14-16/+65
* cp-tree.def (UNARY_PLUS_EXPR): New C++ unary tree code. * parser.c (cp_parser_unary_expression): Use UNARY_PLUS_EXPR instead of CONVERT_EXPR. (cp_parser_unary_expression): Likewise. * typeck.c (build_unary_op): Likewise. * call.c (add_builtin_candidate, build_new_op): Likewise. * error.c (dump_expr): Likewise. * pt.c (tsubst_copy, tsubst_copy_and_build): Likewise. * decl.c (ambi_op_p, grok_op_properties): Likewise. * dump.c (dump_op): Likewise. * lex.c (init_operators): Likewise. * operators.def ("+"): Likewise. * cp-gimplify.c (cp_gimplify_expr): Handle UNARY_PLUS_EXPR like a conversion, if the result and argument types differ. * tree.c (fold_if_not_in_template): Fold UNARY_PLUS_EXPR much like a NOP_EXPR when !processing_template_decl. * cxx-pretty-print.c (pp_cxx_cast_expression): Prototype. (pp_cxx_unary_expression): Handle new UNARY_PLUS_EXPR tree code. Co-Authored-By: Giovanni Bajo <giovannibajo@gcc.gnu.org> From-SVN: r100285
2005-05-27mips-protos.h (mips_declare_object): Add printf attribute.Kaveh R. Ghazi3-2/+9
* config/mips/mips-protos.h (mips_declare_object): Add printf attribute. * config/mips/mips.c (mips_declare_object_name): Fix format argument. From-SVN: r100284
2005-05-27reg-stack.c (compensate_edge): Remove original prototype.Roger Sayle2-55/+97
* reg-stack.c (compensate_edge): Remove original prototype. (propagate_stack): New function to copy the stack layout at the start of a basic block from the layout at the end of one of its predecessors. (compensate_edge): Assume that both source and destination blocks have already had their stack layouts defined. (compensate_edges): Traverse all non-entry edges in the CFG and call compensate_edge on each in turn. (convert_regs_1): Change return type to void. Call propagate_stack instead of compensate_edge. (convert_regs_2): Change return type to void. Update call to convert_regs_1 to ignore the (now void) return value. (convert_regs): Update calls to convert_regs_2 to ignore the (now void) return value. After all the basic blocks have been processed, call compensate_edges to actually emit new insns. (reg_to_stack): Initialize the aux info for each basic block with FOR_EACH_BB instead of which FOR_EACH_BB_REVERSE. From-SVN: r100283
2005-05-27except.c (can_throw_internal_1, [...]): Add "is_resx" argument.Jan Hubicka4-13/+35
* except.c (can_throw_internal_1, can_throw_external_1): Add "is_resx" argument. (can_throw_external, can_throw_internal): Bring into sync wrt dealing resx. * except.h (can_throw_internal_1, can_throw_external_1): Update prototype. * tree-eh.c (tree_can_throw_internal, tree_can_throw_external): Deal properly with resx. From-SVN: r100282
2005-05-27domwalk.c (walk_dominator_tree, [...]): Use VEC instead of VARRAY.Kazu Hirata4-27/+30
* domwalk.c (walk_dominator_tree, init_walk_dominator_tree, fini_walk_dominator_tree): Use VEC instead of VARRAY. * domwalk.h (dom_walk_data): Change the type of block_data_stack and free_block_data to VEC(void_p,heap)*. * tree-ssa-dse.c (dse_initialize_block_local_data, dse_optimize_stmt, dse_record_phis, dse_finalize_block): Use VEC instead of VARRAY. From-SVN: r100281
2005-05-27basic-block.h (basic_block_def): Add phi_nodes and predictions.Kazu Hirata12-104/+74
* basic-block.h (basic_block_def): Add phi_nodes and predictions. Remove tree_annotations. * predict.c (tree_predicted_by_p, tree_predict_edge, combine_predictions_for_bb): Adjust references to predictions. * tree-cfg.c (init_empty_tree_cfg, create_bb): Don't call create_block_annotation. (create_block_annotation, free_blocks_annotatios, clear_blocks_annotations): Remove. (dump_cfg_stats): Don't print out the memory spent on bb_ann_d. (delete_tree_cfg_annotations): Don't call free_blocks_annotations. * tree-flow-inline.h (bb_ann): Remove. (phi_nodes, set_phi_nodes): Update references to phi_nodes. * tree-flow.h (bb_ann_d): Remove. * tree-if-conv.c (process_phi_nodes): Update a reference to phi_nodes. * tree-phinodes.c (reserve_phi_args_for_new_edge, create_phi_node, remove_phi_node): Likewise. * tree-pretty-print.c (dump_generic_bb_buff): Don't call bb_ann. * tree-ssa-dom.c (threaded_blocks): New. (tree_ssa_dominator_optimize): Initialize, clear, and free threaded_blocks. Update a call to thread_through_all_blocks. (thread_across_edge): Use threaded_blocks instead of setting incoming_edge_threaded. * tree-ssa-threadupdate.c (threaded_through_all_blocks): Take a bitmap of blocks that are threaded through. * tree.h: Move the prototype of threaded_through_blocks to tree-flow.h. From-SVN: r100279
2005-05-27cgraph.c: Include tree-gimple.hJan Hubicka5-181/+174
* cgraph.c: Include tree-gimple.h (cgraph_edge): Rename expr to stmt. (cgraph_create_edge): Likewise. (cgraph_clone_node): Likewise. * cgraph.h (cgraph_node): Use call_stmt instead of call_expr. * cgraphunit.c (record_call_1): Rename to ... (record_reference): ... this one; do not build edges. (cgraph_varpool_analyze_pending_decls): Call record_reference directly. (current_basic_block): Kill. (cgraph_create_edges): Rewrite to work on gimple statements nicely. (verify_cgraph_node): Likewise. * tree-inline.c (copy_body_r): Do not mess up with cgraph edges. (copy_bb): Mess up with cgraph edges here; simplify EH handling. (copy_edges_for_bb): Simplify EH handling. (expand_call_inline): Pass statement to cgraph_edge and cgraph_create_edge. From-SVN: r100276
2005-05-27trans-array.c (gfc_trans_deferred_array): Use build_int_cst to force like ↵Steven G. Kargl2-1/+7
types in comparsion. * trans-array.c (gfc_trans_deferred_array): Use build_int_cst to force like types in comparsion. From-SVN: r100269
2005-05-27[multiple changes]Richard Guenther4-14/+94
2005-05-18 Richard Guenther <rguenth@gcc.gnu.org> * tree-inline.c (copy_body_r): Manually fold *& to deal with ADDR_EXPRs with mismatched types for now. 2005-05-17 Richard Guenther <rguenth@gcc.gnu.org> * gimplify.c (fold_indirect_ref_rhs): New function. (gimplify_modify_expr_rhs): Use it instead of pessimistic fold_indirect_ref. 2005-05-15 Richard Guenther <rguenth@gcc.gnu.org> * fold-const.c (fold_indirect_ref_1): Add type argument; make sure the resulting expression is of this type. (build_fold_indirect_ref, fold_indirect_ref): Adjust callers. From-SVN: r100267
2005-05-27re PR tree-optimization/21658 (CCP does not propagate ADDR_EXPR far enough.)Kazu Hirata4-2/+35
gcc/ PR tree-optimization/21658 * tree-ssa-ccp.c (ccp_fold): Call fold_binary instead of fold_binary_to_constant. Likewise, call fold_unary instead of fold_unary_to_constant. testsuite/ PR tree-optimization/21658 * gcc.dg/tree-ssa/pr21658.c: New. From-SVN: r100266
2005-05-27re PR c++/21455 (type 'X' is not a base type for type 'X' in pointer to ↵Nathan Sidwell4-27/+52
member conversion) cp: PR c++/21455 * typeck.c (get_delta_difference): Cope with incomplete but equal classes. Reorder if. testsuite: PR c++/21455 * g++.dg/inherit/ptrmem3.C: New. From-SVN: r100258
2005-05-27re PR c++/21681 (ICE with nested types in template)Nathan Sidwell4-0/+34
cp: PR c++/21681 * parser.c (cp_parser_late_parsing_for_member): Disable access checking for template functions. testsuite: PR c++/21681 * g++.dg/parse/template16.C: New. From-SVN: r100252
2005-05-27vec.h: Implement integral type vector specialization.Nathan Sidwell6-62/+125
* vec.h: Implement integral type vector specialization. (VEC_T): Define a non-GTY structure. (VEC_T_GTY): Define a GTY structure. (VEC_TA): Rename to ... (VEC_TA_GTY): ... here. (DEF_VEC_I, DEF_VEC_ALLOC_I): New. (DEF_VEC_P, DEF_VEC_ALLOC_P): Adjust. (DEF_VEC_FUNC_P, DEF_VEC_ALLOC_FUNC_P): New, broken out of DEF_VEC_P and DEF_VEC_ALLOC_P. (DEF_VEC_O, DEF_VEC_ALLOC_O): Adjust. (DEF_VEC_FUNC_O, DEF_VEC_ALLOC_FUNC_O): New, broken out of DEF_VEC_O and DEF_VEC_ALLOC_O. * global.c: Use DEF_VEC_I, DEF_VEC_ALLOC_I. * lambda-code.c: Likewise. * tree-into-ssa.c: Likewise. * tree-ssa-live.c: Likewise. From-SVN: r100251