platform/upstream/linaro-gcc.git
8 years agoDaily bump.
gccadmin [Thu, 25 Feb 2016 00:16:13 +0000 (00:16 +0000)]
Daily bump.

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

8 years agoPR c/51147 - attribute((mode(byte))) on an enum generates wrong code
msebor [Wed, 24 Feb 2016 23:26:42 +0000 (23:26 +0000)]
PR c/51147 - attribute((mode(byte))) on an enum generates wrong code

gcc/testsuite/ChangeLog:
2016-02-24  Martin Sebor  <msebor@redhat.com>

        PR c/51147
        * gcc.dg/enum-mode-2.c: New test.

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

8 years ago PR debug/69705
jakub [Wed, 24 Feb 2016 22:04:09 +0000 (22:04 +0000)]
PR debug/69705
* dwarf2out.c (gen_variable_die): Work around buggy LTO
- allow NULL decl for Fortran DW_TAG_common_block variables.

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

8 years ago PR c++/69922
jakub [Wed, 24 Feb 2016 22:01:24 +0000 (22:01 +0000)]
PR c++/69922
* class.c (build_base_path): Set TREE_NO_WARNING on the null_test.
Avoid folding it.
* init.c (build_vec_delete_1, build_delete): Don't fold the non-NULL
tests.
* cp-gimplify.c (cp_fold): For TREE_NO_WARNING comparisons with NULL,
unless they are folded into INTEGER_CST, error_mark_node or some
comparison with NULL, avoid folding them and use either the original
comparison or non-folded comparison of folded arguments.
* cp-ubsan.c (cp_ubsan_instrument_vptr): Set TREE_NO_WARNING on the
comparison, don't fold the comparison right away.

* g++.dg/warn/Wnonnull-compare-6.C: New test.
* g++.dg/warn/Wnonnull-compare-7.C: New test.
* g++.dg/ubsan/pr69922.C: New test.

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

8 years ago PR c/69819
mpolacek [Wed, 24 Feb 2016 21:47:59 +0000 (21:47 +0000)]
PR c/69819
* c-decl.c (finish_decl): Don't update the copy of the type of a
different decl type.

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

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

8 years ago PR c++/69323 - errors
jason [Wed, 24 Feb 2016 19:56:09 +0000 (19:56 +0000)]
PR c++/69323 - errors

* friend.c (make_friend_class): Likewise.
* decl.c (lookup_and_check_tag): Diagnose invalid dependent friend.

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

8 years ago PR c++/69323 - valid
jason [Wed, 24 Feb 2016 19:56:03 +0000 (19:56 +0000)]
PR c++/69323 - valid

* pt.c (instantiate_class_template_1): Set
processing_template_decl before substituting friend_type.

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

8 years ago * doc/invoke.texi: Adjust -flifetime-dse documentation.
jason [Wed, 24 Feb 2016 19:55:57 +0000 (19:55 +0000)]
* doc/invoke.texi: Adjust -flifetime-dse documentation.

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

8 years agoPR c++/69912 - [6 regression] ICE in build_ctor_subob_ref initializing
msebor [Wed, 24 Feb 2016 17:23:35 +0000 (17:23 +0000)]
PR c++/69912 - [6 regression] ICE in build_ctor_subob_ref initializing
a flexible array member

gcc/testsuite/ChangeLog:
2016-02-24  Martin Sebor  <msebor@redhat.com>

PR c++/69912
* g++.dg/ext/flexary15.C: New test.

gcc/cp/ChangeLog:
2016-02-24  Martin Sebor  <msebor@redhat.com>

PR c++/69912
* tree.c (build_ctor_subob_ref): Compare types' main variants
        instead of the types as they are.

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

8 years agoAvoid making unportable assumptions about the relationship between SIZE_MAX
msebor [Wed, 24 Feb 2016 17:04:03 +0000 (17:04 +0000)]
Avoid making unportable assumptions about the relationship between SIZE_MAX
and UINT_MAX.

gcc/testsuite/ChangeLog:
        * gcc/testsuite/gcc.dg/builtins-68.c: Avoid making unportable
        assumptions about the relationship between SIZE_MAX and UINT_MAX.
        * gcc/testsuite/g++.dg/ext/builtin_alloca.C: Same.

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

