Commit Graph

139139 Commits

Author SHA1 Message Date
GCC Administrator 8e1b147c52 Daily bump.
From-SVN: r238317
2016-07-14 00:16:09 +00:00
Andre Vehreschild d53706d208 backport: re PR fortran/71623 (Segfault when allocating deferred-length characters to size of a pointer)
gcc/fortran/ChangeLog:

2016-07-13  Andre Vehreschild  <vehre@gcc.gnu.org>

	Backport from trunk:
	PR fortran/71623
	* trans-stmt.c (gfc_trans_allocate): Add code of pre block of typespec
	in allocate to parent block.

gcc/testsuite/ChangeLog:

2016-07-13  Andre Vehreschild  <vehre@gcc.gnu.org>

	Backport from trunk:
	PR fortran/71623
	* gfortran.dg/deferred_character_18.f90: New test.

From-SVN: r238308
2016-07-13 19:30:58 +02:00
GCC Administrator d8242b8db4 Daily bump.
From-SVN: r238275
2016-07-13 00:16:11 +00:00
Segher Boessenkool 802cf37f41 backport: re PR target/70098 (PowerPC64: eigen hits ICE following invalid register assignment)
Backport from mainline
	2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>

	PR target/70098
	PR target/71763
	* config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
	*ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
	constraint.

gcc/testsuite/
	PR target/70098
	PR target/71763
	* gcc.target/powerpc/pr71763.c: New file.

From-SVN: r238251
2016-07-12 17:13:47 +02:00
Jonathan Wakely 397c5bf920 Implement N4258 noexcept for std::basic_string.
Backport from mainline
	2015-10-02  Jonathan Wakely  <jwakely@redhat.com>

	* testsuite/21_strings/basic_string/allocator/char/minimal.cc: Guard
	explicit instantiation with check for new ABI.
	* testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc:
	Likewise. Use wchar_t as char_type.

	Backport from mainline
	2015-09-11  Jonathan Wakely  <jwakely@redhat.com>

	PR libstdc++/58265
	* doc/xml/manual/intro.xml: Document LWG 2063 and 2064 resolutions.
	* doc/html/manual/bugs.html: Regenerate.
	* include/bits/basic_string.h (basic_string): Implement N4258. Add
	correct exception-specifications and propagate allocators correctly.
	* include/bits/basic_string.tcc (basic_string::swap): Propagate
	allocators correctly.
	* include/debug/string (__gnu_debug::basic_string): Add correct
	exceptions-specifications and allcoator-extended constructors.
	* testsuite/21_strings/basic_string/allocator/char/copy.cc: New.
	* testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
	New.
	* testsuite/21_strings/basic_string/allocator/char/minimal.cc: New.
	* testsuite/21_strings/basic_string/allocator/char/move.cc: New.
	* testsuite/21_strings/basic_string/allocator/char/move_assign.cc:
	New.
	* testsuite/21_strings/basic_string/allocator/char/noexcept.cc: New.
	* testsuite/21_strings/basic_string/allocator/char/swap.cc: New.
	* testsuite/21_strings/basic_string/allocator/wchar_t/copy.cc: New.
	* testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
	New.
	* testsuite/21_strings/basic_string/allocator/wchar_t/minimal.cc: New.
	* testsuite/21_strings/basic_string/allocator/wchar_t/move.cc: New.
	* testsuite/21_strings/basic_string/allocator/wchar_t/move_assign.cc:
	New.
	* testsuite/21_strings/basic_string/allocator/wchar_t/noexcept.cc: New.
	* testsuite/21_strings/basic_string/allocator/wchar_t/swap.cc: New.
	* testsuite/util/testsuite_allocator.h (tracker_allocator): Define
	defaulted assignment operators.

From-SVN: r238241
2016-07-12 11:56:11 +01:00
GCC Administrator 1a9a2c7044 Daily bump.
From-SVN: r238235
2016-07-12 00:16:09 +00:00
Thomas Koenig 1228ceef48 backport: re PR fortran/71783 (ICE on valid code in gimplify_var_or_parm_decl at gimplify.c:1801)
2016-07-11  Thomas Koenig  <tkoenig@gcc.gnu.org>

	Backport from trunk:
	PR fortran/71783
	* frontend-passes.c (create_var):  Always allocate a charlen
	for character variables.

