1. 20 Nov, 2015 25 commits
  2. 19 Nov, 2015 15 commits
    • fix PR68428: ignore bb dominated by the scop->exit · a378e922
      Co-Authored-By: Sebastian Pop <s.pop@samsung.com>
      
      From-SVN: r230632
      Aditya Kumar committed
    • fix PR68341: correctly compute the insertion point for close phi nodes · 2927ca4b
      Co-Authored-By: Sebastian Pop <s.pop@samsung.com>
      
      From-SVN: r230631
      Aditya Kumar committed
    • add testcase for PR68335 · deca2146
      Co-Authored-By: Sebastian Pop <s.pop@samsung.com>
      
      From-SVN: r230630
      Aditya Kumar committed
    • re PR c++/68422 (compile-time cost of sizeof... is quadratic) · e3f8abd6
      	PR c++/68422
      
      	* cp-tree.h (PACK_EXPANSION_SIZEOF_P): New.
      	* parser.c (cp_parser_sizeof_pack): Set it.
      	* pt.c 	(tsubst_copy) [SIZEOF_EXPR]: Likewise.
      	(tsubst_pack_expansion): Improve T... shortcut for expression packs.
      
      From-SVN: r230629
      Jason Merrill committed
    • nvptx.h (SUPPORTS_WEAK): Define. · 0766660b
      	gcc/
      	* config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
      	* config/nvptx/nvptx.c (nvptx_write_function_decl): Support
      	DECL_WEAK.
      	(nvptx_declare_objec_name): Likewise.
      
      	gcc/testsuite/
      	* lib/target-supports.exp (check_weak_available): Add nvptx-*-*.
      	* gcc.dg/attr-weakref-1.c: Skip for nvptx-*-*
      	* gcc.dg/special/weak-2.c: Likewise.
      	* gcc.dg/weak/weak-12.c: Likewise.
      	* gcc.dg/weak/weak-15.c: Likewise.
      	* gcc.dg/weak/weak-16.c: Likewise.
      	* gcc.dg/weak/weak-1.c: Likewise.
      	* gcc.dg/weak/weak-2.c: Likewise.
      	* gcc.dg/weak/weak-4.c: Likewise.
      	* gcc.dg/torture/pr53922.c: Likewise.
      	* gcc.dg/torture/pr60092.c: Likewise.
      
      From-SVN: r230628
      Nathan Sidwell committed
    • re PR c/68412 (ICE with -Wall -Wextra in fold_binary_loc()) · 433068cc
      	PR c/68412
      	* c-typeck.c (parser_build_binary_op): Properly handle
      	C_MAYBE_CONST_EXPR before calling warn_tautological_cmp.
      
      	* gcc.dg/pr68412-2.c: New test.
      	* gcc.dg/pr68412.c: New test.
      
      From-SVN: r230627
      Marek Polacek committed
    • fix bootstrap without ISL on old linkers · 09b574dd
      With and without this patch passes bootstrap on x86_64-linux with and without ISL.
      The problem occurs on systems with older linkers that do not remove dead symbols.
      
      From-SVN: r230625
      Aditya Kumar committed
    • reduction-dbl.c: New. · 2d256816
      	* libgomp.oacc-c-c++-common/reduction-dbl.c: New.
      	* libgomp.oacc-c-c++-common/reduction-flt.c: New.
      	* libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
      	* libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
      	* libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
      	and fix.
      	* libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
      	* libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
      
      From-SVN: r230621
      Nathan Sidwell committed
    • re PR c++/68396 (function auto-deduced return types get incorrectly classified as parameter packs) · 0398c183
      	PR c++/68396
      
      2015-11-19  Ryan Burn  <contact@rnburn.com>
      
      	* pt.c (find_parameter_packs_r) [DECLTYPE_TYPE]: When traversing
      	the DECLTYPE_TYPE_EXPR, set type_pack_expansion_p to false.
      
      From-SVN: r230620
      Ryan Burn committed
    • revert: rs6000.c (use_toc_relative_ref): Ignore type-limits warning. · 498cb3c3
      2015-11-19  David Edelsohn  <dje.gcc@gmail.com>
      
              Revert
      	2015-11-18  Alan Modra  <amodra@gmail.com>
      
      	* config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
      	type-limits warning.
      
      From-SVN: r230619
      David Edelsohn committed
    • [Patch, vrp] Allow VRP type conversion folding only for widenings upto word mode · 1014b6f5
      	* tree.h (desired_pro_or_demotion_p): New function.
      	* tree-vrp.c (simplify_cond_using_ranges): Call it.
      
      	* gcc.dg/tree-ssa/vrp98.c: New testcase.
      	* gcc.target/avr/uint8-single-reg.c: New testcase.
      
      From-SVN: r230618
      Senthil Kumar Selvaraj committed
    • sem_elab.adb (Check_Internal_Call_Continue): Correction to previous change... · 04a9bb6e
      2015-11-19  Bob Duff  <duff@adacore.com>
              
      	* sem_elab.adb (Check_Internal_Call_Continue): Correction to previous
      	change: correctly handle generic formals/actuals that look like
      	renamings.
      
      From-SVN: r230617
      Bob Duff committed
    • libgomp-plugin-intelmic.cpp (struct TargetImageDesc): New. · 4219ddb3
      liboffloadmic/
      	* plugin/libgomp-plugin-intelmic.cpp (struct TargetImageDesc): New.
      	(ImgDescMap): New typedef.
      	(image_descriptors): New static var.
      	(init): Allocate image_descriptors.
      	(offload): Remove vars2 argument.  Pass NULL to __offload_offload1
      	instead of vars2.
      	(unregister_main_image): New static function.
      	(register_main_image): Call unregister_main_image at exit.
      	(GOMP_OFFLOAD_init_device): Print device number, fix offload args.
      	(GOMP_OFFLOAD_fini_device): Likewise.
      	(get_target_table): Remove vd1g and vd2g, don't pass them to offload.
      	(offload_image): Remove declaration of the struct TargetImage.
      	Free table.  Insert new descriptor into image_descriptors.
      	(GOMP_OFFLOAD_unload_image): Call __offload_unregister_image, free
      	the corresponding descriptor, and remove it from address_table and
      	image_descriptors.
      	(GOMP_OFFLOAD_alloc): Print device number, remove vd1g.
      	(GOMP_OFFLOAD_free): Likewise.
      	(GOMP_OFFLOAD_host2dev): Print device number, remove vd1g and vd2g.
      	(GOMP_OFFLOAD_dev2host): Likewise.
      	(GOMP_OFFLOAD_run): Print device number, remove vd1g.
      	* plugin/offload_target_main.cpp (__offload_target_table_p1): Remove
      	vd2, don't pass it to __offload_target_enter.
      	(__offload_target_table_p2): Likewise.
      	(__offload_target_alloc): Likewise.
      	(__offload_target_free): Likewise.
      	(__offload_target_host2tgt_p1): Likewise.
      	(__offload_target_host2tgt_p2): Likewise.
      	(__offload_target_tgt2host_p1): Likewise.
      	(__offload_target_tgt2host_p2): Likewise.
      	(__offload_target_run): Likewise.
      	(__offload_target_tgt2tgt): Remove vd1g, don't pass it to
      	__offload_target_enter.
      
      From-SVN: r230614
      Ilya Verbin committed
    • re PR c++/67409 (tree-cfg.c dereferences a NULL pointer) · 2c443701
      	PR c++/67409
      	* decl.c (identify_goto): Add LOC and DIAG_KIND arguments, call
      	emit_diagnostic instead of permerror.
      	(check_previous_goto_1): Adjust identify_goto callers, treat all
      	cases but crossing initialization and entering scope of decl with
      	non-trivial dtor as unconditional hard errors.
      	(check_goto): Use identify_goto.  Treat all cases but crossing
      	initialization and entering scope of decl with non-trivial dtor
      	as unconditional hard errors.
      
      	* g++.dg/eh/goto3.C: New test.
      
      Co-Authored-By: Manuel López-Ibáñez <manu@gcc.gnu.org>
      
      From-SVN: r230613
      Jakub Jelinek committed
    • fwprop.c (update_uses): Use flag_checking instead of gcc_checking_assert. · 1e1ce42e
      	* fwprop.c (update_uses): Use flag_checking instead of
      	gcc_checking_assert.
      
      From-SVN: r230612
      Michael Matz committed