8 years ago PR debug/61033
mkuvyrkov [Wed, 24 Feb 2016 16:41:52 +0000 (16:41 +0000)]
PR debug/61033
* g++.dg/pr61033.C: Add a regression testcase for PR debug/61033.

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

8 years ago Add -flifetime-dse=1.
jason [Wed, 24 Feb 2016 15:18:04 +0000 (15:18 +0000)]
Add -flifetime-dse=1.

gcc/
* common.opt (flifetime-dse): Add -flifetime-dse=1.
gcc/cp/
* decl.c (start_preparsed_function): Condition ctor clobber on
flag_lifetime_dse > 1.

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

8 years ago * cp-gimplify.c (cp_fold): Don't fold constexpr calls if -fno-inline.
jason [Wed, 24 Feb 2016 15:17:58 +0000 (15:17 +0000)]
* cp-gimplify.c (cp_fold): Don't fold constexpr calls if -fno-inline.

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

8 years ago runtime: lock M during cgo call
ian [Wed, 24 Feb 2016 15:03:04 +0000 (15:03 +0000)]
runtime: lock M during cgo call

    cgo should lock the M.

    See also https://golang.org/cl/18882 .

    Reviewed-on: https://go-review.googlesource.com/18883

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

8 years ago2016-02-24 Richard Biener <rguenther@suse.de>
rguenth [Wed, 24 Feb 2016 14:54:01 +0000 (14:54 +0000)]
2016-02-24  Richard Biener  <rguenther@suse.de>
Jakub Jelinek  <jakub@redhat.com>

PR middle-end/69760
* tree-scalar-evolution.c (interpret_rhs_expr): Re-write
conditionally executed ops to well-defined overflow behavior.

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

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

8 years agoAdapt gcc.dg/debug/dwarf2/prod-options.c for Solaris assembler
ro [Wed, 24 Feb 2016 14:46:07 +0000 (14:46 +0000)]
Adapt gcc.dg/debug/dwarf2/prod-options.c for Solaris assembler

* gcc.dg/debug/dwarf2/prod-options.c: Use different DW_AT_producer
pattern on Solaris with as.

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

8 years ago[ARM] Tests for arm_restrict_it patterns in thumb2.md
ktkachov [Wed, 24 Feb 2016 14:21:52 +0000 (14:21 +0000)]
[ARM] Tests for arm_restrict_it patterns in thumb2.md

* gcc.target/arm/cond_sub_restrict_it.c: New test.
* gcc.target/arm/condarith_restrict_it.c: Likewise.
* gcc.target/arm/movcond_restrict_it.c: Likewise.
* gcc.target/arm/negscc_restrict_it.c: Likewise.

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

8 years agolibstdc++/69939 Qualify get and forward
redi [Wed, 24 Feb 2016 13:59:29 +0000 (13:59 +0000)]
libstdc++/69939 Qualify get and forward

PR libstdc++/69939
* include/experimental/tuple (__apply_impl): Qualify get and forward.

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

8 years ago PR middle-end/69915
jakub [Wed, 24 Feb 2016 13:54:39 +0000 (13:54 +0000)]
PR middle-end/69915
* tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
elements.

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

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

8 years ago[gcse] PR rtl-optimization/69886: Check target mode in can_assign_to_reg_without_clob...
ktkachov [Wed, 24 Feb 2016 13:00:10 +0000 (13:00 +0000)]
[gcse] PR rtl-optimization/69886: Check target mode in can_assign_to_reg_without_clobbers_p

