- 27 Jul, 2012 4 commits
-
-
2012-07-26 Segher Boessenkool <segher@kernel.crashing.org> gcc/ * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Delete code for -mno-power, -mpower, and -mpower2. * config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete. (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together with -maix64. (ASM_CPU_SPEC): Delete support for POWER and POWER2. * config/rs6000/aix51.h (NON_POWERPC_MASKS): Delete. (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together with -maix64. (ASM_CPU_SPEC): Delete support for POWER and POWER2. * config/rs6000/aix52.h (NON_POWERPC_MASKS): Delete. (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together with -maix64. (TARGET_POWER): Delete. * config/rs6000/aix53.h (NON_POWERPC_MASKS): Delete. (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together with -maix64. (TARGET_POWER): Delete. * config/rs6000/aix61.h (NON_POWERPC_MASKS): Delete. (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together with -maix64. (TARGET_POWER): Delete. * config/rs6000/darwin.h (TARGET_POWER): Delete. * config/rs6000/driver-rs6000.c (struct asm_names): Delete support for -mpower, -mpower2, and -mno-power. * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Likewise. (rs6000_cpu_cpp_builtins): Likewise. * config/rs6000/rs6000-cpus.def: Likewise. * config/rs6000/rs6000-tables.opt: Regenerate. * config/rs6000/rs6000.c (POWER_MASKS): Delete. (rs6000_option_override_internal): Adjust. (rs6000_conditional_register_usage): Adjust. (rs6000_emit_move): Adjust. (rs6000_common_init_builtins): Adjust. (rs6000_init_libfuncs): Adjust. (rs6000_output_function_prologue): Adjust. (rs6000_adjust_cost): Adjust. (struct rs6000_opt_masks): Delete MASK_POWER and MASK_POWER2. * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for POWER and POWER2. (TARGET_DEFAULT): Adjust. (PROCESSOR_POWER): Delete. (SHIFT_COUNT_TRUNCATED): Adjust. * config/rs6000/rs6000.md (extendqisi2): Delete POWER support. (extendqisi2_power): Delete. (extendqisi2_no_power): Adjust. (extendqihi2, extendqihi2_power, extendqihi2_no_power): Likewise. (sminsi3, smaxsi3, uminsi3, umaxsi3): Adjust. (anonymous doz insn patterns): Delete. (abssi2): Adjust. (abssi2_power): Delete. (abssi2_nopower): Adjust. (nabs_power, nabs_nopower): Likewise. (mulsi3, mulsi3_mq, mulsi3_no_mq, mulsi3_mq_internal1): Likewise. Delete anonymous post-reload splitter. (mulsi3_no_mq_internal1): rename to... (mulsi3_internal1): New define_insn. (mulsi3_mq_internal2, mulsi3_no_mq_internal2, mulsi3_internal2): Likewise. (divmodsi4, divmodsi4_internal, udiv<mode>3, udivsi3_mq, udivsi3_no_mq, udivsi3, div<mode>3, divsi3_mq, div<mode>3_no_mq, udivmodsi4_normal, udivmodsi4_tests, udivmodsi4): Likewise. (mulh_call, mull_call, divss_call, divus_call, quoss_call, quous_call): Likewise. (maskir_internal1, maskir_internal2, maskir_internal3, maskir_internal4, maskir_internal5, maskir_internal6, maskir_internal7, maskir_internal8): Delete. (ashlsi3, ashlsi3_power, ashlsi3_no_power): Adjust. (anonymous sl insn patterns): Delete. (lshrsi3, lshrsi3_power, lshrsi3_no_power): Adjust. (lshrsi3_64): Adjust. (anonymous sr insn patterns): Delete. (anonymous rrib insn patterns): Delete. (ashrsi3, ashrsi3_power, ashrsi3_no_power): Adjust. (anonymous sra insn patterns): Delete. (sqrtsf2, sqrtdf2, sqrtdf2_fpr): Adjust. (fix_trunc<mode>si2, fix_trunc<mode>si2_internal, fctiwz_<mode>): Adjust. (mulsidi3, mulsidi3_mq, mulsidi3_no_mq, umulsidi3, umulsidi3_mq, umulsidi3_no_mq, smulsi3_highpart, smulsi3_highpart_mq, smulsi3_highpart_no_mq, umulsi3_highpart, umulsi3_highpart_mq, umulsi3_highpart_no_mq): Adjust. (ashldi3_power, lshrdi3_power, ashrdi3_power): Delete. (ashrdi3_no_power, ashldi3, ashldi3_internal1, lshrdi3_internal1): Adjust. (fix_trunctfsi2, fix_trunctfsi2_fprs): Adjust. (movti_power): Delete. (movti_string): Adjust. (stmsi8, stmsi7, stmsi6, stmsi5, stmsi4, stmsi3): Adjust. (stmsi8_power, stmsi7_power, stmsi6_power, stmsi5_power, stmsi4_power, stmsi3_power): Delete. (anonymous movmemsi insn patterns): Adjust. (lfq_power2, stfq_power2): Delete. (eq<mode>, eq<mode>_compare): Adjust. (eqsi_power): Delete. (ne0si): Adjust. (anonymous le, lt, ge, gt insn patterns): Delete. * config/rs6000/rs6000.opt (mpower, mno-power, mpower2): Delete. * config/rs6000/sysv4.h (TARGET_POWER): Delete. * config/rs6000/t-aix43 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, MULTILIB_MATCHES): Adjust. * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mpower, -mno-power, -mpower2, -mno-power2 documentation. Delete -mcpu=power and -mcpu=power2 documentation. gcc/testsuite/ * gcc.target/powerpc/rs6000-power2-1.c: Delete. * gcc.target/powerpc/rs6000-power2-2.c: Delete. From-SVN: r189908
Segher Boessenkool committed -
2012-07-27 Segher Boessenkool <segher@kernel.crashing.org> gcc/ * config/rs6000/601.md: New file. * config/rs6000/aix43.h (ASM_CPU_SPEC): Delete support for RIOS CPUs. * config/rs6000/aix51.h (ASM_CPU_SPEC): Likewise. * config/rs6000/driver-rs6000.c (detect_processor_aix, struct asm_names): Likewise. * config/rs6000/rios1.md: Delete file. * config/rs6000/rios2.md: Delete file. * config/rs6000/rs6000-cpus.def: Delete definitions for RIOS CPUs. * config/rs6000/rs6000-opts.h (enum processor_type): Delete PROCESSOR_RIOS1 and PROCESSOR_RIOS2. * config/rs6000/rs6000-tables.opt: Regenerated. * config/rs6000/rs6000.c (struct rios1_cost, struct rios2_cost): Delete. (rs6000_option_override_internal): Delete support for RIOS CPUs. (rs6000_conditional_register_usage): Adjust comment. (rs6000_issue_rate):Delete support for RIOS CPUs. * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for RIOS CPUs. (PROCESSOR_POWER): Change to PROCESSOR_PPC601. (PROCESSOR_DEFAULT): Change to PROCESSOR_PPC603. * config/rs6000/rs6000.md (define_attr "cpu"): Delete rios1 and rios2. (include "rios1.md", include "rios2.md"): Delete. (include "601.md"): New. * config/rs6000/rs6000.opt (enum rs6000_cpu): Default to PROCESSOR_PPC603. * config/rs6000/t-aix43 (MULTILIB_MATCHES): Delete support for RIOS CPUs. * config/rs6000/t-rs6000 (MD_INCLUDES): Delete rios1.md and rios2.md . Add 601.md . From-SVN: r189907
Segher Boessenkool committed -
* gcc.dg/20020201-1.c: Remove declarations for exit, abort, rand, srand. Include <stdlib.h>. From-SVN: r189905
Anna Tikhonova committed -
From-SVN: r189904
GCC Administrator committed
-
- 26 Jul, 2012 19 commits
-
-
pex-win32.c (pex_win32_exec_child): Only close original file descriptors if child is launched successfully. 2012-07-26 Kazu Hirata <kazu@codesourcery.com> Sandra Loosemore <sandra@codesourcery.com> libiberty/ * pex-win32.c (pex_win32_exec_child): Only close original file descriptors if child is launched successfully. Co-Authored-By: Sandra Loosemore <sandra@codesourcery.com> From-SVN: r189901
Kazu Hirata committed -
From-SVN: r189899
Janis Johnson committed -
gcc/ * doc/extend.texi (attribute): Document hot/cold for labels. * predict.c (tree_estimate_probability_bb): Handle hot/cold attributes on user labels. * predict.def (PRED_HOT_LABEL, PRED_COLD_LABEL): New. gcc/c-family/ * c-common.c (handle_hot_attribute): Allow labels. (handle_cold_attribute): Likewise. gcc/testsuite/ * gcc.dg/attr-hotcold-1.c: New. * gcc.dg/tree-ssa/attr-hotcold-2.c: New. From-SVN: r189898
Richard Henderson committed -
2012-07-26 Andrew Jenner <andrew@codesourcery.com> Sandra Loosemore <sandra@codesourcery.com> gcc/ * cse.c (find_comparison_args): Check for cycles of any length. gcc/testsuite/ * gcc.c-torture/compile/pr50380.c: Add code to cause cycle of length 2. Co-Authored-By: Sandra Loosemore <sandra@codesourcery.com> From-SVN: r189896
Andrew Jenner committed -
From-SVN: r189894
François Dumont committed -
Some of the hosts were we run this script are still using Python 2.4. This patch replaces the use of 'with ... as ...' to avoid syntax errors. 2012-07-26 Diego Novillo <dnovillo@google.com> * testsuite-management/validate_failures.py: Do not use 'with ... as ...' constructs. From-SVN: r189893
Diego Novillo committed -
* config/mn10300/mn10300.c (REG_SAVE_BYTES): Delete. (mn10300_get_live_callee_saved_regs): If requested return a count of the number of bytes in the mask. (mn10300_expand_prologue): Add argument to invocation of mn10300_get_live_callee_regs. (mn10300_expand_epilogue): Compute reg_save_bytes by calling mn10300_get_live_callee_saved_regs. (mn10300_initial_offset): Likewise. * config/mn10300/mn10300-protos.h (mn10300_get_live_callee_saved_regs): Update prototype. * config/mn10300/mn10300.md (return_ret): Add argument to invocation of mn10300_get_live_callee_saved_regs. From-SVN: r189892
Nick Clifton committed -
PR regression/54084 * sel-sched-ir.c (cmp_v_in_regset_pool): Clarify logic, fix pointer difference check. From-SVN: r189891
Steven Bosscher committed -
2012-07-26 Bill Schmidt <wschmidt@linux.ibm.com> * tree-ssa-loop-ivopts.c (mbc_entry_hash): Remove. (mbc_entry_eq): Likewise. (mult_costs): Likewise. (cost_tables_exist): Likewise. (initialize_costs): Likewise. (finalize_costs): Likewise. (tree_ssa_iv_optimize_init): Remove call to initialize_costs. (add_regs_cost): Remove. (multiply_regs_cost): Likewise. (add_const_cost): Likewise. (extend_or_trunc_reg_cost): Likewise. (negate_reg_cost): Likewise. (struct mbc_entry): Likewise. (multiply_by_const_cost): Likewise. (get_address_cost): Change add_regs_cost calls to add_cost lookups; change multiply_by_const_cost to mult_by_coeff_cost. (force_expr_to_var_cost): Likewise. (difference_cost): Change multiply_by_const_cost to mult_by_coeff_cost. (get_computation_cost_at): Change add_regs_cost calls to add_cost lookups; change multiply_by_const_cost to mult_by_coeff_cost. (determine_iv_cost): Change add_regs_cost calls to add_cost lookups. (tree_ssa_iv_optimize_finalize): Remove call to finalize_costs. * tree-ssa-address.c (expmed.h): New #include. (most_expensive_mult_to_index): Change multiply_by_const_cost to mult_by_coeff_cost. * gimple-ssa-strength-reduction.c (expmed.h): New #include. (stmt_cost): Change to use mult_by_coeff_cost, mul_cost, add_cost, neg_cost, and convert_cost instead of IVOPTS interfaces. (execute_strength_reduction): Remove calls to initialize_costs and finalize_costs. * expmed.c (struct init_expmed_rtl): Add convert rtx_def. (init_expmed_one_mode): Initialize convert rtx_def; initialize x_convert_cost for related modes. (mult_by_coeff_cost): New function. * expmed.h (NUM_MODE_INT): New #define. (struct target_expmed): Add x_convert_cost matrix. (set_convert_cost): New inline function. (convert_cost): Likewise. (mult_by_coeff_cost): New extern decl. * tree-flow.h (initialize_costs): Remove decl. (finalize_costs): Likewise. (multiply_by_const_cost): Likewise. (add_regs_cost): Likewise. (multiply_regs_cost): Likewise. (add_const_cost): Likewise. (extend_or_trunc_reg_cost): Likewise. (negate_reg_cost): Likewise. * Makefile.in (gimple-ssa-strength-reduction.o): Update dependencies. (tree-ssa-address.o): Update dependencies. From-SVN: r189890
Bill Schmidt committed -
* bitmap.h: Add explanation of sparse set as linked-list bitmap. * sbitmap.h: Add explanation about non-sparse sets as simple bitmap. (TEST_BIT): Make a static inline function for stronger type checking. (SET_BIT): Don't handle sbitmaps with popcount. (RESET_BIT): Likewise. (SET_BIT_WITH_POPCOUNT): New, like SET_BIT but with popcount. (RESET_BIT_WITH_POPCOUNT): New, like RESET_BIT but with popcount. * ebitmap.c (ebitmap_clear_bit): Use SET_BIT_WITH_POPCOUNT and RESET_BIT_WITH_POPCOUNT on wordmask bitmaps. (ebitmap_set_bit, ebitmap_and_into, ebitmap_and, ebitmap_ior_into, ebitmap_and_compl_into, ebitmap_and_compl): Likewise. * sparseset.h: Add explanation of sparse set representation. From-SVN: r189888
Steven Bosscher committed -
2012-07-26 Tobias Burnus <burnus@net-b.de> * gfortran.dg/contiguous_1.f90: Update dg-error. * gfortran.dg/proc_ptr_32.f90: Ditto. From-SVN: r189887
Tobias Burnus committed -
2012-07-26 Richard Guenther <rguenther@suse.de> PR tree-optimization/54098 * tree-vrp.c (vrp_visit_phi_node): Iterate once more if the original range was UNDEFINED. * gcc.dg/torture/pr54098.c: New testcase. From-SVN: r189885
Richard Guenther committed -
2012-07-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org> * config/arm/neon.ml (ops): Fix regexp for vld1Q_dups64 and vld1Q_dupu64 tests. 2012-07-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org> * gcc.target/arm/neon/vld1Q_dupu64.c: Regenerate. * gcc.target/arm/neon/vld1Q_dups64.c: Likewise. From-SVN: r189884
Ramana Radhakrishnan committed -
fortran/ PR fortran/44354 * trans-array.c (gfc_trans_array_constructor_value): Evaluate the iteration bounds before the inner variable shadows the outer. testsuite/ PR fortran/44354 * gfortran.dg/array_constructor_39.f90: New test. From-SVN: r189883
Mikael Morin committed -
fortran/ PR fortran/44354 * array.c (sought_symbol): New variable. (expr_is_sought_symbol_ref, find_symbol_in_expr): New functions. (resolve_array_list): Check for references to the induction variable in the iteration bounds and issue a diagnostic if some are found. testsuite/ PR fortran/44354 * gfortran.dg/array_constructor_38.f90: New test. From-SVN: r189882
Mikael Morin committed -
2012-07-26 Alessandro Fanfarillo <fanfarillo.gcc@gmail.com> Tobias Burnus <burnus@net-b.de> * module.c (mio_array_spec): Don't read as->lower for assumed-rank arrays. Co-Authored-By: Tobias Burnus <burnus@net-b.de> From-SVN: r189881
Alessandro Fanfarillo committed -
From-SVN: r189878
Ian Lance Taylor committed -
PR target/51244 * config/sh/sh.opt (mzdcbranch): New option. * doc/invoke.texi: Document it. * config/sh/sh.md (negsi_cond): Use TARGET_ZDCBRANCH as condition instead of TARGET_HARD_SH4. * config/sh/sh.c (sh_option_override): Set TARGET_ZDCBRANCH as default for TARGET_HARD_SH4. From-SVN: r189877
Oleg Endo committed -
From-SVN: r189876
GCC Administrator committed
-
- 25 Jul, 2012 17 commits
-
-
From-SVN: r189873
Oleg Endo committed -
PR target/54089 * config/sh/predicates.md (shift_count_operand): Handle not-SHMEDIA case. (p27_shift_count_operand, not_p27_shift_count_operand): New predicates. * config/sh/sh.md (ashlsi3): Remove parallel and T_REG clobber from expander. Do not emit shift insn for not-SHMEDIA case. (ashlsi3_std): Replace with ... (ashlsi3_k, ashlsi3_d): ... these new insns. * config/sh/sh.c (gen_ashift): Make static. Add sanity checks. Emit ashlsi3_k insn instead of ashlsi3_std in ASHIFT case. (gen_ashift_hi): Make static. * config/sh/sh-protos.h (gen_ashift, gen_ashift_hi): Remove forward declaration. From-SVN: r189872
Oleg Endo committed -
From-SVN: r189870
Janis Johnson committed -
config/arm/bpabi.h (BE8_LINK_SPEC): Set according to TARGET_BIG_ENDIAN_DEFAULT. Co-Authored-By: Jim Wilson <jimwilso@cisco.com> From-SVN: r189867
Bharathi Seshadri committed -
* gimple-low.c (lower_try_catch): New function. (lower_stmt) <GIMPLE_TRY>: Use it to lower GIMPLE_TRY_CATCH. <GIMPLE_CATCH>: Delete. <GIMPLE_EH_FILTER>: Likewise. From-SVN: r189865
Eric Botcazou committed -
* expr.c (expand_expr_real_1): Do not expand operand #1 and #2 of BIT_FIELD_REF for ignored results. * fold-const.c (fold_ternary_loc) <BIT_FIELD_REF>: Check that the CONSTRUCTOR has vector type before using vector accessors on it. * gimplify.c (gimplify_compound_lval): Do not gimplify operand #1 and #2 of BIT_FIELD_REF. (gimplify_expr) <BIT_FIELD_REF>: Likewise. * tree-nested.c (convert_nonlocal_reference_op) <BIT_FIELD_REF>: Do not process operand #1 and #2. (convert_local_reference_op): Likewise. * tree-ssa-pre.c (create_component_ref_by_pieces_1): Remove superfluous breaks throughout. <BIT_FIELD_REF>: Reuse operand #1 and #2 directly. * tree.c (stabilize_reference) <BIT_FIELD_REF>: Do not stabilize operand #1 and #2. (UPDATE_FLAGS): Do not consider operand #2 of BIT_FIELD_REF. (build6_stat): Delete. * tree.h (build6_stat, build6, build6_stat_loc, build6_loc): Likewise. ada/ * gcc-interface/utils2.c (gnat_stabilize_reference) <BIT_FIELD_REF>: Do not stabilize operand #1 and #2. From-SVN: r189864
Eric Botcazou committed -
2012-07-25 François Dumont <fdumont@gcc.gnu.org> PR libstdc++/54075 * include/bits/hashtable.h (_Hashtable<>::_Hashtable(_InputIterator, _InputIterator, size_type, ...): Remove std::max usage to guarantee that hashtable state is consistent with hash policy state. (_Hashtable<>::rehash): Likewise. Set _M_prev_resize to 0 to avoid the hashtable to be shrinking on next insertion. * testsuite/23_containers/unordered_set/modifiers/reserve.cc: New. * testsuite/23_containers/unordered_multiset/modifiers/reserve.cc: New. * testsuite/23_containers/unordered_map/modifiers/reserve.cc: New. * testsuite/23_containers/unordered_multimap/modifiers/reserve.cc: New. From-SVN: r189863
François Dumont committed -
2012-07-25 Marc Glisse <marc.glisse@inria.fr> PR tree-optimization/30318 * tree-vrp.c (extract_range_from_binary_expr_1) [PLUS_EXPR]: Handle __int128. [MINUS_EXPR]: Merge with PLUS_EXPR. From-SVN: r189861
Marc Glisse committed -
2012-07-25 Sandra Loosemore <sandra@codesourcery.com> Paul Brook <paul@codesourcery.com> PR target/53633 gcc/ * target.def (warn_func_return): New hook. * doc/tm.texi.in (TARGET_WARN_FUNC_RETURN): New hook. * doc/tm.texi: Regenerate. * doc/sourcebuild.texi (Effective-Target Keywords): Document naked_functions. * ipa-pure-const.c (warn_function_noreturn): Check targetm.warn_func_return. * tree-cfg.c (execute_warn_function_return): Likewise. * config/spu/spu.c (spu_warn_func_return): New. (TARGET_WARN_FUNC_RETURN): Define. * config/rx/rx.c (rx_warn_func_return): New. (TARGET_WARN_FUNC_RETURN): Define. * config/avr/avr.c (avr_warn_func_return): New. (TARGET_WARN_FUNC_RETURN): Define. * config/arm/arm.c (arm_warn_func_return): New. (TARGET_WARN_FUNC_RETURN): Define. * config/mcore/mcore.c (mcore_warn_func_return): New. (TARGET_WARN_FUNC_RETURN): Define. (saved_warn_return_type, saved_warn_return_type_count): Remove. (mcore_reorg, mcore_handle_naked_attribute): Remove warn_return hack. gcc/cp/ * decl.c (finish_function): Check targetm.warn_func_return. gcc/testsuite/ * lib/target-suports.exp (check_effective_target_naked_functions): New. * c-c++-common/pr53633.c: New test. Co-Authored-By: Paul Brook <paul@codesourcery.com> From-SVN: r189860
Sandra Loosemore committed -
2012-07-25 Tobias Burnus <burnus@net-b.de> * trans-types.c (gfc_real16_is_float128): Fix spelling in a comment. * trans.h (struct gfc_array_info): Ditto. * gfortran.h (gfc_expr): Ditto. * simplify.c (gfc_count): Ditto. * trans-expr.c (gfc_copy_class_to_class, conv_parent_component_references, gfc_trans_pointer_assignment): Ditto. * expr.c (check_pointer_assign): Fix diagnostic spelling. * interface.c (compare_parameter): Ditto. * parse.c (use_modules, parse_associate): Ditto. * decl.c (match_char_length): Fix spelling of the an function argument. From-SVN: r189859
Tobias Burnus committed -
* io/list_read.c (list_formatted_read_scalar): Fix copying real value back to temporary. From-SVN: r189856
Andreas Schwab committed -
* final.c [ASSEMBLER_DIALECT](do_assembler_dialects): New function to implement assembler dialects. (output_asm_insn): Use do_assembler_dialects. (asm_fprintf): Likewise. * gcc.target/i386/asm-dialect-1.c: New test case. From-SVN: r189854
Siddhesh Poyarekar committed -
PR bootstrap/54092 * libfuncs.h: Don't include optabs.h. (struct libfunc_entry): Use "int" for op, mode1, mode2 members. * optabs.c (hash_libfunc): Don't cast members to int. * Makefile.in (LIBFUNCS_H): Don't include OPTABS_H. From-SVN: r189853
Richard Henderson committed -
PR c++/54086 * decl.c (grokdeclarator): Allow const and constexpr together. From-SVN: r189852
Jason Merrill committed -
PR c++/54020 * semantics.c (potential_constant_expression_1) [COND_EXPR]: Call maybe_constant_value. From-SVN: r189851
Jason Merrill committed -
* cp-tree.h (tsubst_flags): Remove tf_no_access_control. * call.c (standard_conversion): Don't set it. * class.c (resolve_address_of_overloaded_function): Don't check it. * decl.c (check_default_argument): Call perform_implicit_conversion_flags. From-SVN: r189850
Jason Merrill committed -
From-SVN: r189849
Jason Merrill committed
-