]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
8 years agoImprove tests for contents of <new> header
Jonathan Wakely [Mon, 12 Dec 2016 16:36:30 +0000 (16:36 +0000)] 
Improve tests for contents of <new> header

Backport from mainline
2016-12-07  Jonathan Wakely  <jwakely@redhat.com>

* testsuite/18_support/headers/new/synopsis.cc: Add C++14 declarations.
* testsuite/18_support/headers/new/synopsis_cxx98.cc: New test.

From-SVN: r243565

8 years agoPR78465 Remove runtime tests for <atomic> macros
Jonathan Wakely [Mon, 12 Dec 2016 16:36:25 +0000 (16:36 +0000)] 
PR78465 Remove runtime tests for <atomic> macros

PR libstdc++/78465
* testsuite/29_atomics/headers/atomic/macros.cc: Replace runtime tests
with preprocessor conditions.

From-SVN: r243564

8 years agoBackport all Filesystem library fixes from trunk
Jonathan Wakely [Mon, 12 Dec 2016 15:00:43 +0000 (15:00 +0000)] 
Backport all Filesystem library fixes from trunk

This implements the following LWG DRs:
2681 2682 2683 2706 2707 2712 2720 2723

Backport from mainline
PR libstdc++/70975
PR libstdc++/71337
PR libstdc++/78111
* include/experimental/bits/fs_dir.h (recursive_directory_iterator):
Overload pop (LWG 2706).
* include/experimental/bits/fs_fwd.h (perms::resolve_symlinks):
Replace with symlink_nofollow (LWG 2720).
* include/experimental/bits/fs_ops.h
(exists(const path&, error_code&)): Clear error if status is known
(LWG 2725).
* include/experimental/bits/fs_path.h (__is_path_src)
(_S_range_begin, _S_range_end): Overload to treat string_view as a
Source object.
(path::operator+=, path::compare): Overload for basic_string_view.
(path::path(string_type&&))
(path::operator=(string&&), path::assign(string_type&&)): Define
construction and assignment from string_type rvalues (LWG 2707).
(path::_S_convert<_Iter>(_Iter, _Iter)): Remove cv-qualifiers from
iterator's value_type.
(path::_S_convert<_Iter>(_Iter __first, __null_terminated)): Likewise.
Do not use operation not supported by input iterators.
(path::__is_path_iter_src): Add partial specialization for const
encoded character types.
* src/filesystem/dir.cc (open_dir): Return same value for errors
whether ignored or not.
(_Dir::advance(error_code*, directory_options)): Return false on
error.
(directory_iterator(const path&, directory_options, error_code*)):
Create end iterator on error (LWG 2723).
(recursive_directory_iterator(const path&, directory_options,
error_code*)): Likewise.
(recursive_directory_iterator::increment): Reset state on error.
(recursive_directory_iterator::pop): Define new overload.
* src/filesystem/ops.cc (canonical): Set error for non-existent path.
(file_time): Take error_code parameter and check for overflow.
(close_fd): Remove.
(do_copy_file): Report an error if source or destination is not a
regular file (LWG 2712). Pass error_code in file_time calls.  Just
use close(3) instead of close_fd, to prevent retrying on error.
Check if _GLIBCXX_USE_FCHMODAT is defined.
[_GLIBCXX_USE_SENDFILE]: Fallback to read/write operations in case
sendfile fails with ENOSYS or EINVAL. Pass non-null pointer to
sendfile for offset argument.
(copy): Update comment to refer to LWG 2681. Implement 2682 and 2683
resolutions.
(equivalent): Fix error handling and result when only one file exists.
(is_empty): Fix error handling.
(last_write_time(const path&, error_code&)): Pass error_code in
file_time calls.
(last_write_time(const path&, file_time_type, error_code&)): Handle
negative times correctly.
(permissions(const path&, perms, error_code&)): Handle
symlink_nofollow.
(read_symlink): Add missing ec.clear().
(status(const path&, error_code&)): Handle EOVERFLOW.
(temp_directory_path): Pass error_code argument to other filesystem
operations.
* testsuite/experimental/filesystem/iterators/directory_iterator.cc:
Update expected behaviour on error.
* testsuite/experimental/filesystem/iterators/pop.cc: New.
* testsuite/experimental/filesystem/iterators/
recursive_directory_iterator.cc: Update expected behaviour on error.
* testsuite/experimental/filesystem/operations/copy.cc: Update
expected behaviour for copying directories with create_symlinks.
Verify that error_code arguments are cleared if there's no error.
Remove files created by tests. Test copying directories.
* testsuite/experimental/filesystem/operations/copy_file.cc: Remove
files created by tests.
* testsuite/experimental/filesystem/operations/create_symlink.cc: New.
* testsuite/experimental/filesystem/operations/equivalent.cc: New.
* testsuite/experimental/filesystem/operations/exists.cc: Test
overload taking an error_code.
* testsuite/experimental/filesystem/operations/is_empty.cc: New.
* testsuite/experimental/filesystem/operations/last_write_time.cc:
New.
* testsuite/experimental/filesystem/operations/permissions.cc: Test
overload taking error_code. Test symlink_nofollow on non-symlinks.
* testsuite/experimental/filesystem/operations/read_symlink.cc: New.
* testsuite/experimental/filesystem/operations/remove_all.cc: New.
* testsuite/experimental/filesystem/operations/temp_directory_path.cc:
Add testcase for inaccessible directory.
* testsuite/experimental/filesystem/path/construct/range.cc: Test
construction from input iterators with const value types.
* testsuite/experimental/filesystem/path/construct/string_view.cc:
New.
* testsuite/util/testsuite_fs.h (scoped_file): Define RAII helper.

