1. 19 Jul, 2017 19 commits
    • Fix Unwind support on DragonFly BSD after sigtramp move · de742204
      2017-07-19  John Marino  <gnugcc@marino.st>
      
      	* config/i386/dragonfly-unwind.h: Handle sigtramp relocation.
      
      From-SVN: r250354
      John Marino committed
    • Fix indentation in std::basic_filebuf member functions · e020783c
      	* include/bits/fstream.tcc (basic_filebuf::xsgetn)
      	(basic_filebuf::xsputn, basic_filebuf::seekoff): Fix indentation.
      
      From-SVN: r250353
      Jonathan Wakely committed
    • Fix assert in gimple_phi_set_arg · 8f860bca
      2017-07-19  Tom de Vries  <tom@codesourcery.com>
      
      	* gimple.h (gimple_phi_set_arg): Make assert more strict.
      
      From-SVN: r250352
      Tom de Vries committed
    • Fix assert in gimple_phi_arg · a6e07e27
      2017-07-19  Tom de Vries  <tom@codesourcery.com>
      
      	* gimple.h (gimple_phi_arg): Make assert more strict.
      
      From-SVN: r250351
      Tom de Vries committed
    • Now adding the mmintrin.h intrinsic headers. The DG tests will follow. · a85492f3
      2017-07-19  Steven Munroe  <munroesj@gcc.gnu.org>
      
      	* config.gcc (powerpc*-*-*): Add mmintrin.h.
      	* config/rs6000/mmintrin.h: New file.
      	* config/rs6000/x86intrin.h [__ALTIVEC__]: Include mmintrin.h.
      
      From-SVN: r250350
      Steven Munroe committed
    • Fix indentation in libstdc++ testsuite utils · 4e66b02b
      	* testsuite/util/testsuite_iterators.h: Fix indentation.
      
      From-SVN: r250349
      Jonathan Wakely committed
    • class.c (add_implicitly_declared_members): Use classtype_has_move_assign_or_move_ctor_p. · 4a18c066
      	* class.c (add_implicitly_declared_members): Use
      	classtype_has_move_assign_or_move_ctor_p.
      	(classtype_has_move_assign_or_move_ctor,
      	classtype_has_user_move_assign_or_move_ctor_p): Merge into ...
      	(classtype_has_move_assign_or_move_ctor_p): ... this new function.
      	* cp-tree.h (classtype_has_user_move_assign_or_move_ctor_p):
      	Replace with ...
      	(classtype_has_move_assign_or_move_ctor_p): ... this.
      	* method.c (maybe_explain_implicit_delete, lazily_declare_fn): Adjust.
      	* tree.c (type_has_nontrivial_copy_init): Adjust.
      
      From-SVN: r250344
      Nathan Sidwell committed
    • re PR libquadmath/65757 (gfortran gives incorrect result for anint with real*16 argument) · 1eba0867
      	PR libquadmath/65757
      	* quadmath-imp.h (math_opt_barrier, math_force_eval,
      	math_narrow_eval, math_check_force_underflow,
      	math_check_force_underflow_nonneg): Define.
      	* math/ceilq.c: Backport changes from upstream glibc
      	between 2012-11-01 and 2017-07-13.
      	* math/remquoq.c: Likewise.
      	* math/expq.c: Likewise.
      	* math/llroundq.c: Likewise.
      	* math/logq.c: Likewise.
      	* math/atanq.c: Likewise.
      	* math/nearbyintq.c: Likewise.
      	* math/scalblnq.c: Likewise.
      	* math/finiteq.c: Likewise.
      	* math/atanhq.c: Likewise.
      	* math/expm1q.c: Likewise.
      	* math/sinhq.c: Likewise.
      	* math/log10q.c: Likewise.
      	* math/rintq.c: Likewise.
      	* math/roundq.c: Likewise.
      	* math/fmaq.c: Likewise.
      	* math/erfq.c: Likewise.
      	* math/log2q.c: Likewise.
      	* math/lroundq.c: Likewise.
      	* math/j1q.c: Likewise.
      	* math/scalbnq.c: Likewise.
      	* math/truncq.c: Likewise.
      	* math/frexpq.c: Likewise.
      	* math/sincosq.c: Likewise.
      	* math/tanhq.c: Likewise.
      	* math/asinq.c: Likewise.
      	* math/coshq.c: Likewise.
      	* math/j0q.c: Likewise.
      	* math/asinhq.c: Likewise.
      	* math/floorq.c: Likewise.
      	* math/sinq_kernel.c: Likewise.
      	* math/powq.c: Likewise.
      	* math/hypotq.c: Likewise.
      	* math/sincos_table.c: Likewise.
      	* math/rem_pio2q.c: Likewise.
      	* math/nextafterq.c: Likewise.
      	* math/log1pq.c: Likewise.
      	* math/sincosq_kernel.c: Likewise.
      	* math/tanq.c: Likewise.
      	* math/acosq.c: Likewise.
      	* math/lrintq.c: Likewise.
      	* math/llrintq.c: Likewise.
      
      From-SVN: r250343
      Jakub Jelinek committed
    • re PR tree-optimization/81346 (Missed constant propagation into comparison) · 564e405c
      	PR tree-optimization/81346
      	* match.pd: Optimize (X - 1U) <= INT_MAX-1U into (int) X > 0.
      
      	* gcc.dg/tree-ssa/pr81346-5.c: New test.
      
      From-SVN: r250342
      Jakub Jelinek committed
    • Add v2di support for nvptx · 3717fbe3
      2017-07-19  Tom de Vries  <tom@codesourcery.com>
      
      	* config/nvptx/nvptx-modes.def: Add V2DImode.
      	* config/nvptx/nvptx-protos.h (nvptx_data_alignment): Declare.
      	* config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Handle V2DImode.
      	(nvptx_output_mov_insn): Handle lack of mov.b128.
      	(nvptx_print_operand): Handle 'H' and 'L' codes.
      	(nvptx_vector_mode_supported): Allow V2DImode.
      	(nvptx_preferred_simd_mode): New function.
      	(nvptx_data_alignment): New function.
      	(TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Redefine to
      	nvptx_preferred_simd_mode.
      	* config/nvptx/nvptx.h (STACK_BOUNDARY, BIGGEST_ALIGNMENT): Change from
      	64 to 128 bits.
      	(DATA_ALIGNMENT): Define.  Set to nvptx_data_alignment.
      
      	* config/nvptx/nvptx.md (VECIM): Add V2DI.
      
      	* gcc.target/nvptx/decl-init.c: Update alignment.
      	* gcc.target/nvptx/slp-2-run.c: New test.
      	* gcc.target/nvptx/slp-2.c: New test.
      	* gcc.target/nvptx/v2di.c: New test.
      
      	* testsuite/libgomp.oacc-c/vec.c: New test.
      
      From-SVN: r250341
      Tom de Vries committed
    • Add v2si support for nvptx · b98b34b7
      2017-07-19  Tom de Vries  <tom@codesourcery.com>
      
      	* config/nvptx/nvptx-modes.def: New file.  Add V2SImode.
      	* config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Handle V2SImode.
      	(nvptx_vector_mode_supported): New function.  Allow V2SImode.
      	(TARGET_VECTOR_MODE_SUPPORTED_P): Redefine to nvptx_vector_mode_supported.
      	* config/nvptx/nvptx.md (VECIM): New mode iterator. Add V2SI.
      	(mov<VECIM>_insn): New define_insn.
      	(define_expand "mov<VECIM>): New define_expand.
      
      	* gcc.target/nvptx/slp-run.c: New test.
      	* gcc.target/nvptx/slp.c: New test.
      	* gcc.target/nvptx/v2si-cvt.c: New test.
      	* gcc.target/nvptx/v2si-run.c: New test.
      	* gcc.target/nvptx/v2si.c: New test.
      	* gcc.target/nvptx/vec.inc: New test.
      
      From-SVN: r250340
      Tom de Vries committed
    • Add generic v2 vector mode support for nvptx · 1310ff03
      2017-07-19  Tom de Vries  <tom@codesourcery.com>
      
      	* config/nvptx/nvptx.c (nvptx_print_operand): Handle v2 vector mode.
      
      From-SVN: r250339
      Tom de Vries committed
    • re PR tree-optimization/81346 (Missed constant propagation into comparison) · 8d1628eb
      	PR tree-optimization/81346
      	* fold-const.h (fold_div_compare, range_check_type): Declare.
      	* fold-const.c (range_check_type): New function.
      	(build_range_check): Use range_check_type.
      	(fold_div_compare): No longer static, rewritten into
      	a match.pd helper function.
      	(fold_comparison): Don't call fold_div_compare here.
      	* match.pd (X / C1 op C2): New optimization using fold_div_compare
      	as helper function.
      
      	* gcc.dg/tree-ssa/pr81346-1.c: New test.
      	* gcc.dg/tree-ssa/pr81346-2.c: New test.
      	* gcc.dg/tree-ssa/pr81346-3.c: New test.
      	* gcc.dg/tree-ssa/pr81346-4.c: New test.
      	* gcc.target/i386/umod-3.c: Hide comparison against 1 from the
      	compiler to avoid X / C1 op C2 optimization to trigger.
      
      From-SVN: r250338
      Jakub Jelinek committed
    • tree.h (TYPE_MINVAL, [...]): Rename to ... · 20deef65
      	gcc/
      	* tree.h (TYPE_MINVAL, TYPE_MAXVAL): Rename to ...
      	(TYPE_MIN_VALUE_RAW, TYPE_MAX_VALUE_RAW): ... these.
      	* tree.c (find_decls_types_r, verify_type): Use
      	TYPE_{MIN,MAX}_VALUE_RAW.
      	* lto-streamer-out.c (DFS::DFS_write_tree_body): Likewise.
      	(hash_tree): Likewise.
      	* tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
      	Likewise.
      	* tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
      	Likewise.
      
      	gcc/cp/
      	* cp-tree.h (PACK_EXPANSION_PARAMETER_PACKS,
      	PACK_EXPANSION_EXTRA_ARGS): Use TYPE_{MIN,MAX}_VALUE_RAW.
      
      	gcc/lto/
      	* lto.c (mentions_vars_p_type): Use TYPE_{MIN,MAX}_VALUE_RAW.
      	(compare_tree_sccs_1, lto_fixup_prevailing_decls): Likewise.
      
      	gcc/objc/
      	* objc-act.h (CLASS_NST_METHODS, CLASS_CLS_METHODS): Use
      	TYPE_{MIN,MAX}_VALUE_RAW.
      
      From-SVN: r250337
      Nathan Sidwell committed
    • Fix an UBSAN test-case (PR sanitizer/63361). · 4d6ababc
      2017-07-19  Martin Liska  <mliska@suse.cz>
      
      	PR sanitizer/63361
      	* c-c++-common/ubsan/float-cast-overflow-1.c: Add either
      	-ffloat-store or -mieee for targets that need it.
      
      From-SVN: r250336
      Martin Liska committed
    • Handle equal-argument loop exit phi in expand_omp_for_static_chunk · d83cc5cc
      2017-07-18  Tom de Vries  <tom@codesourcery.com>
      
      	PR middle-end/81464
      	* omp-expand.c (expand_omp_for_static_chunk): Handle equal-argument loop
      	exit phi.
      
      	* gfortran.dg/pr81464.f90: New test.
      
      From-SVN: r250335
      Tom de Vries committed
    • Add myself to MAINTAINERS. · 8994b66f
      From-SVN: r250334
      Yury Gribov committed
    • Use dg-require-fileio in new test · 1f78c47b
      	* testsuite/27_io/basic_filebuf/sgetn/char/81395.cc: Add dg-require.
      
      From-SVN: r250333
      Jonathan Wakely committed
    • Daily bump. · af15ea9d
      From-SVN: r250332
      GCC Administrator committed
  2. 18 Jul, 2017 21 commits