2016-07-11  Thomas Koenig  <tkoenig@gcc.gnu.org>

	Backport from trunk:
	PR fortran/71783
	* gfortran.dg/dependency_46.f90:  New test.

From-SVN: r238225
2016-07-11 20:08:51 +00:00
GCC Administrator 0e65d0e295 Daily bump.
From-SVN: r238200
2016-07-11 00:16:13 +00:00
GCC Administrator f92f8f2f0f Daily bump.
From-SVN: r238194
2016-07-10 00:16:11 +00:00
GCC Administrator 1c7980628c Daily bump.
From-SVN: r238189
2016-07-09 00:16:09 +00:00
Cesar Philippidis 1e17a8f8c6 backport: parse.c (matcha): Define.
Backport from trunk:
	2016-07-08  Cesar Philippidis  <cesar@codesourcery.com>

	gcc/fortran/
	* parse.c (matcha): Define.
	(decode_oacc_directive): Add spec_only local var and set it.  Use
	matcha to parse acc directives except for routine and declare.  Return
	ST_GET_FCN_CHARACTERISTICS if a non-declarative directive could be
	matched.

	gcc/testsuite/
	* gfortran.dg/goacc/pr71704.f90: New test.

From-SVN: r238184
2016-07-08 14:58:57 -07:00
Martin Liska a9571e58f5 Do not consider COMPLEX_TYPE as fold_convertible_p
Backported from mainline
	2016-07-08  Martin Liska  <mliska@suse.cz>

	PR middle-end/71606
	* fold-const.c (fold_convertible_p): As COMPLEX_TYPE
	folding produces SAVE_EXPRs, thus return false for the type.
	Backported from mainline
	2016-07-08  Martin Liska  <mliska@suse.cz>

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

