- 01 Sep, 2010 3 commits
-
-
config.gcc (i[34567]86-*-freebsd*, [...]): Add i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file. gcc/ChangeLog: * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file. * libgcc-std.ver (GCC_4.6.0): Define version. libgcc/ChangeLog: * config.host (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add i386/t-freebsd to tmake_file. * config/i386/t-freebsd: New file. * config/i386/libgcc-bsd.ver: New file. From-SVN: r163718
Uros Bizjak committed -
From-SVN: r163717
Uros Bizjak committed -
From-SVN: r163712
GCC Administrator committed
-
- 31 Aug, 2010 21 commits
-
-
PR preprocessor/45457 * expr.c (parse_defined): Call pfile->cb.user_builtin_macro hook if needed. * directives.c (do_ifdef, do_ifndef): Likewise. * c-c++-common/cpp/pr45457.c: New test. From-SVN: r163705
Jakub Jelinek committed -
tree-nested.c (convert_all_function_calls): Iterate until after the sum of static chains in the nest doesn't change. * tree-nested.c (convert_all_function_calls): Iterate until after the sum of static chains in the nest doesn't change. From-SVN: r163698
Eric Botcazou committed -
* config/m32c/m32c.c (classes_intersect): Remove. (m32c_preferred_reload_class, m32c_secondary_reload_class): Use reg_classes_intersect_p instead of classes_intersect. (class_can_hold_mode): Change arguments type from enum reg_class to reg_class_t. Use reg_class_contents instead of class_contents. (m32c_register_move_cost): Make static. Change arguments type from enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of classes_intersect. Use reg_class_contents instead of class_contents. (m32c_memory_move_cost): Make static. Change arguments type from enum reg_class to reg_class_t. (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define. * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove. * config/m32c/m32c-protos.h (m32c_register_move_cost, m32c_memory_move_cost): Remove. From-SVN: r163693
Anatoly Sokolov committed -
PR fortran/38282 * f95-lang.c (gfc_init_builtin_functions): Define popcount{,l,ll} and parity{,l,ll} builtins. * trans-intrinsic.c (gfc_conv_intrinsic_popcnt_poppar): New function. (gfc_conv_intrinsic_function): Call above new functions. * simplify.c (gfc_simplify_popcnt, gfc_simplify_poppar): New functions. * intrinsic.texi: Document POPCNT and POPPAR. * gfortran.dg/popcnt_poppar_1.F90: New test. * gfortran.dg/popcnt_poppar_2.F90: New test. From-SVN: r163691
Francois-Xavier Coudert committed -
2010-08-31 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/44480 * include/bits/hashtable.h (_Hashtable<>::_M_begin_bucket_index): Add, caching the index of the first non-empty bucket. (begin, cbegin): Use it. (_Hashtable<>::_Hashtable(_InputIterator, _InputIterator, ...), _Hashtable(const _Hashtable&), _Hashtable(_Hashtable&&), swap(_Hashtable&), clear): Adjust. (_M_insert_bucket, _M_insert, erase(const_iterator), erase(const key_type&), _M_rehash): Update it. * include/bits/hashtable.h (_Hashtable<>::_M_erase): Remove. (erase(const_iterator)): Inline the latter. From-SVN: r163686
Paolo Carlini committed -
* gcc.target/i386/volatile-2.c: Require nonpic target. From-SVN: r163685
Uros Bizjak committed -
2010-08-31 Paolo Carlini <paolo.carlini@oracle.com> * testsuite/23_containers/forward_list/operations/remove_freed.cc: Fix test01 return type to void. * testsuite/util/exception/safety.h: Avoid -Wall -m32 warnings. * testsuite/util/replacement_memory_operators.h: Likewise. From-SVN: r163684
Paolo Carlini committed -
* config/arm/arm-protos.h (arm_function_arg_advance): Delete. (arm_function_arg): Delete. (arm_needs_doubleword_align): Take a const_tree. * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete. * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree. (aapcs_layout_arg, arm_needs_doubleword_align): Likewise. (arm_function_arg): Make static. Take a const_tree and a bool. (arm_function_arg_advance): Likewise. (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define. From-SVN: r163683
Nathan Froyd committed -
* common.opt (fwhopr=): Update for -fwhopr=jobserver * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver. * lto-wrapper.c (run_gcc): Add jobserver mode. * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric argument. From-SVN: r163680
Andi Kleen committed -
* config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand. (popsi1): Ditto. (*popdi1_epilogue): Ditto. (*popsi1_epilogue): Ditto. (popsi, popdi peephole2 patterns): Update peepholes for changed pop{si,di}1 and *pop{si,di}1_epilogue patterns. (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator. (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue. * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function. (override_options): Do not initialize removed ix86_gen_pop1. (gen_pop): New static function. (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1. (release_scratch_register_on_entry): Ditto. (ix86_restore_reg_using_pop): Ditto. (ix86_expand_epilogue): Ditto. From-SVN: r163679
Uros Bizjak committed -
re PR middle-end/45461 (ICE: verify_gimple failed: INDIRECT_REF in gimple IL with -fshort-enums and va_arg) PR middle-end/45461 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF. * gcc.dg/pr45461.c: New test. From-SVN: r163678
Jakub Jelinek committed -
* config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra semicolons. From-SVN: r163677
Nathan Froyd committed -
* doc/extend.texi: Fix documentation of the return value of __builtin_choose_expr. From-SVN: r163675
Francois-Xavier Coudert committed -
* config/v850/v850-protos.h (function_arg): Delete. * config/v850/v850.h (FUNCTION_ARG): Delete. (FUNCTION_ARG_ADVANCE): Move code to... * config/v850/v850.c (v850_function_arg_advance): ...here. (v850_function_arg): Make static. Take a const_tree and a bool. (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define. From-SVN: r163674
Nathan Froyd committed -
* config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move these... (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P): ...and these... * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance): ..to here.. (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P): ...and here. (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define. From-SVN: r163672
Nathan Froyd committed -
* config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size): Delete. * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete. * config/rx/rx.c (rx_function_arg_size): Make static. (rx_function_arg): Likewise. (rx_function_arg_advance): New function. (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define. From-SVN: r163671
Nathan Froyd committed -
2010-08-31 Richard Guenther <rguenther@suse.de> PR testsuite/45455 * gcc.dg/vect/vect-cond-4.c: Fix use of uninitialized variable. From-SVN: r163669
Richard Guenther committed -
2010-08-31 Bingfeng Mei <bmei@broadcom.com> * gcc.dg/vect/pr43430-1.c: Requires vect_condition target. From-SVN: r163668
Bingfeng Mei committed -
* config/arm/arm.c (arm_override_options): Remove superfluous test. Fix indentation. From-SVN: r163667
John Tytgat committed -
* dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada. (dwarf2out_decl) <CONST_DECL>: Likewise. From-SVN: r163666
Eric Botcazou committed -
From-SVN: r163665
GCC Administrator committed
-
- 30 Aug, 2010 16 commits
-
-
2010-08-30 Janus Weil <janus@gcc.gnu.org> PR fortran/45456 * resolve.c (resolve_structure_cons): Handle pointer-valued PPCs. 2010-08-30 Janus Weil <janus@gcc.gnu.org> PR fortran/45456 * gfortran.dg/typebound_proc_18.f03: New. From-SVN: r163661
Janus Weil committed -
Stack usage support * common.opt (-fstack-usage): New option. * doc/invoke.texi (Debugging options): Document it. * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to allocate_dynamic_stack_space. (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE and propagate it to allocate_dynamic_stack_space. (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change. * calls.c (initialize_argument_information): Pass TRUE as 4th argument to allocate_dynamic_stack_space. (expand_call): Set current_function_has_unbounded_dynamic_stack_size to 1 when pushing a variable-sized argument onto the stack. Pass TRUE as 4th argument to allocate_dynamic_stack_space. Update current_function_pushed_stack_size. (emit_library_call_value_1): Likewise. * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and attempt to find an upper bound. Remove redundant code for the SETJMP_VIA_SAVE_AREA case. * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter. * function.h (struct stack_usage): New structure. (current_function_static_stack_size): New macro. (current_function_dynamic_stack_size): Likewise. (current_function_pushed_stack_size): Likewise. (current_function_dynamic_alloc_count): Likewise. (current_function_has_unbounded_dynamic_stack_size): Likewise. (current_function_allocates_dynamic_stack_space): Likewise. (struct function): Add new field 'su'. * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA, add the value of the dynamic offset to the dynamic stack usage. (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA for variable-sized objects. (prepare_function_start): Allocate cfun->su if flag_stack_usage. (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage. * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA for variable-sized objects. * output.h (output_stack_usage): Declare. * toplev.c (stack_usage_file): New file pointer. (output_stack_usage): New function. (open_auxiliary_file): Likewise. (lang_dependent_init): Open file if flag_stack_usage is set. (finalize): Close file if stack_usage_file is not null. * tree.h (ALLOCA_FOR_VAR_P): New macro. * config/alpha/alpha.c (compute_frame_size): New function. (alpha_expand_prologue): Use it. (alpha_start_function): Likewise. (alpha_expand_epilogue): Likewise. Set stack usage info. * config/i386/i386.c (ix86_expand_prologue): Likewise. * config/ia64/ia64.c (ia64_expand_prologue): Likewise. * config/mips/mips.c (mips_expand_prologue): Likewise. * config/pa/pa.c (hppa_expand_prologue): Likewise. * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise. * config/sparc/sparc.c (sparc_expand_prologue): Likewise. testsuite/ * lib/gcc-dg.exp (cleanup-stack-usage): New procedure. * lib/scanasm.exp (scan-stack-usage): Likewise. (scan-stack-usage-not): Likewise. * gcc.dg/stack-usage-1.c: New test. * gcc.target/i386/stack-usage-realign.c: Likewise. From-SVN: r163660
Eric Botcazou committed -
PR tree-optimization/45427 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten. Handle the case that the exit is never taken correctly. (number_of_iterations_ne): Pass exit_must_be_taken to number_of_iterations_ne_max. * gcc.dg/tree-ssa/pr45427.c: New test. From-SVN: r163659
Zdenek Dvorak committed -
2010-08-31 Catherine Moore <clm@codesourcery.com> * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): Infer -mdspr2 for the the 74K. From-SVN: r163656
Catherine Moore committed -
re PR c++/45043 (ICE: tree check: expected identifier_node, have bit_not_expr in grokdeclarator, at cp/decl.c:8113 on invalid code) /cp 2010-08-30 Paolo Carlini <paolo.carlini@oracle.com> PR c++/45043 * decl.c (grokdeclarator): Use MAIN_NAME_P only on IDENTIFIER_NODEs. /testsuite 2010-08-30 Paolo Carlini <paolo.carlini@oracle.com> PR c++/45043 * g++.dg/template/crash102.C: New. From-SVN: r163655
Paolo Carlini committed -
PR debug/45419 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable. From-SVN: r163654
Jakub Jelinek committed -
PR middle-end/45423 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR and TRUTH_{AND,OR,XOR}_EXPR. * c-parser.c (c_parser_omp_atomic): Handle boolean {PRE,POST}_{INC,DEC}REMENT. cp/ * parser.c (cp_parser_omp_atomic): Handle boolean {PRE,POST}_INCREMENT. testsuite/ * gcc.dg/gomp/atomic-12.c: New test. * gcc.dg/gomp/atomic-13.c: New test. * gcc.dg/gomp/atomic-14.c: New test. * g++.dg/gomp/atomic-11.C: New test. * g++.dg/gomp/atomic-12.C: New test. * g++.dg/gomp/atomic-13.C: New test. * g++.dg/gomp/atomic-14.C: New test. From-SVN: r163653
Jakub Jelinek committed -
* gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs. Attach fake PARM_DECLs to the topmost block of the function. From-SVN: r163651
Eric Botcazou committed -
* g++.dg/debug/dwarf2/nested-2.C: Allow for single / as comment delimiter. From-SVN: r163650
Rainer Orth committed -
* config/xtensa/xtensa-protos.h (function_arg_advance): Delete. (function_arg): Delete. * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete. (FUNCTION_INCOMING_ARG): Delete. * config/xtensa/xtensa.c (function_arg_advance): Rename to... (xtensa_function_arg_advance): ...this. Make static. Take a const_tree and a bool. (function_arg): Rename to... (xtensa_function_arg_1): ...this. Make static. Take a const_tree and a bool. (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions. (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define. (TARGET_FUNCTION_INCOMING_ARG): Define. From-SVN: r163649
Nathan Froyd committed -
trans.c (call_to_gnu): Also force the return slot opt for the call to a function whose return type was... * gcc-interface/trans.c (call_to_gnu): Also force the return slot opt for the call to a function whose return type was unconstrained. From-SVN: r163648
Eric Botcazou committed -
2010-08-30 Richard Guenther <rguenther@suse.de> PR tree-optimization/21602 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy using points-to information. From-SVN: r163646
Richard Guenther committed -
From-SVN: r163645
Uros Bizjak committed -
decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro, replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN. * gcc-interface/decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro, replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN. (gnat_to_gnu_entity) <case ..., E_Procedure>: Use it. From-SVN: r163641
Olivier Hainque committed -
2010-08-30 H.J. Lu <hongjiu.lu@intel.com> * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||. From-SVN: r163640
H.J. Lu committed -
From-SVN: r163639
Francois-Xavier Coudert committed
-