144580 Commits

Author SHA1 Message Date
Richard Biener
d286e1e304 alloc-pool.h (struct allocation_object): Make id member conditional on CHECKING_P again.
2016-02-23  Richard Biener  <rguenther@suse.de>

	* alloc-pool.h (struct allocation_object): Make id member
	conditional on CHECKING_P again.
	(get_instance): Adjust.
	(base_pool_allocator): Likewise.

From-SVN: r233635
2016-02-23 15:19:17 +00:00
Thomas Schwinge
f99c355797 Use plain -fopenacc to enable OpenACC kernels processing
gcc/
	* tree-parloops.c (create_parallel_loop, gen_parallel_loop)
	(parallelize_loops): In OpenACC kernels mode, set n_threads to
	zero.
	(pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
	flag_openacc.
	* tree-ssa-loop.c (gate_oacc_kernels): Likewise.
	gcc/testsuite/
	* c-c++-common/goacc/kernels-counter-vars-function-scope.c: Adjust
	to -ftree-parallelize-loops/-fopenacc changes.
	* c-c++-common/goacc/kernels-double-reduction-n.c: Likewise.
	* c-c++-common/goacc/kernels-double-reduction.c: Likewise.
	* c-c++-common/goacc/kernels-loop-2.c: Likewise.
	* c-c++-common/goacc/kernels-loop-3.c: Likewise.
	* c-c++-common/goacc/kernels-loop-g.c: Likewise.
	* c-c++-common/goacc/kernels-loop-mod-not-zero.c: Likewise.
	* c-c++-common/goacc/kernels-loop-n.c: Likewise.
	* c-c++-common/goacc/kernels-loop-nest.c: Likewise.
	* c-c++-common/goacc/kernels-loop.c: Likewise.
	* c-c++-common/goacc/kernels-one-counter-var.c: Likewise.
	* c-c++-common/goacc/kernels-reduction.c: Likewise.
	* gfortran.dg/goacc/kernels-loop-inner.f95: Likewise.
	* gfortran.dg/goacc/kernels-loops-adjacent.f95: Likewise.
	libgomp/
	* oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
	* plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
	dims.
	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
	-ftree-parallelize-loops/-fopenacc changes.
	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
	Likewise.
	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
	Likewise.
	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
	Likewise.
	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
	Likewise.
	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
	Likewise.
	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
	Likewise.
	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
	Likewise.
	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
	Likewise.
	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
	Likewise.
	* testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
	Likewise.

From-SVN: r233634
2016-02-23 16:07:54 +01:00
Richard Biener
43331dfbb8 mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
2016-02-23  Richard Biener  <rguenther@suse.de>

	* mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
	* bitmap.h (struct bitmap_usage): Likewise.
	(bitmap_move): Declare.
	* bitmap.c (register_overhead): Take size_t argument.
	(bitmap_move): New function.
	* df-problems.c (df_rd_transfer_function): Use bitmap_move
	to properly account overhead.
	* tree.c (free_node): Use tree_size.

From-SVN: r233633
2016-02-23 14:01:51 +00:00
Rainer Orth
c60ec7c238 Require alias support in gcc.target/i386/chkp-hidden-def.c
* gcc.target/i386/chkp-hidden-def.c: Require alias support.

From-SVN: r233632
2016-02-23 13:52:01 +00:00
Jakub Jelinek
e67bf044ae re PR c++/69902 (Bogus -Wnonnull-compare for: dynamic_cast<T*>(&ref) == nullptr)
PR c++/69902
	* fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
	when inverting comparison.

	* g++.dg/warn/Wnonnull-compare-5.C: New test.

From-SVN: r233631
2016-02-23 13:58:53 +01:00
Jakub Jelinek
f1a62b6fa8 re PR c/69900 (Unhelpful diagnostic about Ignored options)
PR c/69900
	* common.opt (Wunreachable-code): Add Warning flag.

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

From-SVN: r233630
2016-02-23 13:57:32 +01:00
Mark Wielaard
261e741f64 PR c/69911 Check main_input_filename and DECL_SOURCE_FILE are not NULL.
DECL_SOURCE_FILE can be NULL (for example when DECL_ARTIFICIAL).
So make sure to check before comparing against main_input_filename.

gcc/ChangeLog

	PR c/69911
	* cgraphunit.c (check_global_declaration): Check main_input_filename
	and DECL_SOURCE_FILE are not NULL.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r233627
2016-02-23 11:47:19 +00:00
Martin Jambor
20c5e09e3f [pr 69666] No SRA default_def replacements for unscalarizable regions
2016-02-23  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/69666
	* tree-sra.c (sra_modify_assign): Do not attempt to create
	default_def replacements for unscalarizable regions.

testsuite/
	* gcc.dg/tree-ssa/pr69666.c: New test.

From-SVN: r233626
2016-02-23 11:55:47 +01:00
Andre Vehreschild
e457a6fc36 re PR fortran/67451 ([F08] ICE with sourced allocation from coarray.)
gcc/testsuite/ChangeLog:

2016-02-23  Andre Vehreschild  <vehre@gcc.gnu.org>

	PR fortran/67451
	* gfortran.dg/coarray_allocate_5.f08: New test.


gcc/fortran/ChangeLog:

2016-02-23  Andre Vehreschild  <vehre@gcc.gnu.org>

	PR fortran/67451
	* trans-array.c (gfc_array_allocate): Take the attributes from the
	expression to allocate and not from the source=-expression.

From-SVN: r233625
2016-02-23 11:29:26 +01:00
Andreas Krebbel
d7b574f4d2 S/390: Move vcond-shift.c to vector subdir.
gcc/testsuite/ChangeLog:

	* gcc.target/s390/vcond-shift.c: Move to ...
	* gcc.target/s390/vector/vcond-shift.c: ... here.

From-SVN: r233624
2016-02-23 10:18:33 +00:00
Andreas Krebbel
58bdeb448a S/390: Move movstr-2.c into vector subdir.
gcc/testsuite/ChangeLog:

	* gcc.target/s390/md/movstr-2.c: Move and rename to ...
	* gcc.target/s390/vector/stpcpy-1.c: ... this one.

From-SVN: r233623
2016-02-23 10:17:15 +00:00
Andreas Krebbel
7cd0387bca S/390: Turn movstr-1.c into compile only test.
gcc/testsuite/ChangeLog:

	* gcc.target/s390/md/movstr-1.c: Turn into compile test.

From-SVN: r233622
2016-02-23 10:15:31 +00:00
Mike Stump
524cf46a24 sso tests need int32 machines.
From-SVN: r233621
2016-02-23 10:02:18 +00:00
GCC Administrator
4b0311f7ed Daily bump.
From-SVN: r233620
2016-02-23 00:16:16 +00:00
Joseph Myers
9f7e8a3eb2 * sv.po, vi.po: Update.
From-SVN: r233617
2016-02-22 22:56:21 +00:00
Mark Wielaard
4246c8da67 PR28901 Add two levels for -Wunused-const-variable.
There is some controversy about enabling -Wunused-const-variable for all
unused static const variables because some feel there are too many errors
exposed in header files. Create two levels for -Wunused-const-variable.
One level to only check for unused static const variables in the main
compilation file. Which is enabled by -Wunused-variable. And a second
level that also checks for unused static const variables in included
files. Which must be explicitly enabled.

gcc/ChangeLog

	PR c/28901
	* cgraphunit.c (check_global_declaration): Check level of
	warn_unused_const_variable and main_input_filename.
	* doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
	(-Wunused-variable): For C implies -Wunused-const-variable=1.
	(-Wunused-const-variable): Explain levels 1 and 2.

gcc/c-family/ChangeLog

	PR c/28901
	* c.opt (Wunused-const-variable): Turn into Alias for...
	(Wunused-const-variable=): New option.

gcc/testsuite/ChangeLog

	PR c/28901
	* gcc.dg/unused-variable-3.c: New test.

From-SVN: r233616
2016-02-22 22:42:19 +00:00
Jakub Jelinek
07bfc9c103 re PR target/69888 (ICE: SIGSEGV in decide_alg (i386.c:26169) due to infinite (?) recursion with -minline-all-stringops -mmemset-strategy=no_stringop👎noalign)
PR target/69888
	* config/i386/i386.c (decide_alg): Ensure we don't recurse with
	identical arguments.  Formatting and spelling fixes.

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

From-SVN: r233615
2016-02-22 22:34:49 +01:00
Jakub Jelinek
f93bc53213 re PR target/69888 (ICE: SIGSEGV in decide_alg (i386.c:26169) due to infinite (?) recursion with -minline-all-stringops -mmemset-strategy=no_stringop👎noalign)
PR target/69888
	* config/i386/i386.c (decide_alg): Ensure we don't recurse with
	identical arguments.  Formatting and spelling fixes.

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

From-SVN: r233614
2016-02-22 22:34:07 +01:00
Jakub Jelinek
78250306cc re PR bootstrap/69885 (ICE in maybe_legitimize_operand, at optabs.c:6903 on m68k-linux-gnu)
PR target/69885
	* doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
	be specified.

From-SVN: r233613
2016-02-22 22:27:08 +01:00
Mike Stump
111f00ed68 Add terminating line to output as prune can remove last \r from output.
From-SVN: r233612
2016-02-22 21:17:00 +00:00
Jakub Jelinek
64c057f96e re PR target/69894 (dependency of gcc-plugin.h not installed on aarch64-linux-gnu)
PR target/69894
	PR target/69895
	* config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
	and m68k-devices.def.
	* config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
	* config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.

From-SVN: r233611
2016-02-22 20:55:47 +01:00
David Malcolm
6d1fa6bbe1 MAINTAINERS: add myself to libcpp and diagnostic messages
2016-02-22  David Malcolm  <dmalcolm@redhat.com>

	* MAINTAINERS (libcpp): Add myself.
	(diagnostic messages): Likewise.

From-SVN: r233608
2016-02-22 17:35:45 +00:00
Cesar Philippidis
d5ace3b55d nvptx.c (nvptx_gen_shuffle): Add support for QImode and HImode registers.
gcc/
	* config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
	and HImode registers.

	libgomp/
	* testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.

From-SVN: r233607
2016-02-22 08:28:25 -08:00
Richard Biener
c4e360f44f re PR tree-optimization/69882 (Excessive reduction statements generated by SLP)
2016-02-22  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/69882
	* tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
	preserve permutations present because of gaps.
	(vect_supported_load_permutation_p): Always continue checking
	permutations after vect_attempt_slp_rearrange_stmts.

	* gfortran.dg/vect/pr69882.f90: New testcase.

From-SVN: r233605
2016-02-22 14:53:17 +00:00
Bin Cheng
0b1587d4b3 tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump min_profitable_estimate, rather than min_profitable_iters.
* tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
	min_profitable_estimate, rather than min_profitable_iters.

From-SVN: r233604
2016-02-22 14:38:10 +00:00
Jakub Jelinek
09c92f1c27 re PR bootstrap/69885 (ICE in maybe_legitimize_operand, at optabs.c:6903 on m68k-linux-gnu)
PR target/69885
	* config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
	SImode for last match_operand.

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

From-SVN: r233603
2016-02-22 15:22:07 +01:00
Martin Liska
f91d04e77d HSA: fix emission of clrsb{l,ll} builtins
* hsa-gen.c (gen_hsa_clrsb): In case of zero value,
	return bitsize - 1 as the return value.

From-SVN: r233602
2016-02-22 14:14:51 +00:00
Oleg Endo
f88d45dc17 re PR rtl-optimization/69806 ([SH] Combine doesn't see constant)
gcc/
	PR target/69806
	PR target/54089
	* config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
	Handle negative shift counts.
	* config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
	force_reg on the shift constant.
	(lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
	(lshrsi3_d): Handle negative shift counts.

gcc/testsuite/
	PR target/69806
	PR target/54089
	* gcc.target/sh/pr54089-10.c: New.

From-SVN: r233601
2016-02-22 13:33:31 +00:00
Richard Biener
bddb7adb44 Add dot-fn to gdbhooks.py
2016-02-22  Richard Biener  <rguenther@suse.de>
	    Tom de Vries  <tom@codesourcery.com>

	* graph.c: Include dumpfile.h.
	(print_graph_cfg): Split into three overloads.
	* gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.

Co-Authored-By: Tom de Vries <tom@codesourcery.com>

From-SVN: r233600
2016-02-22 10:31:41 +00:00
Tom de Vries
b6e5b400c3 Add dump-fn to gdbhooks.py
2016-02-22  Tom de Vries  <tom@codesourcery.com>

	* gdbhooks.py (class DumpFn): Add and instantiate, adding command
	dump-fn.

From-SVN: r233599
2016-02-22 10:31:32 +00:00
Richard Biener
bddead150b re PR middle-end/37448 (cannot compile big function)
2016-02-22  Richard Biener  <rguenther@suse.de>

	PR ipa/37448
	* ipa-inline-transform.c (inline_call): When not updating
	overall summaries adjust self size by the growth estimate.
	* ipa-inline.c (inline_to_all_callers_1): Add to the callers
	hash-set, do not update overall summaries here.  Renamed from ...
	(inline_to_all_callers): ... this which is now wrapping the
	above and performing delayed overall summary update.
	(early_inline_small_functions): Delay updating of the overall
	summary.

From-SVN: r233598
2016-02-22 09:32:35 +00:00
GCC Administrator
f97374a73f Daily bump.
From-SVN: r233597
2016-02-22 00:16:13 +00:00
Markus Trippelsdorf
30b3b0f84a Properly initialize variable in tree-chkp.c (chkp_mark_invalid_bounds_walker)
* tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
	variable.

From-SVN: r233593
2016-02-21 11:25:31 +00:00
GCC Administrator
ced0847e5b Daily bump.
From-SVN: r233592
2016-02-21 00:16:17 +00:00
Paul Thomas
ce1ff48e57 re PR fortran/69423 (Invalid optimization with deferred-length character)
2016-02-20  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/69423
	* trans-decl.c (create_function_arglist): Deferred character
	length functions, with and without declared results, address
	the passed reference type as '.result' and the local string
	length as '..result'.
	(gfc_null_and_pass_deferred_len): Helper function to null and
	return deferred string lengths, as needed.
	(gfc_trans_deferred_vars): Call it, thereby reducing repeated
	code, add call for deferred arrays and reroute pointer function
	results. Avoid using 'tmp' for anything other that a temporary
	tree by introducing 'type_of_array' for the arrayspec type.

2016-02-20  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/69423
	* gfortran.dg/deferred_character_15.f90 : New test.

From-SVN: r233589
2016-02-20 18:26:59 +00:00
Dominique d'Humieres
bbf2720856 [multiple changes]
2016-02-20  Dominique d'Humieres  <dominiq@lps.ens.fr>

	PR fortran/57365
	gfortran.dg/allocate_with_source_18.f03: New test.

2016-02-20  Harald Anlauf  <anlauf@gmx.de>

	PR fortran/52531
	gfortran.dg/gomp/pr52531.f90: New test.

From-SVN: r233588
2016-02-20 15:10:55 +01:00
Tom de Vries
34b1816913 Fix whitespace in libgomp/ChangeLog
From-SVN: r233587
2016-02-20 11:42:54 +00:00
Tom de Vries
6daecd7a3e Fix whitespace in gcc/testsuite/ChangeLog
From-SVN: r233586
2016-02-20 11:42:46 +00:00
Tom de Vries
d6451de9f1 Fix whitespace in gcc/ChangeLog
From-SVN: r233585
2016-02-20 11:42:35 +00:00
Tom de Vries
423ea09f06 Fix whitespace in ChangeLog
From-SVN: r233584
2016-02-20 11:42:25 +00:00
Tom de Vries
a05a8eac60 Remove stray log entry in gcc/ChangeLog-2015
From-SVN: r233583
2016-02-20 11:42:16 +00:00
Tom de Vries
607bda60cf Fix whitespace in MAINTAINERS
2016-02-20  Tom de Vries  <tom@codesourcery.com>

	* MAINTAINERS: Fix whitespace.

From-SVN: r233582
2016-02-20 11:27:08 +00:00
Jason Merrill
2207c59959 re PR c++/69743 (function overload with variadic arguments - template instantiation depth exceeds maximum (gcc4, clang - no problem))
PR c++/69743
	* call.c (remaining_arguments): No longer static.
	* cp-tree.h: Declare it.
	* pt.c (more_specialized_fn): Use it.

From-SVN: r233579
2016-02-19 23:31:16 -05:00
GCC Administrator
313efd9efb Daily bump.
From-SVN: r233578
2016-02-20 00:16:15 +00:00
Bernd Edlinger
268be88cbe re PR c++/69865 (-trigraphs option broken)
gcc/c-family/ChangeLog:
2016-02-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR c++/69865
        * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
        here...
        (c_common_init_options): ...to here.
        (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.

gcc/testsuite/ChangeLog:
2016-02-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR c++/69865
        * c-c++-common/Wshift-negative-value-6.c: Add -std=c++11 before
        -std=c++03.

From-SVN: r233574
2016-02-19 22:22:04 +00:00
Jakub Jelinek
f3609a89f4 re PR driver/69805 (ICE in greater_than_spec_func, at gcc.c:9722)
PR driver/69805
	* gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
	:%* in %:gt() argument.
	(greater_than_spec_func): Adjust for expecting only numbers,
	if there are more than two numbers, compare the last two.

	* testsuite/libgomp.c/pr69805.c: New test.

From-SVN: r233573
2016-02-19 23:18:38 +01:00
Jakub Jelinek
3a27b4db56 Make-lang.in: Invoke gperf with -L C++.
2016-02-19  Jakub Jelinek  <jakub@redhat.com>
            Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * Make-lang.in: Invoke gperf with -L C++.
        * cfns.gperf: Remove prototypes for hash and libc_name_p
        inlines.
        * cfns.h: Regenerated.
        * except.c (nothrow_libfn_p): Adjust.

Co-Authored-By: Bernd Edlinger <bernd.edlinger@hotmail.de>

From-SVN: r233572
2016-02-19 22:13:29 +00:00
Jakub Jelinek
871b3f473a re PR c++/69826 (problem with cilkplus pragma and preprocessor variable)
PR c++/69826
	* c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
	(init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
	flag_preprocess_only.

	* c-c++-common/cilk-plus/CK/pr69826-1.c: New test.
	* c-c++-common/cilk-plus/CK/pr69826-2.c: New test.

From-SVN: r233571
2016-02-19 23:12:54 +01:00
Jonathan Wakely
77a37715c6 invoke.texi (C++ Dialect Options): Clarify interaction of -Wnarrowing with -std.
* doc/invoke.texi (C++ Dialect Options): Clarify interaction of
	-Wnarrowing with -std.

From-SVN: r233569
2016-02-19 19:32:06 +00:00
Jakub Jelinek
7a965d5121 re PR c++/69850 (unnecessary -Wnonnull-compare warning)
PR c++/69850
	* rtti.c (ifnonnull): Set TREE_NO_WARNING on the condition, use
	NE_EXPR instead of EQ_EXPR and swap last two arguments on COND_EXPR.

	* g++.dg/warn/Wnonnull-compare-4.C: New test.

From-SVN: r233568
2016-02-19 20:16:31 +01:00