PR rtl-optimization/69886
* gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
argument.  Use it when checking validity of set instructions.
(want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
(compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
callsite.
* rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
* store-motion.c (find_moveable_store): Update
can_assign_to_reg_without_clobbers_p callsite.

* gcc.dg/torture/pr69886.c: New test.

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

8 years ago2016-02-24 Richard Biener <rguenther@suse.de>
rguenth [Wed, 24 Feb 2016 12:03:27 +0000 (12:03 +0000)]
2016-02-24  Richard Biener  <rguenther@suse.de>

PR middle-end/68963
* tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
bogus check.
(record_nonwrapping_iv): Do not fall back to the low/high bound
for non-constant IV bases if the stmt is not always executed.

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

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

8 years ago[ARM] Add initial support for the Cortex-A32
ktkachov [Wed, 24 Feb 2016 11:02:04 +0000 (11:02 +0000)]
[ARM] Add initial support for the Cortex-A32

* config/arm/arm-cores.def (cortex-a32): New entry.
* config/arm/arm-tables.opt: Regenerate.
* config/arm/arm-tune.md: Regenerate.
* config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
* config/arm/t-aprofile: Handle mcpu=cortex-a32.
* doc/invoke.texi (ARM Options): Document cortex-a32 as value
for -mcpu and -mtune.

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

8 years ago[ARM] PR target/69875 Fix atomic_loaddi expansion
ktkachov [Wed, 24 Feb 2016 11:00:28 +0000 (11:00 +0000)]
[ARM] PR target/69875 Fix atomic_loaddi expansion

PR target/69875
* config/arm/arm.h (TARGET_HAVE_LPAE): Define.
* config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
* config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
(atomic_loaddi_1): Delete.
(atomic_loaddi): Rewrite expander using the above changes.

* gcc.target/arm/atomic_loaddi_acquire.x: New file.
* gcc.target/arm/atomic_loaddi_relaxed.x: Likewise.
* gcc.target/arm/atomic_loaddi_seq_cst.x: Likewise.
* gcc.target/arm/atomic_loaddi_1.c: New test.
* gcc.target/arm/atomic_loaddi_2.c: Likewise.
* gcc.target/arm/atomic_loaddi_3.c: Likewise.
* gcc.target/arm/atomic_loaddi_4.c: Likewise.
* gcc.target/arm/atomic_loaddi_5.c: Likewise.
* gcc.target/arm/atomic_loaddi_6.c: Likewise.
* gcc.target/arm/atomic_loaddi_7.c: Likewise.
* gcc.target/arm/atomic_loaddi_8.c: Likewise.
* gcc.target/arm/atomic_loaddi_9.c: Likewise.

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

8 years ago PR c/69918
jakub [Wed, 24 Feb 2016 08:37:41 +0000 (08:37 +0000)]
PR c/69918
* params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
2 to 3.

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

8 years ago PR middle-end/69909
jakub [Wed, 24 Feb 2016 08:36:16 +0000 (08:36 +0000)]
PR middle-end/69909
* expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
set_mem_attributes if tem is SSA_NAME which got expanded
as a MEM.

* gcc.dg/torture/pr69909.c: New test.

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

8 years ago2016-02-24 Richard Biener <rguenther@suse.de>
rguenth [Wed, 24 Feb 2016 08:27:25 +0000 (08:27 +0000)]
2016-02-24  Richard Biener  <rguenther@suse.de>

PR tree-optimization/69907
* tree-vect-stmts.c (vectorizable_load): Check for gaps at the
end of permutations for BB vectorization.

* gcc.dg/vect/bb-slp-pr69907.c: New testcase.
* gcc.dg/vect/bb-slp-34.c: XFAIL.
* gcc.dg/vect/bb-slp-pr68892.c: Likewise.

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

8 years ago2016-02-24 Christian Bruel <christian.bruel@st.com>
chrbr [Wed, 24 Feb 2016 08:19:12 +0000 (08:19 +0000)]
2016-02-24  Christian Bruel  <christian.bruel@st.com>

* config/arm/arm-c.c (arm_option_override): Initialize
target_option_current_node.
* config/arm/arm.c (arm_pragma_target_parse): Replace
build_target_option_node call by target_option_current_node.
Set target_option_current_node.
Fix comments.

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

8 years agoDaily bump.
gccadmin [Wed, 24 Feb 2016 00:16:14 +0000 (00:16 +0000)]
Daily bump.

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

8 years ago2016-02-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Tue, 23 Feb 2016 22:53:31 +0000 (22:53 +0000)]
2016-02-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR fortran/61156
* scanner.c (add_path_to_list): If include path is not a directory,
issue a fatal error.

PR fortran/61156
* gfortran.dg/include_6.f90: Update test.

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

8 years agoPR target/69810
dje [Tue, 23 Feb 2016 22:28:23 +0000 (22:28 +0000)]
PR target/69810
* config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
define_insn_and_split to define_insn.
(zero_extendqi<mode>2_dot2): Same.
(extendqi<mode>2_dot): Same.
(extendqi<mode>2_dot2): Same.

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

8 years agoTweak the pipeline model for Exynos M1
evandro [Tue, 23 Feb 2016 21:31:00 +0000 (21:31 +0000)]
Tweak the pipeline model for Exynos M1

gcc/
* config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
and AESMC pairs.
* config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
and add bypass for AES{D,E} and AESMC pairs.

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

8 years ago * gcc/config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
evandro [Tue, 23 Feb 2016 20:21:23 +0000 (20:21 +0000)]
    * gcc/config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
        series for reciprocal square root in Exynos M1.

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

8 years agoDocument __STDCPP_WANT_MATH_SPEC_FUNCS__ macro
redi [Tue, 23 Feb 2016 20:03:30 +0000 (20:03 +0000)]
Document __STDCPP_WANT_MATH_SPEC_FUNCS__ macro

* doc/xml/manual/using.xml: Document __STDCPP_WANT_MATH_SPEC_FUNCS__.
* doc/html/*: Regenerate.

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

8 years agolibstdc++/69893 make <tr1/cmath> work with C++11
redi [Tue, 23 Feb 2016 19:49:31 +0000 (19:49 +0000)]
libstdc++/69893 make <tr1/cmath> work with C++11

PR libstdc++/69893
* include/tr1/cmath (acosh, asinh, atanh, cbrt, copysign, erf, erfc,
exp2, expm1, fdim, fma, fmax, fmin, hypot, ilogb, lgamma, llrint,
llround, log1p, log2, logb, lrint, lround, nan, nearbyint, nextafter,
nexttoward, remainder, remquo, rint, round, scalbln, scalbn, tgamma,
trunc) [__cplusplus >= 201103L]: Import from namespace std.
(fabs) [__cplusplus < 201103L]: Import from namespace std.
* include/tr1/complex (acosh, asinh, atanh) [__cplusplus >= 201103L]:
Likewise.
* testsuite/tr1/headers/c++200x/complex.cc: Add std::fabs to global
namespace before including TR1 headers.
* testsuite/tr1/headers/c++200x/math.cc: New test.

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

8 years ago PR objc/69844
jakub [Tue, 23 Feb 2016 19:47:24 +0000 (19:47 +0000)]
PR objc/69844
* c-parser.c (c_parser_for_statement): Properly handle ObjC classes
in id_kind reclassification.

* objc.dg/pr69844.m: New test.

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

8 years ago2016-02-23 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Tue, 23 Feb 2016 18:38:31 +0000 (18:38 +0000)]
2016-02-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/69456
* io/list_read.c (read_real): If digit is missing from exponent issue
an error. (parse_real): Likewise and adjusted error message to clarify
it is part of a complex number.
(nml_read_obj): Bump item count and add comment that this is used to
identify which item in a namelist read has a problem.

PR libgfortran/69456
* gfortran.dg/namelist_89.f90: New test.
* gfortran.dg/pr59700.f90: Update test..

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

8 years agoPR middle-end/69780 - [4.9/5/6 Regression] ICE on __builtin_alloca_with_align
msebor [Tue, 23 Feb 2016 18:09:37 +0000 (18:09 +0000)]
PR middle-end/69780 - [4.9/5/6 Regression] ICE on __builtin_alloca_with_align
with small alignment
PR c/69759 - __builtin_alloca and __builtin_alloca_with_align undocumented

gcc/c-family/ChangeLog:
* c-common.c (check_builtin_function_arguments): Validate and reject
invalid arguments to __builtin_alloca_with_align.

gcc/ChangeLog:
* doc/extend.texi (Other Builtins): Document __builtin_alloca and
__builtin_alloca_with_align.

gcc/testsuite/ChangeLog:
* g++.dg/ext/builtin_alloca.C: New test.
* gcc.dg/builtins-68.c: New test.

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

8 years agoRemove __seg_tls before first release.
rth [Tue, 23 Feb 2016 18:05:14 +0000 (18:05 +0000)]
Remove __seg_tls before first release.

  * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
  (ix86_register_pragmas): Remove __seg_tls.
  * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
  * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
  (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
  (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
  (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
  * doc/extend.texi (__seg_tls): Remove item.
testsuite/
  * gcc.target/i386/addr-space-3.c: Remove test.

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

8 years agoPR preprocessor/69126: avoid comparing ad-hoc and non-ad-hoc locations
dmalcolm [Tue, 23 Feb 2016 17:44:28 +0000 (17:44 +0000)]
PR preprocessor/69126: avoid comparing ad-hoc and non-ad-hoc locations

gcc/testsuite/ChangeLog:
PR preprocessor/69126
PR preprocessor/69543
* c-c++-common/pr69126-2-long.c: New test.
* c-c++-common/pr69126-2-short.c: New test.
* c-c++-common/pr69543-1.c: Remove xfail.

libcpp/ChangeLog:
PR preprocessor/69126
PR preprocessor/69543
* line-map.c (linemap_compare_locations): At the function top,
replace inlined bodies of get_location_from_adhoc_loc with calls
to get_location_from_adhoc_loc.  Add a pair of calls to
get_location_from_adhoc_loc at the bottom of the function, to
avoid meaningless comparisons of ad-hoc and non-ad-hoc locations.

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

8 years agoAdd test coverage for _Pragma (PR preprocessor 69126, 69543, 69558)
dmalcolm [Tue, 23 Feb 2016 17:39:16 +0000 (17:39 +0000)]
Add test coverage for _Pragma (PR preprocessor 69126, 69543, 69558)

We had some regressions in the ability for _Pragma to disable a warning
(PR preprocessor/69126, PR preprocessor/69543, PR preprocessor/69558).

This patch attempts to add more test coverage for this, for the
various combinations of:
  - various warnings:
    -Wunused-variable
    -Wuninitialized
    -Wdeprecated-declarations
  - various combinations of location of _Pragma relative to location of
    the warning:
     - _Pragma is in a macro, warning isn't a macro
     - neither is in a macro
     - _Pragma isnt't in a macro, warning is in a macro
     - in different macros
     - both in the same macro
  - C vs C++ frontend.

It adds some XFAILs:
  - pr69543-1.c for C++ (fixed in the followup patch)
  - pr69543-3.c for both C and C++
  - pr69543-4.c for both C and C++
  - pr69558.c for C++ (moving it from gcc.dg to c-c++-common,
    marking it as xfail for C++ for now)

gcc/testsuite/ChangeLog:
PR preprocessor/69126
PR preprocessor/69543
PR preprocessor/69558
* c-c++-common/pr69126.c (MACRO_1, test_1): New.
(f): Rename to...
(test_2): ...this, and add leading comment.
(MACRO_3, test_3): New.
(MACRO_4A, MACRO_4B, test_4): New.
(MACRO): Rename to...
(MACRO_5): ...this.
(g): Rename to...
(test_5): ...this, updating for renaming of MACRO, and
add leading comment.
* c-c++-common/pr69543-1.c: New.
* c-c++-common/pr69543-2.c: New.
* c-c++-common/pr69543-3.c: New.
* c-c++-common/pr69543-4.c: New.
* c-c++-common/pr69558-1.c: New.
* c-c++-common/pr69558-2.c: New.
* c-c++-common/pr69558-3.c: New.
* c-c++-common/pr69558-4.c: New.
* gcc.dg/pr69558.c: Move to...
* c-c++-common/pr69558.c: ...here.  Add dg-bogus directives, with
xfail for c++.

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

8 years ago2016-02-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
edlinger [Tue, 23 Feb 2016 15:57:09 +0000 (15:57 +0000)]
2016-02-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR libstdc++/69881
        * include/c_global/cstdarg: Undefine __need___va_list.
        * include/c_global/cstddef: Undefine all kinds of __need_*.

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

8 years ago2016-02-23 Richard Biener <rguenther@suse.de>
rguenth [Tue, 23 Feb 2016 15:19:17 +0000 (15:19 +0000)]
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.

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

8 years agoUse plain -fopenacc to enable OpenACC kernels processing
tschwinge [Tue, 23 Feb 2016 15:07:54 +0000 (15:07 +0000)]
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.

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

8 years ago2016-02-23 Richard Biener <rguenther@suse.de>
rguenth [Tue, 23 Feb 2016 14:01:51 +0000 (14:01 +0000)]
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.

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

8 years agoRequire alias support in gcc.target/i386/chkp-hidden-def.c
ro [Tue, 23 Feb 2016 13:52:01 +0000 (13:52 +0000)]
Require alias support in gcc.target/i386/chkp-hidden-def.c

* gcc.target/i386/chkp-hidden-def.c: Require alias support.

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

8 years ago PR c++/69902
jakub [Tue, 23 Feb 2016 12:58:53 +0000 (12:58 +0000)]
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.

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

8 years ago PR c/69900
jakub [Tue, 23 Feb 2016 12:57:32 +0000 (12:57 +0000)]
PR c/69900
* common.opt (Wunreachable-code): Add Warning flag.

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

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

8 years agoPR c/69911 Check main_input_filename and DECL_SOURCE_FILE are not NULL.
mark [Tue, 23 Feb 2016 11:47:19 +0000 (11:47 +0000)]
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.

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

8 years ago[pr 69666] No SRA default_def replacements for unscalarizable regions
jamborm [Tue, 23 Feb 2016 10:55:47 +0000 (10:55 +0000)]
[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.

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

8 years agogcc/testsuite/ChangeLog:
vehre [Tue, 23 Feb 2016 10:29:26 +0000 (10:29 +0000)]
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.

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

8 years agoS/390: Move vcond-shift.c to vector subdir.
krebbel [Tue, 23 Feb 2016 10:18:33 +0000 (10:18 +0000)]
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.

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

8 years agoS/390: Move movstr-2.c into vector subdir.
krebbel [Tue, 23 Feb 2016 10:17:15 +0000 (10:17 +0000)]
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.

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

8 years agoS/390: Turn movstr-1.c into compile only test.
krebbel [Tue, 23 Feb 2016 10:15:31 +0000 (10:15 +0000)]
S/390: Turn movstr-1.c into compile only test.

gcc/testsuite/ChangeLog:

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

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

8 years agosso tests need int32 machines.
mrs [Tue, 23 Feb 2016 10:02:18 +0000 (10:02 +0000)]
sso tests need int32 machines.

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

8 years agoDaily bump.
gccadmin [Tue, 23 Feb 2016 00:16:16 +0000 (00:16 +0000)]
Daily bump.

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

8 years ago * sv.po, vi.po: Update.
jsm28 [Mon, 22 Feb 2016 22:56:21 +0000 (22:56 +0000)]
* sv.po, vi.po: Update.

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

8 years agoPR28901 Add two levels for -Wunused-const-variable.
mark [Mon, 22 Feb 2016 22:42:19 +0000 (22:42 +0000)]
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.

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

8 years ago PR target/69888
jakub [Mon, 22 Feb 2016 21:34:49 +0000 (21:34 +0000)]
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.

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

8 years ago PR target/69888
jakub [Mon, 22 Feb 2016 21:34:07 +0000 (21:34 +0000)]
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.

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

8 years ago PR target/69885
jakub [Mon, 22 Feb 2016 21:27:08 +0000 (21:27 +0000)]
PR target/69885
* doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
be specified.

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

8 years agoAdd terminating line to output as prune can remove last \r from output.
mrs [Mon, 22 Feb 2016 21:17:00 +0000 (21:17 +0000)]
Add terminating line to output as prune can remove last \r from output.

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

8 years ago PR target/69894
jakub [Mon, 22 Feb 2016 19:55:47 +0000 (19:55 +0000)]
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.

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

8 years agoMAINTAINERS: add myself to libcpp and diagnostic messages
dmalcolm [Mon, 22 Feb 2016 17:35:45 +0000 (17:35 +0000)]
MAINTAINERS: add myself to libcpp and diagnostic messages

2016-02-22  David Malcolm  <dmalcolm@redhat.com>

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

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

8 years ago gcc/
cesar [Mon, 22 Feb 2016 16:28:25 +0000 (16:28 +0000)]
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.

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

8 years ago2016-02-22 Richard Biener <rguenther@suse.de>
rguenth [Mon, 22 Feb 2016 14:53:17 +0000 (14:53 +0000)]
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.

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

8 years ago * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
amker [Mon, 22 Feb 2016 14:38:10 +0000 (14:38 +0000)]
* tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
min_profitable_estimate, rather than min_profitable_iters.

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

8 years ago PR target/69885
jakub [Mon, 22 Feb 2016 14:22:07 +0000 (14:22 +0000)]
PR target/69885
* config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
SImode for last match_operand.

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

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

8 years agoHSA: fix emission of clrsb{l,ll} builtins
marxin [Mon, 22 Feb 2016 14:14:51 +0000 (14:14 +0000)]
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.

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

8 years agogcc/
olegendo [Mon, 22 Feb 2016 13:33:31 +0000 (13:33 +0000)]
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.

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

8 years agoAdd dot-fn to gdbhooks.py
vries [Mon, 22 Feb 2016 10:31:41 +0000 (10:31 +0000)]
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.

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

8 years agoAdd dump-fn to gdbhooks.py
vries [Mon, 22 Feb 2016 10:31:32 +0000 (10:31 +0000)]
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.

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

8 years ago2016-02-22 Richard Biener <rguenther@suse.de>
rguenth [Mon, 22 Feb 2016 09:32:35 +0000 (09:32 +0000)]
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.

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

8 years agoDaily bump.
gccadmin [Mon, 22 Feb 2016 00:16:13 +0000 (00:16 +0000)]
Daily bump.

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

8 years agoProperly initialize variable in tree-chkp.c (chkp_mark_invalid_bounds_walker)
trippels [Sun, 21 Feb 2016 11:25:31 +0000 (11:25 +0000)]
Properly initialize variable in tree-chkp.c (chkp_mark_invalid_bounds_walker)

* tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
variable.

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

8 years agoDaily bump.
gccadmin [Sun, 21 Feb 2016 00:16:17 +0000 (00:16 +0000)]
Daily bump.

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

8 years ago2016-02-20 Paul Thomas <pault@gcc.gnu.org>
pault [Sat, 20 Feb 2016 18:26:59 +0000 (18:26 +0000)]
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.

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

8 years ago2016-02-20 Dominique d'Humieres <dominiq@lps.ens.fr>
dominiq [Sat, 20 Feb 2016 14:10:55 +0000 (14:10 +0000)]
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.

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

8 years agoFix whitespace in libgomp/ChangeLog
vries [Sat, 20 Feb 2016 11:42:54 +0000 (11:42 +0000)]
Fix whitespace in libgomp/ChangeLog

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

8 years agoFix whitespace in gcc/testsuite/ChangeLog
vries [Sat, 20 Feb 2016 11:42:46 +0000 (11:42 +0000)]
Fix whitespace in gcc/testsuite/ChangeLog

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

8 years agoFix whitespace in gcc/ChangeLog
vries [Sat, 20 Feb 2016 11:42:35 +0000 (11:42 +0000)]
Fix whitespace in gcc/ChangeLog

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

8 years agoFix whitespace in ChangeLog
vries [Sat, 20 Feb 2016 11:42:25 +0000 (11:42 +0000)]
Fix whitespace in ChangeLog

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

8 years agoRemove stray log entry in gcc/ChangeLog-2015
vries [Sat, 20 Feb 2016 11:42:16 +0000 (11:42 +0000)]
Remove stray log entry in gcc/ChangeLog-2015

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

8 years agoFix whitespace in MAINTAINERS
vries [Sat, 20 Feb 2016 11:27:08 +0000 (11:27 +0000)]
Fix whitespace in MAINTAINERS

2016-02-20  Tom de Vries  <tom@codesourcery.com>

* MAINTAINERS: Fix whitespace.

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

8 years ago PR c++/69743
jason [Sat, 20 Feb 2016 04:31:16 +0000 (04:31 +0000)]
PR c++/69743
* call.c (remaining_arguments): No longer static.
* cp-tree.h: Declare it.
* pt.c (more_specialized_fn): Use it.

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

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

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

8 years agogcc/c-family/ChangeLog:
edlinger [Fri, 19 Feb 2016 22:22:04 +0000 (22:22 +0000)]
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.

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

8 years ago PR driver/69805
jakub [Fri, 19 Feb 2016 22:18:38 +0000 (22:18 +0000)]
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.

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

8 years ago2016-02-19 Jakub Jelinek <jakub@redhat.com>
edlinger [Fri, 19 Feb 2016 22:13:29 +0000 (22:13 +0000)]
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.

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

8 years ago PR c++/69826
jakub [Fri, 19 Feb 2016 22:12:54 +0000 (22:12 +0000)]
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.

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

8 years ago * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
redi [Fri, 19 Feb 2016 19:32:06 +0000 (19:32 +0000)]
* doc/invoke.texi (C++ Dialect Options): Clarify interaction of
-Wnarrowing with -std.

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

8 years ago PR c++/69850
jakub [Fri, 19 Feb 2016 19:16:31 +0000 (19:16 +0000)]
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.

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

8 years agoTweak comment further.
jakub [Fri, 19 Feb 2016 19:13:20 +0000 (19:13 +0000)]
Tweak comment further.

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

8 years ago PR c++/69851
jakub [Fri, 19 Feb 2016 19:11:58 +0000 (19:11 +0000)]
PR c++/69851
* expr.c (store_field): Don't use bit-field path if exp is
COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
and the assignment can be performed by bitwise copy.  Formatting
fix.

* g++.dg/torture/pr69851.C: New test.

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

8 years agoPR testsuite/69573 - FAIL: gcc.dg/pr61053.c (test for excess errors)
msebor [Fri, 19 Feb 2016 18:37:40 +0000 (18:37 +0000)]
PR testsuite/69573 - FAIL: gcc.dg/pr61053.c (test for excess errors)

Tested on x86_64 by running make check-c with
RUNTESTFLAGS='--target_board=unix/-m32/-m128bit-long-double dg.exp=pr61053.c'
gcc/testsuite/ChangeLog:
2016-01-30  Martin Sebor  <msebor@redhat.com>

PR testsuite/69573
* gcc.dg/pr61053.c: Tweaked test to avoid bogus failures.

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

8 years agoAdjust fix PR c++/68948
ppalka [Fri, 19 Feb 2016 17:04:29 +0000 (17:04 +0000)]
Adjust fix PR c++/68948

gcc/cp/ChangeLog:

PR c++/68948
* pt.c (tsubst_baselink): Don't diagnose an invalid constructor
call here.
* semantics.c (finish_call_expr): Don't assume a constructor
call is dependent if only the "this" pointer is dependent.  When
building a constructor call, always use a dummy object.

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

8 years ago PR middle-end/69838
jakub [Fri, 19 Feb 2016 16:25:58 +0000 (16:25 +0000)]
PR middle-end/69838
* lra.c (lra_process_new_insns): If non-call exceptions are enabled,
call copy_reg_eh_region_note_forward on before and/or after sequences
and remove note from insn if it no longer can throw.

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

8 years ago PR c++/69850
jakub [Fri, 19 Feb 2016 16:02:51 +0000 (16:02 +0000)]
PR c++/69850
* init.c (build_vec_delete_1): Set TREE_NO_WARNING on the NE_EXPR
condition.
* cp-gimplify.c (cp_fold): Propagate TREE_NO_WARNING from binary
operators if folding preserved the binop, just with different
arguments.

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

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

8 years ago PR c++/67767
jakub [Fri, 19 Feb 2016 16:01:50 +0000 (16:01 +0000)]
PR c++/67767
* parser.c (cp_parser_std_attribute_spec_seq): Don't assume
attr_spec is always single element chain, chain all the attributes
properly together in the right order.

* g++.dg/cpp0x/pr67767.C: New test.

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

8 years ago[AArch64] Skip gcc.target/aarch64/assembler_arch_1.c if assembler does not support it
ktkachov [Fri, 19 Feb 2016 14:20:27 +0000 (14:20 +0000)]
[AArch64] Skip gcc.target/aarch64/assembler_arch_1.c if assembler does not support it

* lib/target-supports.exp: Define aarch64_asm_FUNC_ok checks
for fp, simd, crypto, crc, lse.
* doc/sourcebuild.texi (AArch64-specific attributes): Document the
above.
* gcc.target/aarch64/assembler_arch_1.c: Add aarch64_asm_lse_ok
effective target check.

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

8 years ago PR target/69820
jakub [Fri, 19 Feb 2016 13:42:38 +0000 (13:42 +0000)]
PR target/69820
* config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
if TARGET_AVX512BW.

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

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