summaryrefslogtreecommitdiff
path: root/gcc
Commit message (Collapse)AuthorAgeFilesLines
* PR c++/27371jason2006-09-077-7/+85
| | | | | | | | | | | | * tree-inline.c (copy_result_decl_to_var): New fn. (declare_return_variable): Use it. Call declare_inline_vars here. (expand_call_inline): Not here. * cp/cvt.c (convert_to_void): Strip useless TARGET_EXPR. * cp/cp-tree.h (TARGET_EXPR_IMPLICIT_P): New macro. * cp/tree.c (build_cplus_new): Set it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116737 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/28903mmitchel2006-09-075-12/+98
| | | | | | | | | | | * pt.c (tsubst): Use fold_non_dependent_expr to fold array dimensions. PR c++/28886 * pt.c (unify): Avoid unnecessary calls to fold_build2 for array dimensions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116736 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2006-09-071-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116734 138bc75d-0d04-0410-961f-82ee72b054a4
* * doc/contrib.texi: Update my entry.dnovillo2006-09-062-2/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116727 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/26696jason2006-09-066-6/+30
| | | | | | | | | | | * cvt.c (convert_to_void): Replace a subexpression with no side effects with void_zero_node. * tree.c (is_overloaded_fn): Look through COMPONENT_REF. (get_first_fn): Ditto. * decl.c (grokdeclarator): No need to look through COMPONENT_REF. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116724 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-09-06 Richard Guenther <rguenther@suse.de>rguenth2006-09-062-19/+4
| | | | | | | * gcc.dg/pr27226.c: Remove testcase again. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116722 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/frv/frv.h (EXTRA_MEMORY_CONSTRAINT): Define.nickc2006-09-062-0/+7
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116719 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove extra blank line.pinskia2006-09-061-1/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116718 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-09-05 Andrew Pinski <pinskia@physics.uc.edu>pinskia2006-09-069-29/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR tree-opt/28937 * tree-flow.h (tree_ssa_unswitch_loops): Return unsigned int. (canonicalize_induction_variables): Likewise. (tree_unroll_loops_completely): Likewise. (tree_ssa_prefetch_arrays): Likewise. (remove_empty_loops): Likewise. * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Return TODO_cleanup_cfg instead of directly calling cleanup_tree_cfg_loop. * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise. (tree_unroll_loops_completely): Likewise. (remove_empty_loops): Likewise. * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise. * tree-ssa-loop.c (tree_ssa_loop_unswitch): Use the return value of tree_ssa_unswitch_loops. (tree_ssa_loop_ivcanon): Use the return value of canonicalize_induction_variables. (tree_ssa_empty_loop): Use the return value of remove_empty_loops. (tree_complete_unroll): Use the return value of tree_unroll_loops_completely. (tree_ssa_loop_prefetch): Use the return value of tree_ssa_prefetch_arrays. * passes.c (execute_todo): Before Cleanup CFG, set updating_used_alone and after cleanup CFG, call recalculate_used_alone. 2006-09-05 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/28937 * g++.dg/opt/unroll2.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116717 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-09-05 Andrew Pinski <pinskia@physics.uc.edu>pinskia2006-09-064-7/+49
| | | | | | | | | | | | | | PR tree-opt/28952 * tree-vect-transform.c (vectorizable_condition): Move the check for the type after the check for simple condition. 2006-09-05 Andrew Pinski <pinskia@physics.uc.edu> PR tree-opt/28952 * gcc.dg/vect/pr28952.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116716 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/26571jason2006-09-063-0/+11
| | | | | | | | * parser.c (cp_parser_diagnose_invalid_type_name): Handle the case where the name is a type used incorrectly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116715 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/26671jason2006-09-063-0/+29
| | | | | | | | * typeck.c (maybe_warn_about_returning_address_of_local): Look through COMPONENT_REF and ARRAY_REF. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116714 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-09-06 Paul Thomas <pault@gcc.gnu.org>pault2006-09-061-4/+0
| | | | | | | Remove non-standard format from ChangeLog. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116711 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/26102jason2006-09-061-0/+10
| | | | | | | | | | | | * name-lookup.c (do_class_using_decl): Try to find the base even if bases_dependent_p. * pt.c (type_dependent_expression_p): A USING_DECL is dependent. PR c++/19809 * pt.c (tsubst_friend_function): Set DECL_INITIAL before pushdecl. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116710 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/26102jason2006-09-064-7/+45
| | | | | | | | | | | | * name-lookup.c (do_class_using_decl): Try to find the base even if bases_dependent_p. * pt.c (type_dependent_expression_p): A USING_DECL is dependent. PR c++/19809 * pt.c (tsubst_friend_function): Set DECL_INITIAL before pushdecl. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116709 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2006-09-061-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116707 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/28764kkojima2006-09-052-33/+19
| | | | | | | | | | | * mode-switching.c (optimize_mode_switching): Make the destination block of an abnormal edge have no anticipatable mode. Don't insert mode switching code at the end of the source block of an abnormal edge. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116703 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-09-05 Paolo Bonzini <bonzini@gnu.org>bonzini2006-09-052-48/+58
| | | | | | | | | | | | | | PR rtl-optimization/26847 * simplify-rtx.c (struct simplify_plus_minus_op_data): Remove ix. (simplify_plus_minus_op_data_cmp): For REGs, break ties on the regno. (simplify_plus_minus): Count n_constants while filling ops. Replace qsort with insertion sort. Before going through the array to simplify pairs, sort it. Delay early exit until after the first sort, exiting only if no swaps occurred. Simplify pairs in reversed order, without special-casing the first iteration. Pack ops after simplifying pairs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116701 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/avr/avr.c (avr_mcu_types): Add support for at90pwm1 device.denisc2006-09-054-1/+12
| | | | | | | | | | * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.). * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.). (avr_rtx_costs): Mark 'outer_code' argument with ATTRIBUTE_UNUSED. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116699 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-09-05 Richard Guenther <rguenther@suse.de>rguenth2006-09-054-1/+30
| | | | | | | | | | | PR tree-optimization/28900 * tree-if-conv.c (find_phi_replacement_condition): Gimplify compound conditional before creating COND_EXPR condition. * gcc.dg/torture/pr28900.c: New testcase git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116697 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-09-05 Richard Guenther <rguenther@suse.de>rguenth2006-09-054-6/+32
| | | | | | | | | | | PR tree-optimization/28905 * tree-vrp.c (fix_equivalence_set): Manually implement !value_ranges_intersect_p to also handle symbolic ranges. * gcc.c-torture/compile/pr28905.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116696 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-09-05 Richard Guenther <rguenther@suse.de>rguenth2006-09-054-0/+38
| | | | | | | | | | | PR middle-end/28935 * tree-ssa-ccp.c (fold_stmt_r): Make sure to fold the condition of a COND_EXPR. * gcc.dg/pr28935.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116695 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.c-torture/execute/20060905-1.c: New test.ebotcazou2006-09-052-0/+39
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116692 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-09-05 Paul Thomas <pault@gcc.gnu.org>pault2006-09-059-135/+292
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR fortran/28908 REGRESSION FIX * gfortran.h : Restore the gfc_dt_list structure and reference to it in gfc_namespace. * resolve.c (resolve_fl_derived): Restore the building of the list of derived types for the current namespace. Modify the restored code so that a check is made to see if the symbol is already in the list. (resolve_fntype): Make sure that the specification block version of the derived type is used for a module function that returns that type. * symbol.c (gfc_free_dt_list): Restore. (gfc_free_namespace): Restore call to previous. * trans-types.c (copy_dt_decls_ifequal): Restore. (gfc_get_derived_type): Restore all the paraphenalia for association of derived types, including calls to previous. Modify the restored code such that all derived types are built if their symbols are found in the parent namespace; not just non-module types. Add backend_decls to like derived types in sibling namespaces, as well as that of the derived type. 2006-09-05 Paul Thomas <pault@gcc.gnu.org> PR fortran/28908 * gfortran.dg/used_types_7.f90: New test. * gfortran.dg/used_types_8.f90: New test. * gfortran.dg/used_types_9.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116690 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2006-09-051-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116688 138bc75d-0d04-0410-961f-82ee72b054a4
* PR rtl-optimization/27616ebotcazou2006-09-044-8/+109
| | | | | | | | | | | | | | | | | | * cse.c (table_size): New static variable. (new_basic_block): Initialize it to 0. (remove_from_table): Decrement it. (insert): Increment it. (fold_rtx_mem_1): New function, renamed from fold_rtx_mem. (fold_rtx_mem): Enforce a cap on the recursion depth. Call fold_rtx_mem_1 if under the cap. (fold_rtx) <RTX_COMM_ARITH>: In the associative case, delay a little the lookup of the equivalent expression and test for equality of the first operand of the equivalent expression before in turn looking up an equivalent constant for the second operand. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116683 138bc75d-0d04-0410-961f-82ee72b054a4
* Remove leading TAB.ebotcazou2006-09-041-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116681 138bc75d-0d04-0410-961f-82ee72b054a4
* cp/nathan2006-09-045-173/+96
| | | | | | | | | | | | PR 23287 Revert my 2006-09-01 patch. * parser.c: Reverted. * pt.c: Reverted. testsuite/ PR c++/23287 Revert my 2006-09-01 patch * g++.dg/parse/dtor12.C: Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116679 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2006-09-041-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116675 138bc75d-0d04-0410-961f-82ee72b054a4
* * sv.po: Update.jsm282006-09-032-2253/+1738
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116668 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2006-09-031-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116666 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-09-02 Lee Millward <lee.millward@codesourcery.com>lmillward2006-09-029-5/+76
| | | | | | | | | | | | | | | | | | | | | | PR c++/27670 PR c++/27493 PR c++/27494 PR c++/27397 * parser.c (cp_parser_template_parameter_list): Add invalid template parameters to the parameter list as error_mark_node. * g++.dg/template/operator9.C: New test. * g++.dg/template/operator7.C: New test. * g++.dg/template/operator8.C: New test. * g++.dg/template/crash57.C: New test. * g++.dg/template/typedef4.C: Adjust error markers. * g++.dg/template/typedef5.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116661 138bc75d-0d04-0410-961f-82ee72b054a4
* Revert this change:geoffk2006-09-022-23/+34
| | | | | | | | | | 2006-03-17 Alexandre Oliva <aoliva@redhat.com> * dwarf2out.c (dwarf2out_stack_adjust): Always track the stack pointer, instead of assuming it is possible to derive the correct args size from a call insn. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116659 138bc75d-0d04-0410-961f-82ee72b054a4
* PR middle-end/27567jakub2006-09-022-58/+269
| | | | | | | | | | | | | | | | | | * builtins.c (fold_builtin_memcpy, fold_builtin_memmove): Remove. (fold_builtin_mempcpy): Rename to... (fold_builtin_memory_op): ... this. Optimize one element copy into an assignment. (fold_builtin_memset, fold_builtin_bzero, fold_builtin_bcopy): New functions. (expand_builtin_strcpy, expand_builtin_strncpy): Handle COMPOUND_EXPR. (expand_builtin_memcpy, expand_builtin_mempcpy, expand_builtin_memmove): Likewise. Use fold_builtin_memory_op. (fold_builtin_1): Handle BUILT_IN_MEMSET, BUILT_IN_BZERO and BUILT_IN_BCOPY. Use fold_builtin_memory_op for BUILT_IN_MEM{CPY,PCPY,MOVE}. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116656 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/28878jakub2006-09-024-1/+19
| | | | | | | | | | * except.c (build_throw): Only set current_function_returns_abnormally if cfun is not NULL. * g++.dg/parse/crash33.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116655 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/26917jakub2006-09-022-11/+24
| | | | | | | | | | | | * repo.c (repo_file): Remove. (open_repo_file, reopen_repo_file_for_write): Return fopened FILE * instead of setting global repo_file variable. (init_repo): Adjust caller. (finish_repo): Likewise. Return instead of goto out before reopen_repo_file_for_write has been called. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116654 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/m32c/cond.md (cbranch<mode>4): Defer splitting until after reload.dj2006-09-025-22/+233
| | | | | | | | | | | | | | | | | | | | | | | | | | | (stzx_16): Likewise. ("stzx_24_<mode>"): Likewise. ("stzx_reversed_<mode>"): Likewise, and make mode-specific. ("cmp<mode>_op"): New. (cmp<mode>): Change to expander; just save operands. (b<code>_op): New. (b<code>): Change to expander, emit compare here. (s<code>_op): Change to use split and expander. (s<code>_24_op): Likewise. (s<code>_<mode>): New. (s<code>_<mode>_24): New. (movqicc_<code>_<mode): New. (movhicc_<code>_<mode>): New. (s<code>): New. (s<code>_24): New. * config/m32c/m32c.c (compare_op0, compare_op1): New. (m32c_pend_compare): New. (m32c_unpend_compare): New. (m32c_expand_scc): New. (m32c_expand_movcc): Emit the compare also. * config/m32c/predicates.md (mra_nopp_operand): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116653 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2006-09-021-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116651 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-09-01 J"orn Rennecke <joern.rennecke@st.com>rguenth2006-09-015-9/+95
| | | | | | | | | | | | | | | | Richard Guenther <rguenther@suse.de> Adam Nemet <anemet@caviumnetworks.com> PR middle-end/27226 * builtins.c (get_pointer_alignment): Handle more forms of base addresses that can be used to derive more precise information about alignment. * gcc.target/mips/memcpy-1.c: New testcase. * gcc.dg/pr27226.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116641 138bc75d-0d04-0410-961f-82ee72b054a4
* cp/nathan2006-09-016-4/+90
| | | | | | | | | | | | | | PR c++/28705 * semantics.c (finish_call_expr): Add assert. * name-lookup.c (lookup_arg_dependent): Check we found an overload or an object. testsuite/ PR c++/28705 * g++.dg/lookup/koenig5.C: New. * g++.dg/template/crash56.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116638 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/28899jason2006-09-013-4/+33
| | | | | | | | | | * gimplify.c (gimplify_modify_expr_rhs) [BIND_EXPR]: Handle want_value. * gimplify.c (voidify_wrapper_expr): Handle null type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116637 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-09-01 Josh Conner <jconner@apple.com>jconner2006-09-014-0/+98
| | | | | | | | | | | PR c++/25505 gcc.dg/nrv3.c: New test. gcc.dg/nrv4.c: New test. gcc.dg/nrv5.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116634 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-09-01 Josh Conner <jconner@apple.com>jconner2006-09-012-25/+43
| | | | | | | | | | PR c++/25505 * tree-nrv.c (dest_safe_for_nrv_p): New function. (execute_return_slot_opt): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116633 138bc75d-0d04-0410-961f-82ee72b054a4
* cp/nathan2006-09-015-42/+147
| | | | | | | | | | | | | | | | | | PR c++/23287 * parser.c (cp_parser_id_expression): Add member_p argument. Update all callers. (cp_parser_unqualified_id): Likewise. Lookup a destructor name in the object's scope, if valid. (cp_parser_global_scope_opt): Add object_scope_valid_p. Update callers. (cp_parser_postfix_dot_deref_expression): Set object_scope. * pt.c (tsubst_copy_and_build): Lookup dependent dtor name here. testsuite/ PR c++/23287 * g++.dg/parse/dtor12.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116623 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2006-09-011-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116617 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-08-31 Josh Conner <jconner@apple.com>jconner2006-08-312-1/+9
| | | | | | | | | | PR c++/25505 * tree-gimple.c (is_gimple_mem_rhs): Recognize functions returning aggregates. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116613 138bc75d-0d04-0410-961f-82ee72b054a4
* PR tree-optimization/28839rakdver2006-08-314-0/+36
| | | | | | | | | | | * tree-into-ssa.c (prune_unused_phi_nodes): Take into account kills in blocks in that phi arguments appear. * gcc.dg/pr28839.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116605 138bc75d-0d04-0410-961f-82ee72b054a4
* PR other/22313sayle2006-08-312-2/+23
| | | | | | | | | | | | | * dwarf2out.c (add_fde_cfi): Use a set_loc if the current label is NULL, otherwise use an advance_loc4 to adjust relative to the current label. (output_cfi) <DW_CFA_set_loc>: Update the current label. (dwarf2out_switch_text_section): Reset the current label to avoid using advance_loc4 over section boundaries. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116604 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-08-31 Andreas Krebbel <krebbel1@de.ibm.com>krebbel2006-08-314-2/+38
| | | | | | | | | | | | | | | PR target/24367 * config/s390/s390.md ("movsi", "movdi" expander): Accept rtxes like r12 + SYMBOLIC_CONST. 2006-08-31 Andreas Krebbel <krebbel1@de.ibm.com> PR target/24367 * gcc.dg/pr24367.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116599 138bc75d-0d04-0410-961f-82ee72b054a4
* Daily bump.gccadmin2006-08-311-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116597 138bc75d-0d04-0410-961f-82ee72b054a4