From-SVN: r243557

8 years agobackport: re PR tree-optimization/77309 (wrong code at -Os and above on x86_64-linux...
Bernd Schmidt [Mon, 12 Dec 2016 13:01:28 +0000 (13:01 +0000)] 
backport: re PR tree-optimization/77309 (wrong code at -Os and above on x86_64-linux-gnu (in the 64-bit mode))

Backport from mainline
2016-11-07  Bernd Schmidt  <bschmidt@redhat.com>

        PR rtl-optimization/77309
        * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
        don't assume an equality comparison for plain COMPARE.
        (simplify_comparison): Pass a more accurate code to
        make_compound_operation.

        PR rtl-optimization/77309
        * gcc.dg/torture/pr77309.c: New test.

From-SVN: r243550

8 years agoDaily bump.
GCC Administrator [Mon, 12 Dec 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243535

8 years agoDaily bump.
GCC Administrator [Sun, 11 Dec 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243521

8 years agoDaily bump.
GCC Administrator [Sat, 10 Dec 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243511

8 years agoDaily bump.
GCC Administrator [Fri, 9 Dec 2016 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243471

8 years agore PR c++/78551 (Internal compiler error with constexpr initialization of union)
Nathan Sidwell [Thu, 8 Dec 2016 19:27:32 +0000 (19:27 +0000)] 
re PR c++/78551 (Internal compiler error with constexpr initialization of union)

PR c++/78551
* constexpr.c (extract_string_elt): New.  Broken out of ...
(cxx_eval_array_reference): ... here.  Call it.
(cxx_eval_store_expression): Convert init by STRING_CST into
CONSTRUCTOR, if needed.

PR c++/78551
* g++.dg/cpp1y/pr78551.C: New.

From-SVN: r243457

8 years agoDaily bump.
GCC Administrator [Thu, 8 Dec 2016 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243421

8 years agors6000: Don't forget to initialize the TOC (PR77957)
Segher Boessenkool [Wed, 7 Dec 2016 23:11:23 +0000 (00:11 +0100)] 
rs6000: Don't forget to initialize the TOC (PR77957)

The code generating traceback tables mistakenly does an early return
if !optional_tbtab, which causes it to miss the code generating the TOC
section.  This only matters if the TOC will be empty since otherwise
the section is created elsewhere.

This patch fixes it.

PR target/77957
* config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
return early if !optional_tbtab.

From-SVN: r243416

8 years agobackport: [multiple changes]
Thomas Preud'homme [Wed, 7 Dec 2016 17:51:00 +0000 (17:51 +0000)] 
backport: [multiple changes]

2016-12-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    Backport from mainline
    2016-11-16  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/
    * config/arm/arm.md (arm_addsi3): Add alternative for addition of
    general register with general register or ARM constant into SP
    register.

    gcc/testsuite/
    * gcc.target/arm/empty_fiq_handler.c: New test.

    Backport from mainline
    2016-11-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/testsuite/
    * gcc.target/arm/empty_fiq_handler.c: Skip if -mthumb is passed in and
    target is Thumb-only.

From-SVN: r243373

8 years agobackport: Constrain optional's __constexpr_addressof in its return type and use a...
Ville Voutilainen [Wed, 7 Dec 2016 15:22:34 +0000 (17:22 +0200)] 
backport: Constrain optional's __constexpr_addressof in its return type and use a constexpr addressof for optional, if available.

Backport from mainline
2016-12-06  Ville Voutilainen  <ville.voutilainen@gmail.com>

Constrain optional's __constexpr_addressof in its return type
and use a constexpr addressof for optional, if available.
* include/experimental/optional (__constexpr_addressof):
Constrain in the return type instead of in a template parameter.
(_Has_addressof_mem)
(_Has_addressof_free, _Has_addressof, __constexpr_addressof):
Guard with #ifndef __cpp_lib_addressof_constexpr.
(operator->()): Use std::__addressof if it's constexpr.

From-SVN: r243350

8 years agobackport: re PR tree-optimization/78646 (incorrect result type for pointer addition...
Bill Schmidt [Wed, 7 Dec 2016 01:08:40 +0000 (01:08 +0000)] 
backport: re PR tree-optimization/78646 (incorrect result type for pointer addition in slsr)

2016-12-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2016-12-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
            Stefan Freudenberger  <stefan@reservoir.com>

PR tree-optimization/78646
* gimple-ssa-strength-reduction.c (replace_ref): The pointer
addition used for the memory base expression should have the type
of the candidate.

From-SVN: r243331

8 years agoDaily bump.
GCC Administrator [Wed, 7 Dec 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243326

8 years agoAdd missing noexcept on std::_Sp_locker constructors
Aditya Kumar [Tue, 6 Dec 2016 11:56:56 +0000 (11:56 +0000)] 
Add missing noexcept on std::_Sp_locker constructors

2016-12-06  Aditya Kumar  <hiraditya@msn.com>

* src/c++11/shared_ptr.cc (_Sp_locker::_Sp_locker(const void* p)): Add
noexcept on constructor.
(_Sp_locker::_Sp_locker(const void* p1, const void* p2)): Same.

From-SVN: r243296

8 years agoDaily bump.
GCC Administrator [Tue, 6 Dec 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243275

8 years agoDaily bump.
GCC Administrator [Mon, 5 Dec 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243233

8 years agobackport: re PR fortran/78443 ([OOP] Incorrect behavior with non_overridable keyword)
Janus Weil [Sun, 4 Dec 2016 16:34:13 +0000 (17:34 +0100)] 
backport: re PR fortran/78443 ([OOP] Incorrect behavior with non_overridable keyword)

2016-12-04  Janus Weil  <janus@gcc.gnu.org>

Backport from trunk
PR fortran/78443
* class.c (add_proc_comp): Add a vtype component for non-overridable
procedures that are overriding.

2016-12-04  Janus Weil  <janus@gcc.gnu.org>

Backport from trunk
PR fortran/78443
* gfortran.dg/typebound_proc_35.f90: New test case.

From-SVN: r243230

8 years agoDaily bump.
GCC Administrator [Sun, 4 Dec 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243225

8 years agoDaily bump.
GCC Administrator [Sat, 3 Dec 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243212

8 years ago[ree] PR rtl-optimization/78038: Handle global register dataflow definitions in ree
Kyrylo Tkachov [Fri, 2 Dec 2016 12:22:54 +0000 (12:22 +0000)] 
[ree] PR rtl-optimization/78038: Handle global register dataflow definitions in ree

2016-12-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

Backport from mainline
2016-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

PR rtl-optimization/78038
* ree.c (get_defs): Return NULL if a defining insn for REG cannot
be deduced to set REG through the RTL structure.
(make_defs_and_copies_lists): Return false on a failing get_defs call.

* gcc.target/aarch64/pr78038.c: New test.

From-SVN: r243175

8 years agoS/390: Fix vector all/any cc modes.
Andreas Krebbel [Fri, 2 Dec 2016 08:51:58 +0000 (08:51 +0000)] 
S/390: Fix vector all/any cc modes.

This fixes a problem with the vector compares producing CC mode
results.

The instructions produce condition code modes which can be either
interpreted to check an ALL elements or an ANY element result.  As the
modes where used before they could not be inverted by the middle-end
by inverting the comparison code (e.g. eq to ne).  The result usually
was just wrong.

In fact inverting a comparison code on an CCVALL mode would require to
also change the mode to CCVANY but this cannot be done easily in the
middle-end.  With this patch the meaning of an ALL cc mode only refers
to the not-inverted comparison code (e.g. eq, gt, ge).  With that
change inverting the comparison code matches a not operation on the
condition code mask again.

Bootstrapped and regression tested on s390 and s390x.

Bye,

-Andreas-

gcc/testsuite/ChangeLog:

2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

Backport from mainline
2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* gcc.target/s390/vector/vec-scalar-cmp-1.c: Fix and harden the
pattern checks.
* gcc.target/s390/zvector/vec-cmp-1.c: New test.

gcc/ChangeLog:

2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

Backport from mainline
2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
(CCVHUANY): Remove modes.
(CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
documentation.
* config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
(s390_expand_vec_compare_scalar): Pick one of the cc consumer
modes.
(s390_branch_condition_mask): Adjust to use the new cc consumer
modes.  The new modes allow for proper reversal in the middle-end.
(s390_expand_vec_compare_cc): Determine the proper cc producer and
consumer modes for a comparison.
* config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
throughout the file.
* config/s390/vx-builtins.md: Likewise.

From-SVN: r243169

8 years agoDaily bump.
GCC Administrator [Fri, 2 Dec 2016 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243148

8 years agobackport: rs6000.c (insn_is_swappable_p): Properly look inside UNSPEC_VSX_XXSPLTW...
Bill Schmidt [Thu, 1 Dec 2016 23:13:25 +0000 (23:13 +0000)] 
backport: rs6000.c (insn_is_swappable_p): Properly look inside UNSPEC_VSX_XXSPLTW vec.

2016-12-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2016-12-01  Alan Modra  <amodra@gmail.com>

* gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
look inside UNSPEC_VSX_XXSPLTW vec.

From-SVN: r243144

8 years agore PR fortran/78279 (ICE in identical_array_ref, at fortran/dependency.c:104)
Steven G. Kargl [Thu, 1 Dec 2016 21:28:41 +0000 (21:28 +0000)] 
re PR fortran/78279 (ICE in identical_array_ref, at fortran/dependency.c:104)

2016-12-01  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/78279
* dependency.c (identical_array_ref): Convert gcc_assert to conditional
and gfc_internal_error.

2016-12-01  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/78279
* gfortran.dg/pr78279.f90: New test.

From-SVN: r243134

8 years agoDon't define libstdc++-internal macros in Solaris 10+ <math.h>
Rainer Orth [Thu, 1 Dec 2016 15:15:40 +0000 (15:15 +0000)] 
Don't define libstdc++-internal macros in Solaris 10+ <math.h>

fixincludes:
Backport from mainline
2016-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

* inclhack.def (solaris_math_12): New fix.
(hpux11_fabsf): Replace bypass by *-hp-hpux11* mach selector.
* fixincl.x: Regenerate.
* tests/base/math.h [SOLARIS_MATH_12_CHECK]: New test.

libstdc++-v3:
Backport from mainline
2016-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

* acinclude.m4 (GLIBCXX_CHECK_MATH11_PROTO): Update comments.
(__CORRECT_ISO_CPP11_MATH_H_PROTO): Rename to ...
(__CORRECT_ISO_CPP11_MATH_H_PROTO_FP): ... this.
Add test for C++11 <math.h> integral overloads.
* configure: Regenerate.
* config.h.in: Regenerate.

* include/c_global/cmath [__cplusplus >= 201103L]: Reflect
__CORRECT_ISO_CPP11_MATH_H_PROTO to
__CORRECT_ISO_CPP11_MATH_H_PROTO_FP rename.
* include/c_global/cmath [_GLIBCXX_USE_C99_MATH &&
!_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC && __cplusplus >= 201103L]
(std::fpclassify): Wrap in !__CORRECT_ISO_CPP11_MATH_H_PROTO_INT.
(std::isfinite): Likewise.
(std::isinf): Likewise.
(std::isnan): Likewise.
(std::isnormal): Likewise.
(std::signbit): Likewise.
(std::isgreater): Likewise.
(std::isgreaterequal): Likewise.
(std::isless): Likewise.
(std::islessequal): Likewise.
(std::islessgreater): Likewise.
(std::isunordered): Likewise.
[__cplusplus >= 201103L && _GLIBCXX_USE_C99_MATH_TR1]
(std::acosh): Likewise.
(std::asinh): Likewise.
(std::atanh): Likewise.
(std::cbrt): Likewise.
(std::copysign): Likewise.
(std::erf): Likewise.
(std::erfc): Likewise.
(std::exp2): Likewise.
(std::expm1): Likewise.
(std::fdim): Likewise.
(std::fma): Likewise.
(std::fmax): Likewise.
(std::fmin): Likewise.
(std::hypot): Likewise.
(std::ilogb): Likewise.
(std::lgamma): Likewise.
(std::llrint): Likewise.
(std::llround): Likewise.
(std::log1p): Likewise.
(std::log2): Likewise.
(std::logb): Likewise.
(std::lrint): Likewise.
(std::lround): Likewise.
(std::nearbyint): Likewise.
(std::nextafter): Likewise.
(std::nexttoward): Likewise.
(std::remainder): Likewise.
(std::remquo): Likewise.
(std::rint): Likewise.
(std::round): Likewise.
(std::scalbln): Likewise.
(std::scalbn): Likewise.
(std::tgamma): Likewise.
(std::trunc): Likewise.
* include/tr1/cmath [_GLIBCXX_USE_C99_MATH_TR1 && __cplusplus >=
201103L]: Reflect __CORRECT_ISO_CPP11_MATH_H_PROTO to
__CORRECT_ISO_CPP11_MATH_H_PROTO_FP rename.

From-SVN: r243115

8 years agoDaily bump.
GCC Administrator [Thu, 1 Dec 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243089

8 years agoDaily bump.
GCC Administrator [Wed, 30 Nov 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242986

8 years agobackport: re PR target/78426 (wrong code with strncmp on SH)
Kaz Kojima [Tue, 29 Nov 2016 23:23:30 +0000 (23:23 +0000)] 
backport: re PR target/78426 (wrong code with strncmp on SH)

Backported from mainline
2016-11-19  Kaz Kojima  <kkojima@gcc.gnu.org>

PR target/78426
* config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
instead of force_reg.
(sh_expand_setmem): Likewise.

From-SVN: r242982

8 years agoDaily bump.
GCC Administrator [Tue, 29 Nov 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242939

8 years agoDaily bump.
GCC Administrator [Mon, 28 Nov 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242903

8 years agoDaily bump.
GCC Administrator [Sun, 27 Nov 2016 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242889

8 years agoDaily bump.
GCC Administrator [Sat, 26 Nov 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242885

8 years agoDaily bump.
GCC Administrator [Fri, 25 Nov 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242855

8 years agore PR fortran/78500 (ICE in gfc_check_vardef_context, at fortran/expr.c:5289)
Steven G. Kargl [Thu, 24 Nov 2016 20:11:49 +0000 (20:11 +0000)] 
re PR fortran/78500 (ICE in gfc_check_vardef_context, at fortran/expr.c:5289)

2016-11-24  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/78500
* expr.c (gfc_check_vardef_contextm): Fix NULL pointer dereference.
* interface.c (matching_typebound_op): Ditto.

2016-11-24  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/78500
* gfortran.dg/class_result_4.f90: New test.

From-SVN: r242849

8 years agoAdd missing backport note to changelog entry
Martin Liska [Thu, 24 Nov 2016 10:20:11 +0000 (10:20 +0000)] 
Add missing backport note to changelog entry

From-SVN: r242826

8 years agoAdd sem_item::m_hash_set (PR ipa/78309)
Martin Liska [Thu, 24 Nov 2016 10:12:24 +0000 (11:12 +0100)] 
Add sem_item::m_hash_set (PR ipa/78309)

PR ipa/78309
* ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
(sem_function::get_hash): Use the new field.
(sem_function::parse): Remove an argument from ctor.
(sem_variable::parse): Likewise.
(sem_variable::get_hash): Use the new field.
(sem_item_optimizer::read_section): Use new ctor and set hash.
* ipa-icf.h: _hash is removed from sem_item::sem_item,
sem_variable::sem_variable, sem_function::sem_function.

From-SVN: r242824

8 years agoDaily bump.
GCC Administrator [Thu, 24 Nov 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242815

8 years agore PR fortran/78297 (ICE in finish_equivalences, at fortran/trans-common.c:1246)
Steven G. Kargl [Wed, 23 Nov 2016 22:48:54 +0000 (22:48 +0000)] 
re PR fortran/78297 (ICE in finish_equivalences, at fortran/trans-common.c:1246)

2016-11-23  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/78297
* trans-common.c (finish_equivalences): Do not dereference a NULL pointer.

2016-11-23  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/78297
* gfortran.dg/pr78297.f90: New test.

From-SVN: r242811

8 years agoi386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
Uros Bizjak [Wed, 23 Nov 2016 21:40:26 +0000 (22:40 +0100)] 
i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.

* config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
(kxnor<mode>): Return "#" for alternative 0.

From-SVN: r242801

8 years agobackport: re PR fortran/66227 ([OOP] EXTENDS_TYPE_OF n returns wrong result for polym...
Janus Weil [Wed, 23 Nov 2016 16:46:31 +0000 (17:46 +0100)] 
backport: re PR fortran/66227 ([OOP] EXTENDS_TYPE_OF n returns wrong result for polymorphic variable allocated to extended type)

2016-11-23  Janus Weil  <janus@gcc.gnu.org>

Backport from trunk
PR fortran/66227
* simplify.c (gfc_simplify_extends_type_of): Fix missed optimization.
Prevent over-simplification. Fix a comment. Add a comment.

2016-11-23  Janus Weil  <janus@gcc.gnu.org>

Backport from trunk
PR fortran/66227
* gfortran.dg/extends_type_of_3.f90: Fix and extend the test case.

From-SVN: r242770

8 years agoReplace unsupported effective-target with dg-options
Jonathan Wakely [Wed, 23 Nov 2016 15:27:12 +0000 (15:27 +0000)] 
Replace unsupported effective-target with dg-options

* testsuite/24_iterators/reverse_iterator/71771.cc: Replace calls to
C++14 std::rbegin and std::rend.  Use dg-options instead of
effective-target.

From-SVN: r242764

8 years agoDaily bump.
GCC Administrator [Wed, 23 Nov 2016 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242730

8 years agoMakefile.in ($(lang_checks_parallelized)): Fix detection of -j argument.
Uros Bizjak [Tue, 22 Nov 2016 18:19:58 +0000 (19:19 +0100)] 
Makefile.in ($(lang_checks_parallelized)): Fix detection of -j argument.

gcc/ChangeLog

* Makefile.in ($(lang_checks_parallelized)): Fix detection
of -j argument.

gcc/ada/ChangeLog

* gcc-interface/Make-lang.in (check-acats): Fix detection
of -j argument.

libstdc++-v3/ChangeLog

* testsuite/Makefile.am
(check-DEJAGNU $(check_DEJAGNU_normal_targets)): Fix detection
of -j argument.
* testsuite/Makefile.in: Regenereate.

From-SVN: r242716

8 years agoDaily bump.
GCC Administrator [Tue, 22 Nov 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242684

8 years agoDaily bump.
GCC Administrator [Mon, 21 Nov 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242644

8 years agore PR fortran/69741 (Bad error in forall with array loop counters)
Harald Anlauf [Sun, 20 Nov 2016 20:14:18 +0000 (20:14 +0000)] 
re PR fortran/69741 (Bad error in forall with array loop counters)

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

PR fortran/69741
* resolve.c (gfc_resolve_forall): Check for nonscalar index variables.

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

PR fortran/69741
* gfortran.dg/forall_18.f90: New testcase.

From-SVN: r242643

8 years agoDaily bump.
GCC Administrator [Sun, 20 Nov 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242630

8 years agoDaily bump.
GCC Administrator [Sat, 19 Nov 2016 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242611

8 years agoDaily bump.
GCC Administrator [Fri, 18 Nov 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242579

8 years agoDaily bump.
GCC Administrator [Thu, 17 Nov 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242527

8 years agoFix PR78294 - thread sanitizer broken when using ld.gold
Markus Trippelsdorf [Wed, 16 Nov 2016 11:31:18 +0000 (11:31 +0000)] 
Fix PR78294 - thread sanitizer broken when using ld.gold

When one uses ld.gold to build gcc, the thread sanitizer doesn't work,
because gold is more conservative when applying TLS relaxations than
ld.bfd. In this case a missing initial-exec attribute on a declaration
causes gcc to assume the general dynamic model. With ld.bfd this gets
relaxed to initial exec when linking the shared library, so the missing
attribute doesn't matter. But ld.gold doesn't perform this optimization
and this leads to crashes on tsan instrumented binaries.

See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78294
and: https://sourceware.org/bugzilla/show_bug.cgi?id=20805

The fix is easy, just add the missing attribute.

  PR sanitizer/78294
  * tsan/tsan_rtl.cc: Add missing attribute.

From-SVN: r242483

8 years agoDaily bump.
GCC Administrator [Wed, 16 Nov 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242464

8 years agoFix find&replace error in license boilerplate
Jonathan Wakely [Tue, 15 Nov 2016 14:44:15 +0000 (14:44 +0000)] 
Fix find&replace error in license boilerplate

* testsuite/experimental/any/typedefs.cc: Fix license text.
* testsuite/experimental/chrono/value.cc: Likewise.
* testsuite/experimental/optional/assignment/1.cc: Likewise.
* testsuite/experimental/optional/assignment/2.cc: Likewise.
* testsuite/experimental/optional/assignment/3.cc: Likewise.
* testsuite/experimental/optional/assignment/4.cc: Likewise.
* testsuite/experimental/optional/assignment/5.cc: Likewise.
* testsuite/experimental/optional/assignment/6.cc: Likewise.
* testsuite/experimental/optional/cons/move.cc: Likewise.
* testsuite/experimental/optional/cons/value.cc: Likewise.
* testsuite/experimental/optional/constexpr/cons/value.cc: Likewise.
* testsuite/experimental/optional/constexpr/make_optional.cc: Likewise.
* testsuite/experimental/optional/constexpr/observers/1.cc: Likewise.
* testsuite/experimental/optional/constexpr/observers/2.cc: Likewise.
* testsuite/experimental/optional/constexpr/observers/3.cc: Likewise.
* testsuite/experimental/optional/constexpr/observers/4.cc: Likewise.
* testsuite/experimental/optional/constexpr/observers/5.cc: Likewise.
* testsuite/experimental/optional/constexpr/relops/1.cc: Likewise.
* testsuite/experimental/optional/constexpr/relops/2.cc: Likewise.
* testsuite/experimental/optional/constexpr/relops/3.cc: Likewise.
* testsuite/experimental/optional/constexpr/relops/4.cc: Likewise.
* testsuite/experimental/optional/constexpr/relops/5.cc: Likewise.
* testsuite/experimental/optional/constexpr/relops/6.cc: Likewise.
* testsuite/experimental/optional/make_optional.cc: Likewise.
* testsuite/experimental/optional/observers/1.cc: Likewise.
* testsuite/experimental/optional/observers/2.cc: Likewise.
* testsuite/experimental/optional/observers/3.cc: Likewise.
* testsuite/experimental/optional/observers/4.cc: Likewise.
* testsuite/experimental/optional/observers/5.cc: Likewise.
* testsuite/experimental/optional/relops/1.cc: Likewise.
* testsuite/experimental/optional/relops/2.cc: Likewise.
* testsuite/experimental/optional/relops/3.cc: Likewise.
* testsuite/experimental/optional/relops/4.cc: Likewise.
* testsuite/experimental/optional/relops/5.cc: Likewise.
* testsuite/experimental/optional/relops/6.cc: Likewise.
* testsuite/experimental/optional/requirements.cc: Likewise.
* testsuite/experimental/optional/swap/1.cc: Likewise.
* testsuite/experimental/optional/typedefs.cc: Likewise.
* testsuite/experimental/ratio/value.cc: Likewise.
* testsuite/experimental/string_view/typedefs.cc: Likewise.
* testsuite/experimental/system_error/value.cc: Likewise.
* testsuite/experimental/tuple/tuple_size.cc: Likewise.
* testsuite/experimental/type_traits/value.cc: Likewise.

From-SVN: r242420

8 years agoinstall.texi: Move the 'Overriding configure test results' subsub section to the...
Matthias Klose [Tue, 15 Nov 2016 11:08:33 +0000 (11:08 +0000)] 
install.texi: Move the 'Overriding configure test results' subsub section to the...

2016-11-15  Matthias Klose  <doko@ubuntu.com>

        * doc/install.texi: Move the 'Overriding configure test results'
        subsub section to the 'Cross-Compiler-Specific Options' sub section.

From-SVN: r242411

8 years agoDaily bump.
GCC Administrator [Tue, 15 Nov 2016 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242404

8 years agoDaily bump.
GCC Administrator [Mon, 14 Nov 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242370

8 years agodecl.c (gnat_to_gnu_entity): In assertion about known Esize...
Bob Duff [Sun, 13 Nov 2016 18:38:16 +0000 (18:38 +0000)] 
decl.c (gnat_to_gnu_entity): In assertion about known Esize...

* gcc-interface/decl.c (gnat_to_gnu_entity): In assertion about known
Esize, protect with !is_type and change !Unknown_Esize to Known_Esize.

From-SVN: r242365

8 years agoDaily bump.
GCC Administrator [Sun, 13 Nov 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242343

8 years agoDaily bump.
GCC Administrator [Sat, 12 Nov 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242329

8 years agoi386.md (*<shift_insn><mode>3_doubleword): Mark operand 0 as earlyclobber.
Uros Bizjak [Fri, 11 Nov 2016 19:43:54 +0000 (20:43 +0100)] 
i386.md (*<shift_insn><mode>3_doubleword): Mark operand 0 as earlyclobber.

* config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
operand 0 as earlyclobber.
(*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.

From-SVN: r242320

8 years agore PR target/78310 (ICE: insn does not satisfy its constraints: {*bmi2_rorxdi3_1...
Uros Bizjak [Fri, 11 Nov 2016 17:04:18 +0000 (18:04 +0100)] 
re PR target/78310 (ICE: insn does not satisfy its constraints: {*bmi2_rorxdi3_1} with -mbmi2)

PR target/78310
* config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
when calculating operand 2.
(rotate to rotatex zext splitter): Ditto.

testsuite/ChangeLog:

PR target/78310
* gcc.target/i386/pr78310.c: New test.

From-SVN: r242124

8 years agoDaily bump.
GCC Administrator [Fri, 11 Nov 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242063

8 years agoDaily bump.
GCC Administrator [Thu, 10 Nov 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242028

8 years agore PR target/78262 (wrong code with -fschedule-insns)
Uros Bizjak [Wed, 9 Nov 2016 20:41:17 +0000 (21:41 +0100)] 
re PR target/78262 (wrong code with -fschedule-insns)

PR target/78262
* config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
operand 0 as earlyclobber.

testsuite/ChangeLog:

PR target/78262
* gcc.target/i386/pr78262.c: New test.

From-SVN: r242022

8 years agoDaily bump.
GCC Administrator [Wed, 9 Nov 2016 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r241985

8 years agoDaily bump.
GCC Administrator [Tue, 8 Nov 2016 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r241947

8 years agoPR libgcc/78064: Add missing include directive to unwind-c.c
Florian Weimer [Mon, 7 Nov 2016 19:54:05 +0000 (20:54 +0100)] 
PR libgcc/78064: Add missing include directive to unwind-c.c

Backport from mainline
2016-10-24  Florian Weimer  <fweimer@redhat.com>

PR libgcc/78064
* unwind-c.c: Include auto-target.h.

From-SVN: r241929

8 years agore PR driver/78206 (bootstrap failure under Apple sandbox that blacklists reads in...
Jack Howarth [Mon, 7 Nov 2016 18:35:50 +0000 (18:35 +0000)] 
re PR driver/78206 (bootstrap failure under Apple sandbox that blacklists reads in /usr/local)

2016-11-06  Jack Howarth  <howarth.at.gcc@gmail.com>

PR driver/78206
* incpath.c: (remove_dup(): Also silently ignore EPERM.

From-SVN: r241920

8 years agoDaily bump.
GCC Administrator [Mon, 7 Nov 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r241889

8 years agobackport: re PR fortran/69544 (Internal compiler error with -Wall and where)
Thomas Koenig [Sun, 6 Nov 2016 20:30:31 +0000 (20:30 +0000)] 
backport: re PR fortran/69544 (Internal compiler error with -Wall and where)

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

Backport from trunk
PR fortran/69544
PR fortran/78178
* gfortran.dg/where_5.f90:  New test.
* gfortran.dg/where_6.f90:  New test.

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

Backport from trunk
PR fortran/69544
PR fortran/78178
* match.c (match_simple_where):  Fill in locus for assigment
in simple WHERE statement.
(gfc_match_where):  Likewise.

From-SVN: r241886

8 years agoDaily bump.
GCC Administrator [Sun, 6 Nov 2016 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r241880

8 years agoPR c/71115 - [5/6 Regression] Missing warning: excess elements in struct initializer
Martin Sebor [Sat, 5 Nov 2016 23:57:13 +0000 (23:57 +0000)] 
PR c/71115 - [5/6 Regression] Missing warning: excess elements in struct initializer

PR c/71115 - [5/6 Regression] Missing warning: excess elements in struct initializer
Backport from trunk.

gcc/c/ChangeLog:
* c-typeck.c (error_init): Use
expansion_point_location_if_in_system_header.
(warning_init): Same.

gcc/testsuite/ChangeLog:
* gcc.dg/init-excess-2.c: New test.
* gcc.dg/Woverride-init-1.c: Adjust.
* gcc.dg/Woverride-init-2.c: Same.

From-SVN: r241878

8 years agoDaily bump.
GCC Administrator [Sat, 5 Nov 2016 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r241865

8 years agoDaily bump.
GCC Administrator [Fri, 4 Nov 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r241835

8 years agoCreate x.gcov file for binary w/o x.gcda file (PR
Martin Liska [Thu, 3 Nov 2016 13:43:12 +0000 (14:43 +0100)] 
Create x.gcov file for binary w/o x.gcda file (PR

From-SVN: r241820

8 years ago* explow.c (validize_mem): Do not modify the argument in-place
Eric Botcazou [Thu, 3 Nov 2016 11:51:03 +0000 (11:51 +0000)] 
* explow.c (validize_mem): Do not modify the argument in-place

From-SVN: r241814

8 years agoDaily bump.
GCC Administrator [Thu, 3 Nov 2016 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r241806

8 years agobackport: re PR middle-end/72747 (powerpc: wrong code generated for vec_splats in...
Will Schmidt [Wed, 2 Nov 2016 14:13:07 +0000 (14:13 +0000)] 
backport: re PR middle-end/72747 (powerpc: wrong code generated for vec_splats in cascading assignment)

[gcc]

2016-11-02  Will Schmidt <will_schmidt@vnet.ibm.com>

Backport from trunk
2016-10-26  Will Schmidt <will_schmidt@vnet.ibm.com>

PR middle-end/72747
* gimplify.c (gimplify_init_constructor): Move emit of constructor
assignment to earlier in the if/else logic.

[gcc/testsuite]

2016-11-02  Will Schmidt  <will_schmidt@vnet.ibm.com>

Backport from trunk
2016-10-26  Will Schmidt <will_schmidt@vnet.ibm.com>

PR middle-end/72747
* c-c++-common/pr72747-1.c: New test.
* c-c++-common/pr72747-2.c: Likewise.

From-SVN: r241793

8 years agoFix linker detection in check_gc_sections_available
Rainer Orth [Wed, 2 Nov 2016 10:35:57 +0000 (10:35 +0000)] 
Fix linker detection in check_gc_sections_available

* lib/target-supports.exp (check_gc_sections_available): Use
-print-prog-name=ld to determine linker used.

From-SVN: r241785

8 years agoParallelize check-gnat
Rainer Orth [Wed, 2 Nov 2016 10:17:35 +0000 (10:17 +0000)] 
Parallelize check-gnat

Backport from mainline
2016-10-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

* gcc-interface/Make-lang.in (lang_checks_parallelized): New target.
(check_gnat_parallelize): Likewise.

From-SVN: r241782

8 years agoDaily bump.
GCC Administrator [Wed, 2 Nov 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r241762

8 years agobackport: re PR fortran/71902 (Unneeded temporary on reallocatable character assignment)
Thomas Koenig [Tue, 1 Nov 2016 08:12:00 +0000 (08:12 +0000)] 
backport: re PR fortran/71902 (Unneeded temporary on reallocatable character assignment)

2016-10-31  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/71902
* frontend-passes.c (realloc_string_callback): Also check for the
lhs being deferred.  Name temporary variable "realloc_string".

2016-10-31  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/71902
* gfortran.dg/dependency_47.f90:  New test.
* gfortran.dg/dependency_49.f90:  New test.

From-SVN: r241732

8 years agoDaily bump.
GCC Administrator [Tue, 1 Nov 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r241728

8 years agobackport: re PR libfortran/78123 (Short reads with T edit descriptor not padding...
Jerry DeLisle [Mon, 31 Oct 2016 23:40:40 +0000 (23:40 +0000)] 
backport: re PR libfortran/78123 (Short reads with T edit descriptor not padding correctly)

2016-10-31  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

Backport from trunk
PR libgfortran/78123
* io/transfer.c (formatted_transfer_scalar_read): Clear seen_eor
only if we have tabbed to left of current position.
Backport from trunk
PR fortran/78123
* gfortran.dg/fmt_t_9.f: New test.

From-SVN: r241727

8 years agoDaily bump.
GCC Administrator [Mon, 31 Oct 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r241692

8 years agoDaily bump.
GCC Administrator [Sun, 30 Oct 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r241682

8 years agopa.h (BIGGEST_ALIGNMENT): Adjust comment.
John David Anglin [Sat, 29 Oct 2016 15:47:41 +0000 (15:47 +0000)] 
pa.h (BIGGEST_ALIGNMENT): Adjust comment.

* config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
(MALLOC_ABI_ALIGNMENT): Define.

From-SVN: r241678

8 years agoDaily bump.
GCC Administrator [Sat, 29 Oct 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r241670

8 years agoDaily bump.
GCC Administrator [Fri, 28 Oct 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r241638

8 years agoDaily bump.
GCC Administrator [Thu, 27 Oct 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r241607

8 years agoDaily bump.
GCC Administrator [Wed, 26 Oct 2016 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r241543

8 years agoDaily bump.
GCC Administrator [Tue, 25 Oct 2016 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r241500

8 years agobackport: re PR fortran/78021 (Wrong result with optimization on character constant)
Thomas Koenig [Mon, 24 Oct 2016 22:12:06 +0000 (22:12 +0000)] 
backport: re PR fortran/78021 (Wrong result with optimization on character constant)

2016-10-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/78021
* gfc_compare_functions:  Strings with different lengths in
argument lists compare unequal.

2016-10-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/78021
* gfortran.dg/string_length_3.f90:  New test.

From-SVN: r241498

8 years agore PR fortran/71895 (ICE in gfc_compare_derived_types, at fortran/interface.c:520)
Steven G. Kargl [Mon, 24 Oct 2016 21:36:49 +0000 (21:36 +0000)] 
re PR fortran/71895 (ICE in gfc_compare_derived_types, at fortran/interface.c:520)

2016-10-24  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/71895
* interface.c (gfc_compare_derived_types):  Convert gcc_assert()
to a gfc_internal_error() to prevent an ICE.

2016-10-24  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/71895
* gfortran.dg/pr71895.f90: New test.

From-SVN: r241496

8 years agore PR fortran/61420 ([OOP] type-bound procedure returning a procedure pointer fails...
Paul Thomas [Mon, 24 Oct 2016 12:14:52 +0000 (12:14 +0000)] 
re PR fortran/61420 ([OOP] type-bound procedure returning a procedure pointer fails to compile)

2016-10-24  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/61420
PR fortran/78013
* resolve.c (resolve_variable): Obtain the typespec for a
variable expression, when the variable is a function result
that is a procedure pointer.

2016-10-24  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/61420
PR fortran/78013
* gfortran.dg/proc_ptr_49.f90: New test.

From-SVN: r241474

8 years agobackport: re PR tree-optimization/77916 (ICE in verify_gimple_in_cfg: invalid (pointe...
Bill Schmidt [Mon, 24 Oct 2016 02:41:12 +0000 (02:41 +0000)] 
backport: re PR tree-optimization/77916 (ICE in verify_gimple_in_cfg: invalid (pointer) operands to plus/minus)

[gcc]

2016-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/77916
* gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
Don't allow a MINUS_EXPR for pointer arithmetic for either known
or unknown strides.
(record_increment): Increments of -1 for unknown strides just use
a multiply initializer like other negative values.
(analyze_increments): Remove stopgap solution for -1 increment
applied to pointer arithmetic.
(insert_initializers): Requirement of initializer for -1 should be
based on pointer-typedness of the candidate basis.

[gcc/testsuite]

2016-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/77916
* gcc.dg/torture/pr77916.c: New.

From-SVN: r241462

8 years agoDaily bump.
GCC Administrator [Mon, 24 Oct 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r241458

8 years agoDaily bump.
GCC Administrator [Sun, 23 Oct 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r241442