platform/upstream/linaro-gcc.git
8 years ago2016-03-26 Richard Biener <rguenther@suse.de>
prathamesh3492 [Sat, 26 Mar 2016 10:08:47 +0000 (10:08 +0000)]
2016-03-26  Richard Biener  <rguenther@suse.de>
            Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

PR ipa/70366
* ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
instead of
TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
as 2nd argument to cl_optimization_restore().

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234490 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sat, 26 Mar 2016 00:16:14 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234489 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-25 Richard Henderson <rth@redhat.com>
law [Fri, 25 Mar 2016 23:37:13 +0000 (23:37 +0000)]
2016-03-25  Richard Henderson  <rth@redhat.com>

PR target/70120
* config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
* config/aarch64/aarch64-protos.h: Declare it.
* config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.

PR target/70120
* gcc.target/aarch64/pr70120-1.c: New.
* gcc.target/aarch64/pr70120-2.c: New.
* gcc.target/aarch64/pr70120-3.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234486 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/64266
jason [Fri, 25 Mar 2016 21:29:26 +0000 (21:29 +0000)]
PR c++/64266
PR c++/70353
Core issue 1962
* decl.c (cp_fname_init): Decay the initializer to pointer.
(cp_make_fname_decl): Set DECL_DECLARED_CONSTEXPR_P,
DECL_VALUE_EXPR, DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P.
Don't call cp_finish_decl.
* pt.c (tsubst_expr) [DECL_EXPR]: Set DECL_VALUE_EXPR,
DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P.  Don't call cp_finish_decl.
* constexpr.c (cxx_eval_constant_expression) [VAR_DECL]:
Handle DECL_VALUE_EXPR.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234484 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoAdjust dg-do directive in mangle2.C
ppalka [Fri, 25 Mar 2016 18:21:44 +0000 (18:21 +0000)]
Adjust dg-do directive in mangle2.C

gcc/testsuite/ChangeLog:

PR c++/62212
* g++.dg/template/mangle2.C: The dg-do directive should be
"compile" not "assemble".

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234482 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR lto/69650
law [Fri, 25 Mar 2016 16:15:39 +0000 (16:15 +0000)]
PR lto/69650
* directives.c (do_linemarker): Test for file left but not entered
here.
* line-map.c (linemap_add): Not here.

PR lto/69650
* gcc.dg/pr69650.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234481 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * g++.dg/ext/pr70290.C: Prune non-standard ABI.
dje [Fri, 25 Mar 2016 14:04:46 +0000 (14:04 +0000)]
    * g++.dg/ext/pr70290.C: Prune non-standard ABI.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234480 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[RS6000] PR70052, ICE compiling _Decimal128 test case
amodra [Fri, 25 Mar 2016 09:10:03 +0000 (09:10 +0000)]
[RS6000] PR70052, ICE compiling _Decimal128 test case