From-SVN: r238173
2016-07-08 20:21:02 +00:00
Jonathan Wakely 8a17b1ccd7 Update LWG issues lists and implementation status
Backport from mainline
2015-06-02  Jonathan Wakely  <jwakely@redhat.com>

	* doc/html/ext/lwg-active.html: Update to R93.
	* doc/html/ext/lwg-closed.html: Likewise.
	* doc/html/ext/lwg-defects.html: Likewise.
	* doc/html/manual/*: Regenerate.
	* doc/xml/manual/intro.xml: Document status of several DRs.

From-SVN: r238162
2016-07-08 14:29:06 +01:00
GCC Administrator dddb67df98 Daily bump.
From-SVN: r238153
2016-07-08 00:16:08 +00:00
Segher Boessenkool ada9ca29df rs6000: Fix gcc.target/powerpc/ti_math1.c on GCC 5 (PR69019)
This testcase currently fails on GCC 5, for LE only.  Since it is fixed
for 6 and later, and backporting the relevant code is rather invasive,
let's just weaken the testcase for GCC 5 instead.


       PR target/69019
       * gcc.target/powerpc/ti_math1.c: Allow addze as well as adde.

From-SVN: r238121
2016-07-07 19:08:00 +02:00
Jakub Jelinek c3b53b35b1 backport: re PR c/68062 (ICE when comparing vectors)
Backported from mainline
	2016-03-02  Jakub Jelinek  <jakub@redhat.com>

	PR c/68062
	* c-c++-common/vector-compare-4.c: Add -Wno-psabi to dg-options.

From-SVN: r238108
2016-07-07 14:59:39 +02:00
Jakub Jelinek 3eb86bf820 backport: vector-compare-4.c: Prune "non-standard ABI extension" warning.
Backported from mainline
	2016-02-02  Segher Boessenkool  <segher@kernel.crashing.org>

	* c-c++-common/vector-compare-4.c: Prune "non-standard ABI extension"
	warning.

From-SVN: r238105
2016-07-07 14:58:43 +02:00
Jakub Jelinek 0310db3e48 backport: re PR fortran/71717 (A gfortran silent "wrong code" bug in the transition from 4.9.0 -> 4.9.1, using OpenMP.)
Backported from mainline
	2016-07-01  Jakub Jelinek  <jakub@redhat.com>

	PR fortran/71717
	* trans-openmp.c (gfc_omp_privatize_by_reference): Return false
	for GFC_DECL_ASSOCIATE_VAR_P with POINTER_TYPE.

	* testsuite/libgomp.fortran/associate3.f90: New test.

From-SVN: r238104
2016-07-07 14:51:01 +02:00
Jakub Jelinek e74885afa7 backport: re PR fortran/71704 (ICE with -fopenmp and some omp constructs)
Backported from mainline
	2016-06-30  Jakub Jelinek  <jakub@redhat.com>

	PR fortran/71704
	* parse.c (matchs, matcho): Move right before decode_omp_directive.
	If spec_only, only gfc_match the keyword and if successful, goto
	do_spec_only.
	(matchds, matchdo): Define.
	(decode_omp_directive): Add spec_only local var and set it.
	Use matchds or matchdo macros instead of matchs or matcho
	for declare target, declare simd, declare reduction and threadprivate
	directives.  Return ST_GET_FCN_CHARACTERISTICS if a non-declarative
	directive could be matched.
	(next_statement): For ST_GET_FCN_CHARACTERISTICS restore
	gfc_current_locus from old_locus even if there is no label.

	* gfortran.dg/gomp/pr71704.f90: New test.

From-SVN: r238103
2016-07-07 14:50:01 +02:00
Jakub Jelinek 0e8f52c0af backport: re PR fortran/71705 (ICE in lower_omp_target, at omp-low.c:16136)
Backported from mainline
	2016-06-30  Jakub Jelinek  <jakub@redhat.com>

	PR fortran/71705
	* trans-openmp.c (gfc_trans_omp_clauses): Set TREE_ADDRESSABLE on
	decls in to/from clauses.

	* gfortran.dg/gomp/pr71705.f90: New test.

From-SVN: r238102
2016-07-07 14:49:04 +02:00
Jakub Jelinek a51922e1e6 backport: re PR middle-end/71626 (ICE at -O1 and above on x86_64-linux-gnu (in output_constant_pool_2, at varasm.c:3837))
Backported from mainline
	2016-06-28  Jakub Jelinek  <jakub@redhat.com>

	PR middle-end/71626
	* config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
	a constant, force its SUBREG_REG into memory or register instead
	of whole op1.

	* gcc.c-torture/execute/pr71626-1.c: New test.
	* gcc.c-torture/execute/pr71626-2.c: New test.

From-SVN: r238101
2016-07-07 14:48:16 +02:00
Jakub Jelinek b5af6820de backport: re PR tree-optimization/71588 (ICE on valid code at -O2 and -O3 on x86_64-linux-gnu: in execute_todo, at passes.c:2009)
Backported from mainline
	2016-06-21  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/71588
	* tree-ssa-strlen.c (valid_builtin_call): New function.
	(adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
	it.

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

From-SVN: r238100
2016-07-07 14:47:20 +02:00
Jakub Jelinek 66801cc21f backport: re PR middle-end/71581 (ICE on valid code on x86_64-linux-gnu with -Wuninitialized (Segmentation fault))
Backported from mainline
	2016-06-20  Jakub Jelinek  <jakub@redhat.com>

	PR middle-end/71581
	* tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
	see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
	for conversion of scalar user var to complex type and use the
	underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
	punt.

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

From-SVN: r238099
2016-07-07 14:46:33 +02:00
Jakub Jelinek e604e4e896 backport: re PR c++/71528 (multiple extern reference declarations produce uninitialized access)
Backported from mainline
	2016-06-14  Jakub Jelinek  <jakub@redhat.com>

	PR c++/71528
	* decl.c (duplicate_decls): For DECL_INITIALIZED_P non-external
	olddecl vars, preserve their TREE_READONLY bit.

	* g++.dg/opt/pr71528.C: New test.

From-SVN: r238098
2016-07-07 14:45:44 +02:00
Jakub Jelinek 0da68630d9 backport: re PR c++/71516 (ICE on invalid C++ code (invalid use of forward declared type) on x86_64-linux-gnu: Segmentation fault (program cc1plus))
Backported from mainline
	2016-06-14  Jakub Jelinek  <jakub@redhat.com>

	PR c++/71516
	* decl.c (complete_vars): Handle gracefully type == error_mark_node.

	* g++.dg/init/pr71516.C: New test.

From-SVN: r238097
2016-07-07 14:44:33 +02:00
Jakub Jelinek a554921f61 backport: re PR middle-end/71494 (label as value in nested function)
Backported from mainline
	2016-06-10  Jakub Jelinek  <jakub@redhat.com>

	PR middle-end/71494
	* tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
	without LABEL_DECL, set *handled_ops_p to false instead of true.

	* gcc.c-torture/execute/pr71494.c: New test.

From-SVN: r238096
2016-07-07 14:43:50 +02:00
Jakub Jelinek 210bc3f9c0 backport: re PR sanitizer/71498 (ubsan bounds checking influenced by surrounding code)
Backported from mainline
	2016-06-13  Jakub Jelinek  <jakub@redhat.com>

	PR sanitizer/71498
	* c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
	all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.

	* c-c++-common/ubsan/bounds-13.c: New test.

From-SVN: r238095
2016-07-07 14:42:43 +02:00
Jakub Jelinek dff1ad34a4 backport: re PR c++/70641 (ICE on valid code at -O1 and above on x86_64-linux-gnu: verify_gimple failed)
Backported from mainline
	2016-04-13  Jakub Jelinek  <jakub@redhat.com>
 
	PR c++/70641
	* ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
	on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
	eh edges have been purged.

	* g++.dg/opt/pr70641.C: New test.

From-SVN: r238094
2016-07-07 14:41:25 +02:00
Jakub Jelinek 539645578a backport: re PR target/70633 (ICE on valid code at -Os (in 32-bit mode) on x86_64-linux-gnu: output_operand: invalid expression as operand)
Backported from mainline
	2016-04-13  Jakub Jelinek  <jakub@redhat.com>
 
	PR middle-end/70633
	* gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
	gimplification turns some element into non-constant.

	* gcc.c-torture/compile/pr70633.c: New test.

From-SVN: r238093
2016-07-07 14:40:43 +02:00
Jakub Jelinek 0dec00b72b backport: re PR debug/70628 (ICE in get_reg_rtx, at emit-rtl.c:1025)
Backported from mainline
	2016-04-13  Jakub Jelinek  <jakub@redhat.com>

	PR debug/70628
	* explow.c (convert_memory_address_addr_space_1): Formatting fix.

	PR debug/70628
	* rtl.h (convert_memory_address_addr_space_1): New prototype.
	* explow.c (convert_memory_address_addr_space_1): No longer static,
	add NO_EMIT argument and don't call convert_modes if true, pass
	it down recursively, remove break after return.
	(convert_memory_address_addr_space): Adjust caller.
	* simplify-rtx.c (simplify_unary_operation_1): Call
	convert_memory_address_addr_space_1 instead of convert_memory_address,
	if it returns NULL, don't simplify.

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

From-SVN: r238092
2016-07-07 14:39:40 +02:00
Jakub Jelinek 21abdacbec backport: re PR target/70574 (wrong code with -mavx2, read of partially initialised stack variable)
Backported from mainline
	2016-04-08  Jakub Jelinek  <jakub@redhat.com>

	PR rtl-optimization/70574
	* fwprop.c (forward_propagate_and_simplify): Don't add
	REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
	(try_fwprop_subst): Don't add REG_EQUAL note if there are any
	paradoxical subregs within *loc.

	* gcc.target/i386/avx2-pr70574.c: New test.

From-SVN: r238091
2016-07-07 14:34:07 +02:00
Jakub Jelinek 00bebe248c backport: re PR c++/70336 (Incorrect Wconversion warning)
Backported from mainline
	2016-04-05  Jakub Jelinek  <jakub@redhat.com>

	PR c++/70336
	* match.pd (nested int casts): Limit to GIMPLE.

	* c-c++-common/pr70336.c: New test.
	* gcc.dg/torture/builtin-isinf_sign-1.c (foo): Guard tests
	no longer optimized away at -O0 with #ifndef __OPTIMIZE__.

From-SVN: r238090
2016-07-07 14:33:10 +02:00
Richard Biener 3073e06031 backport: [multiple changes]
2016-07-07  Richard Biener  <rguenther@suse.de>

	Backport from mainline
	2016-06-07  Richard Biener  <rguenther@suse.de>

	PR middle-end/71423
	* match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
	for signed ops.

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

	2016-06-08  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/71452
	* tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
	type used for the SSA rewrite has enough precision to cover
	the dynamic type of the location.

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

	2016-06-14  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/71522
	* tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
	copying into float copying.

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

From-SVN: r238084
2016-07-07 10:33:01 +00:00
GCC Administrator 6f35912ae3 Daily bump.
From-SVN: r238071
2016-07-07 00:16:12 +00:00
GCC Administrator 189b00f6fd Daily bump.
From-SVN: r238027
2016-07-06 00:16:12 +00:00
Markus Trippelsdorf 65f1537f39 re PR c++/71214 (Typo in feature test macro for rvalue references)
Fix PR c++/71214

	 PR c++/71214
	* c-cppbuiltin.c (c_cpp_builtins): Define * __cpp_rvalue_references.

From-SVN: r238020
2016-07-05 17:58:35 +00:00
GCC Administrator 2938602907 Daily bump.
From-SVN: r237996
2016-07-05 00:16:09 +00:00
Ville Voutilainen 4b386db092 backport: re PR libstdc++/71313 ([Filesystem TS] remove_all fails to remove directory contents recursively)
Backport from mainline
        2016-07-04  Ville Voutilainen  <ville.voutilainen@gmail.com>

	PR libstdc++/71313
	* src/filesystem/ops.cc (remove_all(const path&, error_code&)):
	Call remove_all for children of a directory.
	* testsuite/experimental/filesystem/operations/create_directories.cc:
	Adjust.

From-SVN: r237981
2016-07-04 16:52:21 +03:00
GCC Administrator 021de257a6 Daily bump.
From-SVN: r237952
2016-07-04 00:16:09 +00:00
GCC Administrator 93aa5c5dd5 Daily bump.
From-SVN: r237947
2016-07-03 00:16:10 +00:00
GCC Administrator 745b7ab1d1 Daily bump.
From-SVN: r237934
2016-07-02 00:16:13 +00:00
Eric Botcazou d7ecb13e87 arm.c (arm_function_ok_for_sibcall): Add another check for NULL decl.
* config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
	for NULL decl.

From-SVN: r237905
2016-07-01 07:41:01 +00:00
GCC Administrator 359af05b2b Daily bump.
From-SVN: r237900
2016-07-01 00:16:09 +00:00
Jakub Jelinek a4026c723d re PR middle-end/71693 (ICE: verify_gimple failed (type mismatch in shift expression, -O0, -O1, -O2, -O3))
PR middle-end/71693
	* fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
	TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
	first when permuting bitwise operation with rotate.  Cast
	TREE_OPERAND (arg0, 0) to type when cancelling two rotations.

	* gcc.c-torture/compile/pr71693.c: New test.

From-SVN: r237877
2016-06-30 11:08:32 +02:00
GCC Administrator 93dd6108dd Daily bump.
From-SVN: r237867
2016-06-30 00:16:09 +00:00
GCC Administrator 6317e93eb1 Daily bump.
From-SVN: r237834
2016-06-29 00:16:09 +00:00
GCC Administrator 109e48ff09 Daily bump.
From-SVN: r237808
2016-06-28 00:16:09 +00:00
Paul Thomas 7f1005e379 re PR fortran/70673 (ICE with module containing functions with allocatable character scalars)
2016-06-27  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/70673
	* frontend-passes.c (realloc_string_callback): Add a call to
	gfc_dep_compare_expr.

2016-06-27  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/70673
	* gfortran.dg/pr70673.f90: New test.

From-SVN: r237805
2016-06-27 20:57:13 +00:00
Paul Thomas ae2c036774 re PR fortran/70673 (ICE with module containing functions with allocatable character scalars)
2016-06-27  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/70673
	* frontend-passes.c (realloc_string_callback): Add a call to
	gfc_dep_compare_expr.

2016-06-27  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/70673
	* gfortran.dg/pr70673.f90: New test.

From-SVN: r237804
2016-06-27 20:54:56 +00:00
GCC Administrator c39f4ac558 Daily bump.
From-SVN: r237795
2016-06-27 00:16:10 +00:00