1. 03 Dec, 2014 6 commits
    • Improve optimization of ASan checks. · e28f2090
      2014-12-03  Yury Gribov  <y.gribov@samsung.com>
      
      gcc/
      	* sanopt.c (maybe_get_single_definition): New function.
      	(maybe_get_dominating_check): Ditto.
      	(can_remove_asan_check): Ditto.
      	(struct tree_map_traits): New struct.
      	(struct sanopt_ctx): Use custom traits for asan_check_map.
      	(maybe_optimize_ubsan_null_ifn): Move code to
      	maybe_get_dominating_check.
      	(maybe_optimize_asan_check_ifn): Move code and take non-SSA expressions
      	into account when optimizing.
      	(sanopt_optimize_walker): Optimize ASan checks even when
      	recovering.
      
      From-SVN: r218304
      Yury Gribov committed
    • constraints.md (Yr): New. · 45392c76
      gcc/
      
      	* config/i386/constraints.md (Yr): New.
      	* config/i386/i386.h (reg_class): Add NO_REX_SSE_REGS.
      	(REG_CLASS_NAMES): Likewise.
      	(REG_CLASS_CONTENTS): Likewise.
      	* config/i386/sse.md (*vec_concatv2sf_sse4_1): Add alternatives
      	which use only NO_REX_SSE_REGS.
      	(vec_set<mode>_0): Likewise.
      	(*vec_setv4sf_sse4_1): Likewise.
      	(sse4_1_insertps): Likewise.
      	(*sse4_1_extractps): Likewise.
      	(*sse4_1_mulv2siv2di3<mask_name>): Likewise.
      	(*<sse4_1_avx2>_mul<mode>3<mask_name>): Likewise.
      	(*sse4_1_<code><mode>3<mask_name>): Likewise.
      	(*sse4_1_<code><mode>3): Likewise.
      	(*sse4_1_eqv2di3): Likewise.
      	(sse4_2_gtv2di3): Likewise.
      	(*vec_extractv4si): Likewise.
      	(*vec_concatv2si_sse4_1): Likewise.
      	(vec_concatv2di): Likewise.
      	(<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Likewise.
      	(<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Likewise.
      	(<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Likewise.
      	(<vi8_sse4_1_avx2_avx512>_movntdqa): Likewise.
      	(<sse4_1_avx2>_mpsadbw): Likewise.
      	(<sse4_1_avx2>packusdw<mask_name>): Likewise.
      	(<sse4_1_avx2>_pblendvb): Likewise.
      	(sse4_1_pblendw): Likewise.
      	(sse4_1_phminposuw): Likewise.
      	(sse4_1_<code>v8qiv8hi2<mask_name>): Likewise.
      	(sse4_1_<code>v4qiv4si2<mask_name>): Likewise.
      	(sse4_1_<code>v4hiv4si2<mask_name>): Likewise.
      	(sse4_1_<code>v2qiv2di2<mask_name>): Likewise.
      	(sse4_1_<code>v2hiv2di2<mask_name>): Likewise.
      	(sse4_1_<code>v2siv2di2<mask_name>): Likewise.
      	(sse4_1_ptest): Likewise.
      	(<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Likewise.
      	(sse4_1_round<ssescalarmodesuffix>): Likewise.
      	* config/i386/subst.md (mask_prefix4): New.
      	* config/i386/x86-tune.def (X86_TUNE_AVOID_4BYTE_PREFIXES): New.
      
      gcc/testsuites/
      
      	* gcc.target/i386/sse2-init-v2di-2.c: Adjust to changed
      	vec_concatv2di template.
      
      From-SVN: r218303
      Ilya Enkovich committed
    • re PR rtl-optimization/52714 (ICE in fixup_reorder_chain, at cfglayout.c:880) · 17adbceb
      	PR rtl-optimization/52714
      	* combine.c (try_combine): Allow combining two insns into two
      	new insns if at least one of those is a noop.
      
      gcc/testsuite/
      	* gcc.target/m68k/pr52714.c: New testcase.
      
      From-SVN: r218302
      Segher Boessenkool committed
    • target.def (fusion_priority): Wrap code with @smallexample. · 51be4977
      
      	* target.def (fusion_priority): Wrap code with @smallexample.
      	* doc/tm.texi: Regenerated.
      
      From-SVN: r218301
      Bin Cheng committed
    • re PR libstdc++/64161 (bootstrap error: condition_variable.cc:134:7: error:… · 28fe2ab3
      re PR libstdc++/64161 (bootstrap error: condition_variable.cc:134:7: error: 'atexit' is not a member of 'std')
      
      	PR libstdc++/64161
      	* src/c++11/condition_variable.cc: Include <cstdlib>.
      
      From-SVN: r218300
      Jonathan Wakely committed
    • Daily bump. · 4d8820d6
      From-SVN: r218299
      GCC Administrator committed
  2. 02 Dec, 2014 25 commits
    • error.c (warnings_not_errors): Use bool. · f4031599
      2014-12-02  Tobias Burnus  <burnus@net-b.de>
                  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
              * error.c (warnings_not_errors): Use bool.
              (gfc_clear_error): Update.
              (gfc_get_errors): Ditto. Use bool argument.
              * gfortran.h (gfc_get_errors): Update prototype.
              * resolve.c (resolve_global_procedure): Update call.
      
      
      Co-Authored-By: Manuel López-Ibáñez <manu@gcc.gnu.org>
      
      From-SVN: r218296
      Tobias Burnus committed
    • libcpp uses diagnostic->override_column to give a custom column number to diagnostics. · 7f9283bf
      libcpp uses diagnostic->override_column to give a custom column number to
      diagnostics. This is taken into account when building the prefix, but it was
      missing when placing the caret.
      
      2014-12-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	* diagnostic.c (diagnostic_show_locus): Honor override_column when
      	placing the caret.
      
      From-SVN: r218295
      Manuel López-Ibáñez committed
    • download_prerequisites: Download ISL 0.14 instead of 0.12.2. · f5d5b88f
      2014-12-02  Tobias Burnus  <burnus@net-b.de>
      
              * download_prerequisites: Download ISL 0.14 instead of 0.12.2.
      
      From-SVN: r218294
      Tobias Burnus committed
    • asan: support for globals in kernel · f1d15bb9
      2014-12-02  Dmitry Vyukov  <dvyukov@google.com>
      * asan.c: (asan_finish_file): Use default priority for constructors
      in kernel mode.
      
      From-SVN: r218281
      Dmitry Vyukov committed
    • avx512ifma-vpmaddhuq-2.c: Define AVX512IFMA. · d455c0b5
      	* gcc.target/i386/avx512ifma-vpmaddhuq-2.c: Define AVX512IFMA.
      	* gcc.target/i386/avx512ifma-vpmaddluq-2.c: Ditto.
      	* gcc.target/i386/avx512vbmi-vpermb-2.c: Define AVX512VBMI.
      	* gcc.target/i386/avx512vbmi-vpermi2b-2.c: Ditto.
      	* gcc.target/i386/avx512vbmi-vpermt2b-2.c: Ditto.
      	* gcc.target/i386/avx512vbmi-vpmultishiftqb-2.c: Ditto.
      
      From-SVN: r218280
      Uros Bizjak committed
    • constexpr.c (cxx_eval_check_shift_p): New function. · 253a921b
      	* constexpr.c (cxx_eval_check_shift_p): New function.
      	(cxx_eval_binary_expression): Call it.  Set NON_CONSTANT_P if it
      	returns true.
      
      	* g++.dg/cpp0x/constexpr-shift1.C: New test.
      	* g++.dg/cpp1y/constexpr-shift1.C: New test.
      	* g++.dg/ubsan/pr63956.C: Add dg-errors.
      
      From-SVN: r218279
      Marek Polacek committed
    • line-map.h (linemap_assert_fails): Declare. · 73bd8329
      libcpp/ChangeLog:
      
      2014-12-02  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
      	* include/line-map.h (linemap_assert_fails): Declare.
      	* line-map.c (linemap_position_for_loc_and_offset): Use it.
      
      From-SVN: r218277
      Manuel López-Ibáñez committed
    • line-map.c (linemap_add): Fix typo. · 9c320ab1
      2014-12-02  Manuel López-Ibáñez  <manu@gcc.gnu.org>
      
              * line-map.c (linemap_add): Fix typo.
              (linemap_line_start): Fix whitespace.
      
      From-SVN: r218276
      Manuel López-Ibáñez committed
    • re PR target/64115 (ICE: : in rs6000_delegitimize_address, at config/rs6000/rs6000.c:7051) · 3c610413
      	PR target/64115
      	* config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove
      	invalid UNSPEC_TOCREL sanity check under ENABLE_CHECKING.
      
      From-SVN: r218273
      Ulrich Weigand committed
    • Stop only if there aren't any usable algorithms · 0f884e67
      When searching for an usable algorithm with -minline-all-stringops,
      decide_alg stops when it sees libcall even if there is a usable
      algorithm.  It goes into an infinite loop.  This patch changes
      decide_alg to stop searching only if there aren't any usable algorithms.
      Testd on Linux/x86-64.
      
      
      gcc/
      
      	PR target/64108
      	* config/i386/i386.c (decide_alg): Stop only if there aren't
      	any usable algorithms.
      
      gcc/testsuite/
      
      	PR target/64108
      	* gcc.target/i386/memset-strategy-2.c: New test.
      
      From-SVN: r218272
      H.J. Lu committed
    • re PR rtl-optimization/63718 (ARM Thumb1 bootstrap fail after fuse-caller-save… · fb98f886
      re PR rtl-optimization/63718 (ARM Thumb1 bootstrap fail after fuse-caller-save info in cprop-hardreg)
      
      2014-12-02  Tom de Vries  <tom@codesourcery.com>
      
      	PR rtl-optimization/63718
      	* config/arm/arm.c (arm_option_override): Disable fuse-caller-save for
      	Thumb1.
      
      From-SVN: r218271
      Tom de Vries committed
    • status_cxx2011.xml: Update. · e3376050
      	* doc/xml/manual/status_cxx2011.xml: Update.
      	* doc/xml/manual/status_cxx2014.xml: Update.
      	* doc/html/manual/status.html: Regenerate.
      
      From-SVN: r218270
      Jonathan Wakely committed
    • match.pd: When combining divisions exclude the degenerate case involving INT_MIN from... · ac19a303
      2014-12-02  Richard Biener  <rguenther@suse.de>
      
      	* match.pd: When combining divisions exclude the degenerate
      	case involving INT_MIN from overflow handling.
      
      	* gcc.dg/torture/20141202-1.c: New testcase.
      
      From-SVN: r218269
      Richard Biener committed
    • Add a test for PR ipa/63814 · 88936a2b
      	PR ipa/63814
      	* g++.dg/ipa/pr63814.C: New test.
      
      From-SVN: r218268
      H.J. Lu committed
    • [AArch64/testsuite] Add missing testcase · ffc51023
        Add the missing testcase.
        (forget svn add in previous commit ...)
      
      From-SVN: r218267
      Jiong Wang committed
    • [PATCH] Improve spillcost of literal pool loads · 048f927a
      2014-12-02  Wilco Dijkstra  <wdijkstr@arm.com>
      
        gcc/
          ira-costs.c (scan_one_insn): Improve spill cost adjustment.
      
        gcc/testsuite
          gcc.target/aarch64/remat1.c: New testcase.
      
      From-SVN: r218266
      Wilco Dijkstra committed
    • re PR ipa/63814 (g++.dg/ipa/pr61160-1.C fails with -m32 -fPIC) · 47f4756e
      2014-12-02  Martin Jambor  <mjambor@suse.cz>
      
      	PR ipa/63814
      	* ipa-cp.c (same_node_or_its_all_contexts_clone_p): New function.
      	(cgraph_edge_brings_value_p): New parameter dest, use
      	same_node_or_its_all_contexts_clone_p and check availability.
      	(cgraph_edge_brings_value_p): Likewise.
      	(get_info_about_necessary_edges): New parameter dest, pass it to
      	cgraph_edge_brings_value_p.  Update caller.
      	(gather_edges_for_value): Likewise.
      	(perhaps_add_new_callers): Use cgraph_edge_brings_value_p to check
      	both the destination and availability.
      
      From-SVN: r218265
      Martin Jambor committed
    • re PR target/64113 (Gcc on Alpha: Error: No lda !gpdisp!282 was found) · c271ca67
      	PR target/64113
      	* config/alpha/alpha.md (call_value_osf_tlsgd): Do not split insn
      	using post-reload splitter.  Use peephole2 pass instead.
      	(call_value_osf_tlsldm): Ditto.
      	(TLS_CALL): New int iterator.
      	(tls): New int attribute.
      	(call_value_osf_<tls>): Merge insn pattern from call_value_osf_tlsgd
      	and call_value_tlsldm using TLS_CALL int iterator.
      
      From-SVN: r218264
      Uros Bizjak committed
    • genmatch.c: Include hash-set.h. · 1c9b0448
      2014-12-02  Richard Biener  <rguenther@suse.de>
      	Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
      
      	* genmatch.c: Include hash-set.h.
      	(fatal_at): Add source_location overload.
      	(parser::record_operlist): New method.
      	(parser::push_simplify): Likewise.
      	(parser::oper_lists_set): New member.
      	(parser::oper_lists): Likewise.
      	(parser::parse_operation): Record seen operator list references.
      	(parser::parse_c_expr): Likewise.
      	(parser::parse_simplify): Init oper_lists_set and oper_lists
      	and use push_simplify.
      	(parser::parser): Init oper_lists_set and oper_lists.
      
      Co-Authored-By: Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
      
      From-SVN: r218261
      Richard Biener committed
    • match.pd: Restrict division combining to trunc_div and exact_div. · 28093105
      2014-12-02  Richard Biener  <rguenther@suse.de>
      
      	* match.pd: Restrict division combining to trunc_div and
      	exact_div.
      
      From-SVN: r218260
      Richard Biener committed
    • re PR fortran/64137 (Fortran FE builds invalid GENERIC) · e1b7f42e
      2014-12-02  Richard Biener  <rguenther@suse.de>
      
      	PR fortran/64137
      	* trans-intrinsic.c (gfc_conv_intrinsic_minmaxloc): Check
      	proper expressions type, use proper type for computing
      	-Huge - 1.
      
      From-SVN: r218259
      Richard Biener committed
    • sparc.c (sparc_atomic_assign_expand_fenv): Remove NULL last argument from create_tmp_var calls. · 9b489f31
      	* config/sparc/sparc.c (sparc_atomic_assign_expand_fenv):
      	Remove NULL last argument from create_tmp_var calls.
      	* config/mips/mips.c (mips_atomic_assign_expand_fenv): Likewise.
      	* config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv): Likewise.
      	* config/i386/i386.c (add_condition_to_bb,
      	ix86_atomic_assign_expand_fenv): Likewise.
      	* config/mep/mep.c (mep_gimplify_va_arg_expr): Likewise.
      	* config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
      	* config/aarch64/aarch64-builtins.c
      	(aarch64_atomic_assign_expand_fenv): Likewise.
      	* config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
      	Likewise.
      	* config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): Likewise.
      	* config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Likewise.
      	* config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
      
      From-SVN: r218257
      Jakub Jelinek committed
    • alpha.c (alpha_gimple_fold_builtin): Use gimple_build_assign instead of… · 0d3d8152
      alpha.c (alpha_gimple_fold_builtin): Use gimple_build_assign instead of gimple_build_assign_with_ops and swap the...
      
      	* config/alpha/alpha.c (alpha_gimple_fold_builtin): Use
      	gimple_build_assign instead of gimple_build_assign_with_ops and swap
      	the order of first two arguments.
      	* config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
      	Likewise.  Remove last NULL_TREE argument.
      
      From-SVN: r218256
      Jakub Jelinek committed
    • Define *_at_thread_exit() functions. · 9db7c931
      	* config/abi/pre/gnu.ver: Add new exports.
      	* include/std/condition_variable (notify_all_at_thread_exit): Declare.
      	(__at_thread_exit_elt): New base class.
      	* include/std/future: Add comments documenting the implementation.
      	(__future_base::_State_baseV2::_State_baseV2()): Use brace-or-equal
      	initializers and define constructor as defaulted.
      	(__future_base::_State_baseV2::_M_ready): Replace member function
      	with member variable.
      	(__future_base::_State_baseV2::_M_set_result): Set _M_ready.
      	(__future_base::_State_baseV2::_M_set_delayed_result): Define.
      	(__future_base::_State_baseV2::_M_break_promise): Set _M_ready.
      	(__future_base::_State_baseV2::_Make_ready): New helper class.
      	(__future_base::_Deferred_state::_M_has_deferred): Remove requirement
      	for caller to own mutex.
      	(__future_base::_Async_state_impl::~_Async_state_impl): Call join
      	directly.
      	(__future_base::_Task_state_base::_M_run): Take arguments by
      	reference.
      	(__future_base::_Task_state_base::_M_run_delayed): Declare new pure
      	virtual function.
      	(__future_base::_Task_state::_M_run_delayed): Define override.
      	(promise::set_value_at_thread_exit): Define.
      	(promise::set_exception_at_thread_exit): Define.
      	(packaged_task::make_ready_at_thread_exit): Define.
      	* src/c++11/condition_variable.cc (notify_all_at_thread_exit): Define.
      	* src/c++11/future.cc
      	(__future_base::_State_baseV2::_Make_ready::_M_set): Define.
      	* testsuite/30_threads/condition_variable/members/3.cc: New.
      	* testsuite/30_threads/packaged_task/members/at_thread_exit.cc: New.
      	* testsuite/30_threads/promise/members/at_thread_exit.cc: New.
      
      From-SVN: r218255
      Jonathan Wakely committed
    • Daily bump. · 8581fd64
      From-SVN: r218254
      GCC Administrator committed
  3. 01 Dec, 2014 9 commits