gcc/
PR target/70052
* config/rs6000/constraints.md (j): Simplify.
* config/rs6000/predicates.md (easy_fp_constant): Exclude
decimal float 0.D.
* config/rs6000/rs6000.md (zero_fp): New mode_attr.
(mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
in all constraint alternatives.
(movtd_64bit_nodm): Delete "j" constraint alternative.
gcc/testsuite/
* gcc.dg/dfp/pr70052.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234479 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * tree-ssa-propagate.c: Enhance docs for
aldyh [Fri, 25 Mar 2016 05:59:57 +0000 (05:59 +0000)]
* tree-ssa-propagate.c: Enhance docs for
SSA_PROP_NOT_INTERESTING.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234478 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * doc/extend.texi: Fix typo in documentation to pure attribute.
aldyh [Fri, 25 Mar 2016 04:00:17 +0000 (04:00 +0000)]
* doc/extend.texi: Fix typo in documentation to pure attribute.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234477 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/70319
danglin [Fri, 25 Mar 2016 00:59:02 +0000 (00:59 +0000)]
PR target/70319
* config/pa/pa.md (bswapdi2): Use a scratch register.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234475 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Fri, 25 Mar 2016 00:16:19 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234474 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoAlso test -O0 for OpenACC C, C++ offloading test cases
tschwinge [Thu, 24 Mar 2016 21:29:55 +0000 (21:29 +0000)]
Also test -O0 for OpenACC C, C++ offloading test cases

libgomp/
* testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
gcc-dg-runtest.
* testsuite/libgomp.oacc-c/c.exp: Likewise.
* testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
-fno-builtin-acc_on_device instead of -O0.
* testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
-O0.
* testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
Likewise.
* testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
* testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
Don't specify -O2.
* testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
Likewise.
* testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234471 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/70386
jason [Thu, 24 Mar 2016 19:21:38 +0000 (19:21 +0000)]
PR c++/70386

* constexpr.c (cxx_eval_bare_aggregate): Handle PMFs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234469 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agolibstdc++/69945 Add __gnu_cxx::__freeres hook
redi [Thu, 24 Mar 2016 18:13:40 +0000 (18:13 +0000)]
libstdc++/69945 Add __gnu_cxx::__freeres hook

PR libstdc++/69945
* config/abi/pre/gnu.ver: Add new symbol.
* libsupc++/eh_alloc.cc (__gnu_cxx::__freeres): Define.
* testsuite/18_support/free_eh_pool.cc: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234465 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/70323
jason [Thu, 24 Mar 2016 17:59:58 +0000 (17:59 +0000)]
PR c++/70323

* constexpr.c (cxx_eval_call_expression): Don't cache result if
*overflow_p.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234463 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-24 Richard Henderson <rth@redhat.com>
law [Thu, 24 Mar 2016 17:52:11 +0000 (17:52 +0000)]
2016-03-24  Richard Henderson  <rth@redhat.com>

PR middle-end/69845
* fold-const.c (extract_muldiv_1): Correct test for multiplication
overflow.

PR middle-end/69845
* gcc.dg/tree-ssa/pr69845-1.c: New test.
* gcc.dg/tree-ssa/pr69845-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234462 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoAdd missing initialization in goacc/host_data-tree.f95
vries [Thu, 24 Mar 2016 16:16:06 +0000 (16:16 +0000)]
Add missing initialization in goacc/host_data-tree.f95

2016-03-24  Tom de Vries  <tom@codesourcery.com>

* gfortran.dg/goacc/host_data-tree.f95: Add missing initialization.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234460 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoAdd goacc/uninit-use-device-clause.{c,f95}
vries [Thu, 24 Mar 2016 16:15:56 +0000 (16:15 +0000)]
Add goacc/uninit-use-device-clause.{c,f95}

2016-03-24  Tom de Vries  <tom@codesourcery.com>

* c-c++-common/goacc/uninit-use-device-clause.c: New test.
* gfortran.dg/goacc/uninit-use-device-clause.f95: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234459 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoAdd goacc/uninit-dim-clause.{c,f95}
vries [Thu, 24 Mar 2016 16:15:45 +0000 (16:15 +0000)]
Add goacc/uninit-dim-clause.{c,f95}

2016-03-24  Tom de Vries  <tom@codesourcery.com>

* c-c++-common/goacc/uninit-dim-clause.c: New test.
* gfortran.dg/goacc/uninit-dim-clause.f95: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234458 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoFix PR c++/62212 (ICE during mangling of array type)
ppalka [Thu, 24 Mar 2016 15:59:53 +0000 (15:59 +0000)]
Fix PR c++/62212 (ICE during mangling of array type)

gcc/cp/ChangeLog:

PR c++/62212
* tree.c (build_cplus_array_type): Determine type-dependentess
with uses_template_parms instead of with dependent_type_p.

gcc/testsuite/ChangeLog:

PR c++/62212
* g++.dg/template/mangle2.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234457 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
uros [Thu, 24 Mar 2016 14:48:05 +0000 (14:48 +0000)]
* config/i386/i386.md (*anddi3_doubleword): Generate AND insn
using ix86_expand_binary_operator instead of gen_andsi3.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234456 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-24 Richard Biener <rguenther@suse.de>
rguenth [Thu, 24 Mar 2016 14:07:42 +0000 (14:07 +0000)]
2016-03-24  Richard Biener  <rguenther@suse.de>

PR tree-optimization/70396
* tree-vect-stmts.c (vectorizable_comparison): Use
get_vectype_for_scalar_type.

* gcc.dg/torture/pr70396.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234455 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoProperly assign to packet header (PR hsa/70394)
marxin [Thu, 24 Mar 2016 13:04:12 +0000 (13:04 +0000)]
Properly assign to packet header (PR hsa/70394)

* plugin/plugin-hsa.c (packet_store_release): New function
that is taken from the HSA runtime manual.
(GOMP_OFFLOAD_run): Use the function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234454 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-24 Richard Biener <rguenther@suse.de>
rguenth [Thu, 24 Mar 2016 12:19:56 +0000 (12:19 +0000)]
2016-03-24  Richard Biener  <rguenther@suse.de>

PR middle-end/70370
* gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
with register bases.

* gcc.dg/torture/pr70370.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234453 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoAdd missing initializations in oacc testcases
vries [Thu, 24 Mar 2016 11:29:37 +0000 (11:29 +0000)]
Add missing initializations in oacc testcases

2016-03-24  Tom de Vries  <tom@codesourcery.com>

* gfortran.dg/goacc/data-tree.f95: Add missing initialization.
* gfortran.dg/goacc/kernels-tree.f95: Same.
* gfortran.dg/goacc/parallel-tree.f95: Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234452 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoAdd goacc/uninit-if-clause.{c,f95}
vries [Thu, 24 Mar 2016 11:29:27 +0000 (11:29 +0000)]
Add goacc/uninit-if-clause.{c,f95}

2016-03-24  Tom de Vries  <tom@codesourcery.com>

* c-c++-common/goacc/uninit-if-clause.c: New test.
* gfortran.dg/goacc/uninit-if-clause.f95: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234451 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/70290
jakub [Thu, 24 Mar 2016 11:26:44 +0000 (11:26 +0000)]
PR target/70290
* g++.dg/ext/pr70290.C: Add -Wno-psabi -w to dg-options.  Formatting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234450 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-24 Richard Biener <rguenther@suse.de>
rguenth [Thu, 24 Mar 2016 08:17:43 +0000 (08:17 +0000)]
2016-03-24  Richard Biener  <rguenther@suse.de>

PR tree-optimization/70372
* tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
build_all_ones_cst to also handle vector types correctly.

* gcc.dg/tree-ssa/pr70372.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234449 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Thu, 24 Mar 2016 00:16:15 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234447 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoFix PR c++/70347 (default member initializer not picked up by union)
ppalka [Wed, 23 Mar 2016 21:08:32 +0000 (21:08 +0000)]
Fix PR c++/70347 (default member initializer not picked up by union)

gcc/cp/ChangeLog:

PR c++/70347
* typeck.c (process_init_constructor_union): If the initializer
is empty, use the union's NSDMI if it has one.

gcc/testsuite/ChangeLog:

PR c++/70347
* g++.dg/cpp1y/nsdmi-union1.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234443 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoFix PR c++/70332 (ICE due to aggregate initialization of NSDMI)
ppalka [Wed, 23 Mar 2016 21:02:34 +0000 (21:02 +0000)]
Fix PR c++/70332 (ICE due to aggregate initialization of NSDMI)

gcc/cp/ChangeLog:

PR c++/70332
* pt.c (tsubst_copy) [PARM_DECL]: Handle the use of 'this' in an
NSDMI that's part of an aggregrate initialization.

gcc/testsuite/ChangeLog:

PR c++/70332
* g++.dg/cpp1y/nsdmi-aggr5.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234442 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
meissner [Wed, 23 Mar 2016 20:33:28 +0000 (20:33 +0000)]
2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/70381
* config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
-mfloat128 here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234441 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/70001
jakub [Wed, 23 Mar 2016 18:55:38 +0000 (18:55 +0000)]
PR c++/70001
* constexpr.c (cxx_eval_vec_init_1): Reuse CONSTRUCTOR initializers
for 1..max even for multi-dimensional arrays.  Call unshare_expr
on it.

* g++.dg/cpp0x/constexpr-70001-4.C: New test.
* g++.dg/cpp1y/pr70001.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234439 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/70323
jakub [Wed, 23 Mar 2016 18:45:26 +0000 (18:45 +0000)]
PR c++/70323
* constexpr.c (cxx_eval_constant_expression): Diagnose overflow
on TREE_OVERFLOW constants.

* g++.dg/cpp0x/constexpr-70323.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234438 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/70376
jakub [Wed, 23 Mar 2016 18:42:19 +0000 (18:42 +0000)]
PR c++/70376
* cp-gimplify.c (genericize_omp_for_stmt): Don't walk OMP_FOR_CLAUSES
for OMP_TASKLOOP here.
(cp_genericize_r): Handle OMP_TASKLOOP like OMP_TASK, except do call
genericize_omp_for_stmt instead of cp_walk_tree on OMP_BODY.

* testsuite/libgomp.c++/pr70376.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234437 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/69315
jakub [Wed, 23 Mar 2016 18:36:25 +0000 (18:36 +0000)]
PR c++/69315
* cp-tree.h (defer_mark_used_calls, deferred_mark_used_calls): Remove.
* decl.c (defer_mark_used_calls, deferred_mark_used_calls): Remove.
(finish_function): Don't set or test them.
* decl2.c (mark_used): Don't handle defer_mark_used_calls.

* g++.dg/cpp0x/constexpr-69315.C: New test.
* g++.dg/cpp0x/variadic122.C: Change one dg-warning into dg-bogus.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234436 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/70344
jason [Wed, 23 Mar 2016 18:23:04 +0000 (18:23 +0000)]
PR c++/70344

* constexpr.c (cxx_eval_call_expression): Catch invalid recursion.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234434 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/69884
mpolacek [Wed, 23 Mar 2016 17:51:56 +0000 (17:51 +0000)]
PR c++/69884
* c.opt (Wignored-attributes): New option.

* pt.c (canonicalize_type_argument): Use OPT_Wignored_attributes.

* doc/invoke.texi: Document -Wignored-attributes.

* g++.dg/warn/Wignored-attributes-1.C: New test.
* g++.dg/warn/Wignored-attributes-2.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234433 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoAdd missing initializations in oacc testcases
vries [Wed, 23 Mar 2016 17:32:05 +0000 (17:32 +0000)]
Add missing initializations in oacc testcases

2016-03-23  Tom de Vries  <tom@codesourcery.com>

* c-c++-common/goacc/kernels-default.c (foo): Add missing
initialization.
* gfortran.dg/goacc/private-3.f95 (test): Same.
* gfortran.dg/goacc/routine-5.f90 (gang, worker, vector, seq): Add
missing use param.

* testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
initialization of lresult and lvresult.
* testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234432 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR tree-optimization/69042
amker [Wed, 23 Mar 2016 15:26:43 +0000 (15:26 +0000)]
PR tree-optimization/69042
* params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
parameter from 30 to 40.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234430 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR tree-optimization/69042
amker [Wed, 23 Mar 2016 15:24:20 +0000 (15:24 +0000)]
PR tree-optimization/69042
* tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
for use with constant offset stripped in base.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234429 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR libgomp/69414
jnorris [Wed, 23 Mar 2016 14:38:55 +0000 (14:38 +0000)]
PR libgomp/69414
* oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
* testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
* testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
* testsuite/libgomp.oacc-fortran/update-1.f90: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234428 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-23 Richard Biener <rguenther@suse.de>
rguenth [Wed, 23 Mar 2016 13:40:50 +0000 (13:40 +0000)]
2016-03-23  Richard Biener  <rguenther@suse.de>

PR middle-end/70251
* match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
mode compatibility check.
(A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234427 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR tree-optimization/64058
law [Wed, 23 Mar 2016 13:20:16 +0000 (13:20 +0000)]
PR tree-optimization/64058
* tree-ssa-coalesce.c (struct coalesce_pair): Add new field
CONFLICT_COUNT.
(struct ssa_conflicts): Move up earlier in the file.
(conflicts_, var_map_): New static variables.
(initialize_conflict_count): New function to initialize the
CONFLICT_COUNT field for each conflict pair.
(compare_pairs): Lazily initialize the conflict count and use it
as the first tie-breaker.
(sort_coalesce_list): Add new arguments conflicts, map.  Initialize
and wipe conflicts_ and map_ around the call to qsort.  Remove
special case for 2 coalesce pairs.
* bitmap.c (bitmap_count_unique_bits): New function.
(bitmap_count_bits_in_word): New function, extracted from
bitmap_count_bits.
(bitmap_count_bits): Use bitmap_count_bits_in_word.
* bitmap.h (bitmap_count_unique_bits): Declare it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234425 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agogcc/
ienkovich [Wed, 23 Mar 2016 10:55:37 +0000 (10:55 +0000)]
gcc/

PR target/69917
* config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
transparent alias chain for decl assembler name.
* config/sol2.c (solaris_assemble_visibility): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234423 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[ARM] Reduce size of arm1020e automaton
ktkachov [Wed, 23 Mar 2016 10:39:10 +0000 (10:39 +0000)]
[ARM] Reduce size of arm1020e automaton

* config/arm/arm1020e.md (1020call_op): Reduce reservation
duration.
(v10_fdivs): Likewise.
(v10_fdivd): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234422 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[ARM] Split out armv7ve effective target check
ktkachov [Wed, 23 Mar 2016 10:32:54 +0000 (10:32 +0000)]
[ARM] Split out armv7ve effective target check

* lib/target-supports.exp: Remove v7ve entry from loop
creating effective target checks.
(check_effective_target_arm_arch_v7ve_ok): New procedure.
(add_options_for_arm_arch_v7ve): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234420 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[ARM] PR driver/70132: Avoid double fclose in driver-arm.c
ktkachov [Wed, 23 Mar 2016 10:16:31 +0000 (10:16 +0000)]
[ARM] PR driver/70132: Avoid double fclose in driver-arm.c

PR driver/70132
* config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
to not call fclose twice on file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234419 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoCopy shadow argument conditionally (PR hsa/70337)
marxin [Wed, 23 Mar 2016 09:59:51 +0000 (09:59 +0000)]
Copy shadow argument conditionally (PR hsa/70337)

PR hsa/70337
* plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
argument just in case a dispatched kernel uses that argument.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234418 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR tree-optimization/70354
jakub [Wed, 23 Mar 2016 09:52:00 +0000 (09:52 +0000)]
PR tree-optimization/70354
* tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
oprnd0 is wider than oprnd1 and there is a cast from the wider
type to oprnd1, mask it with the mask of the narrower type.

* gcc.dg/vect/pr70354-1.c: New test.
* gcc.dg/vect/pr70354-2.c: New test.
* gcc.target/i386/avx2-pr70354-1.c: New test.
* gcc.target/i386/avx2-pr70354-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234417 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/70321
jakub [Wed, 23 Mar 2016 09:49:12 +0000 (09:49 +0000)]
PR target/70321
* config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
Optimize TARGET_STV splitters, if high or low word of last argument
is 0 or -1.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234416 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
edlinger [Wed, 23 Mar 2016 00:41:52 +0000 (00:41 +0000)]
2016-03-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * include/Makefile.am (install-freestanding-headers): Add
        concept_check.h and move.h to the installed headers.
        * include/Makefile.in: Regenerated.
        * include/bits/concept_check.h: Ignore _GLIBCXX_CONCEPT_CHECKS for
        freestanding implementations.
        * doc/xml/manual/using.xml (_GLIBCXX_CONCEPT_CHECKS): Mention
        that this macro has no effect for freestanding implementations.
        * doc/html/manual/using_macros.html: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234414 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Wed, 23 Mar 2016 00:16:13 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234413 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/70232
law [Tue, 22 Mar 2016 21:32:34 +0000 (21:32 +0000)]
PR target/70232
tree-ssa-threadbackward.c
(fsm_find_control_statement_thread_paths): Correctly distinguish
between old style jump threads vs FSM jump threads.

PR target/70232
* gcc.dg/tree-ssa/pr70232.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234409 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-22 Michael Meissner <meissner@linux.vnet.ibm.com>
meissner [Tue, 22 Mar 2016 21:05:43 +0000 (21:05 +0000)]
2016-03-22  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR libgcc/70363
* config/rs6000/extendkftf2-sw.c (__extendkftf2_sw): If libgcc was
built with an assembler that does not support ISA 3.0
instructions, rename __extendkftf2_sw to __extendkftf2.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234408 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
law [Tue, 22 Mar 2016 19:00:14 +0000 (19:00 +0000)]
2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>

PR target/70302
* config/i386/i386.c (scalar_chain::convert_op): Support
uninitialized register usage case.

PR target/70302
* gcc.target/i386/pr70302.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234406 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-22 Richard Biener <rguenther@suse.de>
rguenth [Tue, 22 Mar 2016 14:38:42 +0000 (14:38 +0000)]
2016-03-22  Richard Biener  <rguenther@suse.de>

PR middle-end/70251
* genmatch.c (gen_transform): Adjust last parameter to a three-state
int...
(capture::gen_transform): ... to change behavior when substituting
a condition into cond or not-cond expr context.
(dt_simplify::gen_1): Adjust.
* gimple-match-head.c: Include gimplify.h for unshare_expr.
* match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
last change and instead change to
A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
(A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.

* g++.dg/torture/pr70251.C: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234405 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoFix endianness issue for moxiebox
green [Tue, 22 Mar 2016 14:25:44 +0000 (14:25 +0000)]
Fix endianness issue for moxiebox

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234404 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR c/69993: improvements to wording of -Wmisleading-indentation
dmalcolm [Tue, 22 Mar 2016 14:20:49 +0000 (14:20 +0000)]
PR c/69993: improvements to wording of -Wmisleading-indentation

gcc/c-family/ChangeLog:
PR c/69993
* c-indentation.c (warn_for_misleading_indentation): Rewrite the
diagnostic text, reversing the order of the warning and note so
that they appear in source order.

gcc/testsuite/ChangeLog:
PR c/69993
* c-c++-common/Wmisleading-indentation-3.c: New test, based on
Wmisleading-indentation.c.
* c-c++-common/Wmisleading-indentation.c: Update thoughout to
reflect change to diagnostic text and order of messages.
* gcc.dg/plugin/location-overflow-test-2.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234403 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago* g++.dg/ext/java-3.C: Don't compile on AIX.
dje [Tue, 22 Mar 2016 13:46:09 +0000 (13:46 +0000)]
* g++.dg/ext/java-3.C: Don't compile on AIX.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234402 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-22 Richard Biener <rguenther@suse.de>
rguenth [Tue, 22 Mar 2016 13:23:00 +0000 (13:23 +0000)]
2016-03-22  Richard Biener  <rguenther@suse.de>

PR middle-end/70333
* fold-const.c (extract_muldiv_1): Properly perform multiplication
in the wide type.

* gcc.dg/torture/pr70333.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234401 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoRemove duplicated AVX-512VL bit check.
kyukhin [Tue, 22 Mar 2016 13:17:11 +0000 (13:17 +0000)]
Remove duplicated AVX-512VL bit check.

gcc/
* config/i386/i386.c (def_builtin): Remove duplicated functionality.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234400 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agogcc/cp/
ienkovich [Tue, 22 Mar 2016 12:31:12 +0000 (12:31 +0000)]
gcc/cp/

PR target/70290
* call.c (build_conditional_expr_1): Always use original
condition type for vector type checks and build.

gcc/testsuite/

PR target/70290
* g++.dg/ext/pr70290.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234399 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoFix ChangeLog entries for PR ipa/70306
marxin [Tue, 22 Mar 2016 11:31:53 +0000 (11:31 +0000)]
Fix ChangeLog entries for PR ipa/70306

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234398 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR target/70325
kyukhin [Tue, 22 Mar 2016 11:09:03 +0000 (11:09 +0000)]
PR target/70325
gcc/
* config/i386/i386.c (def_builtin): Handle
OPTION_MASK_ISA_AVX512VL to be and-ed with other
bits.
(const struct builtin_description bdesc_special_args[]):
Remove duplicate ISA bits.
gcc/testsuite/
* gcc.target/i386/pr70325.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234395 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/70329
jakub [Tue, 22 Mar 2016 08:28:49 +0000 (08:28 +0000)]
PR target/70329
* config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
in a way that works also for AVX512BW.

* gcc.target/i386/avx512bw-pr70329-1.c: New test.
* gcc.target/i386/avx512bw-pr70329-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234394 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/70300
jakub [Tue, 22 Mar 2016 08:14:24 +0000 (08:14 +0000)]
PR target/70300
* config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
instead of source if operands[1] is xmm16 and above and
!TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
vec_interleave_lowv4sf if we need to unpack xmm16 and above.

* gcc.target/i386/pr70300.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234393 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/70295
jakub [Tue, 22 Mar 2016 08:11:14 +0000 (08:11 +0000)]
PR c++/70295
* gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
on assign if (*from_p) is a comparison, set it to
TREE_NO_WARNING (*from_p).

* c-c++-common/nonnull-1.c (func): Remove parens around cp4 != 0.
(func2): New function for cond with parens, xfail warning for c++.
* g++.dg/warn/Wnonnull-compare-8.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234392 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoFix PR c++/70096 (wrong code for pointer-to-member-function copy)
ppalka [Tue, 22 Mar 2016 02:02:01 +0000 (02:02 +0000)]
Fix PR c++/70096 (wrong code for pointer-to-member-function copy)

gcc/cp/ChangeLog:

PR c++/70096
* pt.c (tsubst_decl): Clear the DECL_MODE of the new decl.

gcc/testsuite/ChangeLog:

PR c++/70096
* g++.dg/template/ptrmem30.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234391 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoFix PR c++/70204 (ICE in non_const_var_error)
ppalka [Tue, 22 Mar 2016 00:30:57 +0000 (00:30 +0000)]
Fix PR c++/70204 (ICE in non_const_var_error)

gcc/cp/ChangeLog:

PR c++/70204
* constexpr.c (non_const_var_error): Check
DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P.

gcc/testsuite/ChangeLog:

PR c++/70204
* g++.dg/cpp0x/constexpr-70204a.C: New test.
* g++.dg/cpp0x/constexpr-70204b.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234390 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Tue, 22 Mar 2016 00:16:14 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234389 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR c++/70273
rth [Mon, 21 Mar 2016 23:03:56 +0000 (23:03 +0000)]
PR c++/70273

  * decl.c (notice_forced_label_r): New.
  (cp_finish_decl): Use it.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234386 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/70285
jason [Mon, 21 Mar 2016 21:13:06 +0000 (21:13 +0000)]
PR c++/70285
* cp-gimplify.c (cp_fold) [COND_EXPR]: Handle bit-fields.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234384 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR middle-end/70326
jakub [Mon, 21 Mar 2016 21:04:32 +0000 (21:04 +0000)]
PR middle-end/70326
* lra.c (restore_scratches): Ignore deleted insns.

* gcc.dg/pr70326.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234383 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR tree-optimization/70317
jakub [Mon, 21 Mar 2016 21:03:44 +0000 (21:03 +0000)]
PR tree-optimization/70317
* match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
to HONOR_NANS.

* gcc.dg/pr70317.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234382 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/70327
uros [Mon, 21 Mar 2016 19:56:50 +0000 (19:56 +0000)]
PR target/70327
* config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
of ix86_expand_move.
(movoi): Ditto.
(movti): Use general_operand for operand 1 predicate.

testsuite/ChangeLog:

PR target/70327
* gcc.target/i386/pr70327.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234380 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoHSA: enhance dump output
marxin [Mon, 21 Mar 2016 19:39:27 +0000 (19:39 +0000)]
HSA: enhance dump output

* hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
insns.
(dump_hsa_symbol): Dump BRIG offset of hsa_symbols.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234379 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoSkip static ctors/dtors in IPA ICF (PR ipa/70306)
marxin [Mon, 21 Mar 2016 19:33:33 +0000 (19:33 +0000)]
Skip static ctors/dtors in IPA ICF (PR ipa/70306)

* gcc.dg/ipa/pr70306.c: New test.
* ipa-icf.c (sem_function::parse): Skip static
constructors and destructors.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234378 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-21 Andre Vieira <andre.simoesdiasvieira@arm>
thopre01 [Mon, 21 Mar 2016 15:58:41 +0000 (15:58 +0000)]
2016-03-21  Andre Vieira  <andre.simoesdiasvieira@arm>

    gcc/testsuite/
    * gcc.target/arm/attr-align1.c: Skip if M-profile.
    * gcc.target/arm/attr-align3.c: Likewise.
    * gcc.target/arm/attr_arm.c: Likewise.
    * gcc.target/arm/flip-thumb.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234373 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/70296
jakub [Mon, 21 Mar 2016 15:41:13 +0000 (15:41 +0000)]
PR target/70296
* include/cpplib.h (cpp_fun_like_macro_p): New prototype.
* macro.c (cpp_fun_like_macro_p): New function.

* config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
function-like macro, peek following token(s) if it is followed
by CPP_OPEN_PAREN token with optional padding in between, and
if not, don't treat it like a macro.

* gcc.target/powerpc/altivec-36.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234371 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[nvptx] Don't emit sorry for the stabs debug format
tschwinge [Mon, 21 Mar 2016 15:31:50 +0000 (15:31 +0000)]
[nvptx] Don't emit sorry for the stabs debug format

* config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
for the stabs debug format.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234370 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-21 Richard Biener <rguenther@suse.de>
rguenth [Mon, 21 Mar 2016 13:50:50 +0000 (13:50 +0000)]
2016-03-21  Richard Biener  <rguenther@suse.de>

PR tree-optimization/70310
* tree-vect-generic.c (expand_vector_condition): Fold the built
condition.

* gcc.dg/torture/pr70310.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234369 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR target/70293
kyukhin [Mon, 21 Mar 2016 10:51:04 +0000 (10:51 +0000)]
PR target/70293

gcc/
* config/i386 (define_insn "*vec_dup<mode>"/AVX2): Block
third alternative for AVX-512VL target,

gcc/testsuite/
* gcc.target/i386/pr70293.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234363 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoRetry to emit global variables in HSA (PR hsa/70234)
marxin [Mon, 21 Mar 2016 10:27:53 +0000 (10:27 +0000)]
Retry to emit global variables in HSA (PR hsa/70234)

PR hsa/70234
* hsa-brig.c (emit_function_directives): Mark unemitted
global variables for emission.
* hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
(get_symbol_for_decl): Likewise.
* hsa.h (struct hsa_symbol): New flag.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234362 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-21 Richard Biener <rguenther@suse.de>
rguenth [Mon, 21 Mar 2016 09:11:37 +0000 (09:11 +0000)]
2016-03-21  Richard Biener  <rguenther@suse.de>

PR tree-optimization/70288
* tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
we do not estimate unsimplified all-constant conditionals or
switches as optimized away.

* gcc.dg/torture/pr70288-1.c: New testcase.
* gcc.dg/torture/pr70288-2.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234361 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR rtl-optimization/69307
abel [Mon, 21 Mar 2016 07:54:36 +0000 (07:54 +0000)]
    PR rtl-optimization/69307
        * gcc.target/arm/pr69307.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234360 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agogcc/
abel [Mon, 21 Mar 2016 07:52:05 +0000 (07:52 +0000)]
gcc/
        PR rtl-optimization/69102
        * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
        when we have a readonly dependency context.

testsuite/

        PR rtl-optimization/69102
        * gcc.c-torture/compile/pr69102.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234359 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Mon, 21 Mar 2016 00:16:25 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234358 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sun, 20 Mar 2016 00:16:15 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234355 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2016-03-19 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Sat, 19 Mar 2016 20:28:38 +0000 (20:28 +0000)]
2016-03-19  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/69043
* scanner.c (load_file): Update to use S_ISREG macro.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234352 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sat, 19 Mar 2016 00:16:17 +0000 (00:16 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234350 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/70139
jason [Fri, 18 Mar 2016 20:16:05 +0000 (20:16 +0000)]
PR c++/70139
* constexpr.c (cxx_eval_call_expression): Fix trivial copy.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234345 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR rtl-optimization/70263
law [Fri, 18 Mar 2016 19:30:20 +0000 (19:30 +0000)]
PR rtl-optimization/70263
* ira.c (memref_used_between_p): Assert we found END in the insn chain.
(update_equiv_regs): When trying to move a store to after the insn
that sets the source of the store, make sure the store occurs after
the insn that sets the source of the store.  When successful note
the REG_EQUIV note created in the dump file.

PR rtl-optimization/70263
* gcc.c-torture/compile/pr70263-1.c: New test.
* gcc.target/i386/pr70263-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234344 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDavid Wohlferd's patch to document more issues with basic asms
bernds [Fri, 18 Mar 2016 19:12:10 +0000 (19:12 +0000)]
David Wohlferd's patch to document more issues with basic asms

* doc/extend.texi: Document more potential problems with basic asms.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234343 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoFix PR70278, a problem with the previous split_reg change
bernds [Fri, 18 Mar 2016 19:09:08 +0000 (19:09 +0000)]
Fix PR70278, a problem with the previous split_reg change

PR rtl-optimization/70278
* lra-constraints.c (split_reg): Handle the case where biggest_mode is
VOIDmode.

testsuite/
* gcc.dg/torture/pr70278.c: New test.
* gcc.target/arm/pr70278.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234342 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR c/70281: C FE: fix uninitialized range for __builtin_types_compatible_p
dmalcolm [Fri, 18 Mar 2016 17:45:42 +0000 (17:45 +0000)]
PR c/70281: C FE: fix uninitialized range for __builtin_types_compatible_p

gcc/c/ChangeLog:
PR c/70281
* c-parser.c (c_parser_postfix_expression): Set the source range
for uses of "__builtin_types_compatible_p".

gcc/testsuite/ChangeLog:
PR c/70281
* gcc.dg/plugin/diagnostic-test-expressions-1.c
(test_builtin_types_compatible_p): New test function.
* gcc.dg/pr70281.c: New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234340 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago * libsupc++/guard.cc: Revert my last commit.
uros [Fri, 18 Mar 2016 15:44:44 +0000 (15:44 +0000)]
* libsupc++/guard.cc: Revert my last commit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234336 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/70147 - handle primary virtual bases
jason [Fri, 18 Mar 2016 15:31:35 +0000 (15:31 +0000)]
PR c++/70147 - handle primary virtual bases

* class.c (vptr_via_virtual_p): New.
(most_primary_binfo): Factor out of build_rtti_vtbl_entries.
* cp-ubsan.c (cp_ubsan_dfs_initialize_vtbl_ptrs): Don't clear
a vptr from any virtual base in a not-in-charge 'structor.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234335 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago Avoid clobbering primary virtual base when not in charge.
jason [Fri, 18 Mar 2016 15:31:29 +0000 (15:31 +0000)]
Avoid clobbering primary virtual base when not in charge.

* decl.c (build_clobber_this): Factor out of
start_preparsed_function and begin_destructor_body.  Handle
virtual bases better.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234334 138bc75d-0d04-0410-961f-82ee72b054a4