]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
6 years agobackport: re PR middle-end/86627 (Signed 128-bit division by 2 no longer expanded...
Jakub Jelinek [Fri, 12 Oct 2018 14:53:11 +0000 (16:53 +0200)] 
backport: re PR middle-end/86627 (Signed 128-bit division by 2 no longer expanded to RTL)

Backported from mainline
2018-07-24  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/86627
* expmed.c (expand_divmod): Punt if d == HOST_WIDE_INT_MIN
and size > HOST_BITS_PER_WIDE_INT.  For size > HOST_BITS_PER_WIDE_INT
and abs_d == d, do the power of two handling if profitable.

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

From-SVN: r265109

6 years agobackport: re PR middle-end/86542 (wrong-code for collapsed taskloop which needs omp_c...
Jakub Jelinek [Fri, 12 Oct 2018 14:52:18 +0000 (16:52 +0200)] 
backport: re PR middle-end/86542 (wrong-code for collapsed taskloop which needs omp_cpyfn)

Backported from mainline
2018-07-17  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/86542
* omp-low.c (create_task_copyfn): Copy over also fields corresponding
to _looptemp_ clauses, other than the first two.

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

From-SVN: r265108

6 years agobackport: re PR middle-end/86539 (OpenMP wrong-code with taskloop and references)
Jakub Jelinek [Fri, 12 Oct 2018 14:49:32 +0000 (16:49 +0200)] 
backport: re PR middle-end/86539 (OpenMP wrong-code with taskloop and references)

Backported from mainline
2018-07-17  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/86539
* gimplify.c (gimplify_omp_for): Ensure taskloop firstprivatized init
and cond temporaries don't have reference type if iterator has
pointer type.  For init use &for_pre_body instead of pre_p if
for_pre_body is non-empty.

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

From-SVN: r265107

6 years agobackport: re PR fortran/86421 (OpenMP declare simd linear ref in module causes gfortr...
Jakub Jelinek [Fri, 12 Oct 2018 14:47:57 +0000 (16:47 +0200)] 
backport: re PR fortran/86421 (OpenMP declare simd linear ref in module causes gfortran to bail out)

Backported from mainline
2018-07-10  Jakub Jelinek  <jakub@redhat.com>

PR fortran/86421
* module.c (omp_declare_simd_clauses): Add LINEAR with _REF, _VAL and
_UVAL suffixes.
(mio_omp_declare_simd): Save and restore ref, val and uval modifiers
on linear clauses.  Initialize n->where to gfc_current_locus.

* gfortran.dg/vect/pr86421.f90: New test.

From-SVN: r265106

6 years agobackport: re PR middle-end/86660 (libgomp.c++/for-15.C ICEs with nvptx offloading)
Jakub Jelinek [Fri, 12 Oct 2018 14:46:18 +0000 (16:46 +0200)] 
backport: re PR middle-end/86660 (libgomp.c++/for-15.C ICEs with nvptx offloading)

Backported from mainline
2018-07-26  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/86660
* omp-low.c (scan_sharing_clauses): Don't ignore map clauses for
declare target to variables if they have always,{to,from,tofrom} map
kinds.

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

From-SVN: r265105

6 years agobackport: re PR c++/3698 (improper handling of an extern declared inline function)
Jakub Jelinek [Fri, 12 Oct 2018 14:43:18 +0000 (16:43 +0200)] 
backport: re PR c++/3698 (improper handling of an extern declared inline function)

Backported from mainline
2018-07-16  Jakub Jelinek  <jakub@redhat.com>

PR c++/3698
PR c++/86208
* cp-gimplify.c (cp_genericize_r): When using extern_decl_map, or
in TREE_USED flag from stmt to h->to.

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

From-SVN: r265103

6 years agobackport: [multiple changes]
Richard Biener [Fri, 12 Oct 2018 13:41:56 +0000 (13:41 +0000)] 
backport: [multiple changes]

2018-10-12  Richard Biener  <rguenther@suse.de>

Backport from mainline
2018-08-23  Richard Biener  <rguenther@suse.de>

PR middle-end/87024
* tree-inline.c (copy_bb): Drop unused __builtin_va_arg_pack_len
calls.

* gcc.dg/pr87024.c: New testcase.

2018-08-17  Richard Biener  <rguenther@suse.de>

PR middle-end/86505
* tree-inline.c (copy_bb): When inlining __builtin_va_arg_pack_len ()
across a va-arg-pack using call adjust its return value accordingly.

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

From-SVN: r265100

6 years agoPR libstdc++/86751 default assignment operators for std::pair
Jonathan Wakely [Fri, 12 Oct 2018 12:51:46 +0000 (13:51 +0100)] 
PR libstdc++/86751 default assignment operators for std::pair

The solution for PR 77537 causes ambiguities due to the extra copy
assignment operator taking a __nonesuch_no_braces parameter. By making
the base class non-assignable we don't need the extra deleted overload
in std::pair. The copy assignment operator will be implicitly deleted
(and the move assignment operator not declared) as needed. Without the
additional user-provided operator in std::pair the ambiguity is avoided.

Backport from mainline
2018-07-31  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/86751
* include/bits/stl_pair.h (__pair_base): New class with deleted copy
assignment operator.
(pair): Derive from __pair_base.
(pair::operator=): Remove deleted overload.
* python/libstdcxx/v6/printers.py (StdPairPrinter): New pretty printer
so that new base class isn't shown in GDB.
* testsuite/20_util/pair/86751.cc: New test.
* testsuite/20_util/pair/ref_assign.cc: New test.

From-SVN: r265096

6 years agoPR libstdc++/78595 implement insertion into maps in terms of emplace
Jonathan Wakely [Fri, 12 Oct 2018 12:51:40 +0000 (13:51 +0100)] 
PR libstdc++/78595 implement insertion into maps in terms of emplace

C++14 simplified the specification of the generic insert function
templates to be equivalent to calling emplace (or emplace_hint).
Defining them in terms of emplace takes care of the problems described
in PR 78595, ensuring a single conversion to value_type is done at the
right time.

Backport from mainline
2018-09-03  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/78595
* include/bits/stl_map.h (map::insert(_Pair&&))
(map::insert(const_iterator, _Pair&&)): Do emplace instead of insert.
* include/bits/stl_multimap.h (multimap::insert(_Pair&&))
(multimap::insert(const_iterator, _Pair&&)): Likewise.
* include/bits/unordered_map.h (unordered_map::insert(_Pair&&))
(unordered_map::insert(const_iterator, _Pair&&))
(unordered_multimap::insert(_Pair&&))
(unordered_multimap::insert(const_iterator, _Pair&&)): Likewise.
* include/std/type_traits (__enable_if_t): Define for C++11.
* testsuite/23_containers/map/modifiers/insert/78595.cc: New test.
* testsuite/23_containers/multimap/modifiers/insert/78595.cc: New test.
* testsuite/23_containers/unordered_map/modifiers/78595.cc: New test.
* testsuite/23_containers/unordered_multimap/modifiers/78595.cc: New
test.

From-SVN: r265095

6 years agoFix __gnu_cxx::_Pointer_adapter for long long arithmetic
Jonathan Wakely [Fri, 12 Oct 2018 12:51:34 +0000 (13:51 +0100)] 
Fix __gnu_cxx::_Pointer_adapter for long long arithmetic

Backport from mainline
2018-08-30  Jonathan Wakely  <jwakely@redhat.com>

* include/ext/pointer.h (_Pointer_adapter): Define operators for
pointer arithmetic using long long offsets.
* testsuite/ext/ext_pointer/1.cc: Test pointer arithmetic using
long long values.

From-SVN: r265094

6 years agoFix experimental::pmr typedefs and add tests
Jonathan Wakely [Fri, 12 Oct 2018 12:51:29 +0000 (13:51 +0100)] 
Fix experimental::pmr typedefs and add tests

The typedefs in <experimental/regex> and <experimental/string> don't
need to be in the __cxx11 namespace, because they are only aliases and
so will have the same mangled name as the underlying types.

Backport from mainline
2018-08-23  Jonathan Wakely  <jwakely@redhat.com>

* testsuite/21_strings/basic_string/init-list.cc:
Require cxx11-abi.
* testsuite/experimental/polymorphic_allocator/pmr_typedefs_match.cc:
Likewise.
* testsuite/experimental/polymorphic_allocator/pmr_typedefs_string.cc:
Likewise.

Backport from mainline
2018-08-22  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/87061
* include/experimental/regex [!_GLIBCXX_USE_CXX11_ABI]
(experimental::pmr::match_results, experimental::pmr::cmatch)
(experimental::pmr::smatch, experimental::pmr::wcmatch)
(experimental::pmr::wsmatch): Do not declare for gcc4-compatible ABI,
because COW strings don't support C++11 allocator model.
* include/experimental/string [!_GLIBCXX_USE_CXX11_ABI]
(experimental::pmr::basic_string, experimental::pmr::string)
(experimental::pmr::u16string, experimental::pmr::u32string)
(experimental::pmr::wstring): Likewise.

Backport from mainline
2018-08-15  Jonathan Wakely  <jwakely@redhat.com>

* include/experimental/regex: Remove begin/end macros for namespace.
* include/experimental/string: Likewise.
* testsuite/experimental/polymorphic_allocator/pmr_typedefs_deque.cc:
New test.
* testsuite/experimental/polymorphic_allocator/
pmr_typedefs_forward_list.cc: New test.
* testsuite/experimental/polymorphic_allocator/pmr_typedefs_list.cc:
New test.
* testsuite/experimental/polymorphic_allocator/pmr_typedefs_map.cc:
New test.
* testsuite/experimental/polymorphic_allocator/pmr_typedefs_match.cc:
New test.
* testsuite/experimental/polymorphic_allocator/
pmr_typedefs_multimap.cc: New test.
* testsuite/experimental/polymorphic_allocator/
pmr_typedefs_multiset.cc: New test.
* testsuite/experimental/polymorphic_allocator/pmr_typedefs_set.cc:
New test.
* testsuite/experimental/polymorphic_allocator/pmr_typedefs_string.cc:
New test.
* testsuite/experimental/polymorphic_allocator/
pmr_typedefs_unordered_map.cc: New test.
* testsuite/experimental/polymorphic_allocator/
pmr_typedefs_unordered_multimap.cc: New test.
* testsuite/experimental/polymorphic_allocator/
pmr_typedefs_unordered_multiset.cc: New test.
* testsuite/experimental/polymorphic_allocator/
pmr_typedefs_unordered_set.cc: New test.
* testsuite/experimental/polymorphic_allocator/pmr_typedefs_vector.cc:
New test.

From-SVN: r265093

6 years agoPR libstdc++/70966 make pmr::new_delete_resource() immortal
Jonathan Wakely [Fri, 12 Oct 2018 12:51:20 +0000 (13:51 +0100)] 
PR libstdc++/70966 make pmr::new_delete_resource() immortal

Construct the program-wide resource objects using placement new. This
means they have dynamic storage duration and won't be destroyed during
termination.

Backport from mainline
2018-07-24  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/70966
* include/experimental/memory_resource (__get_default_resource): Use
placement new to create an object with dynamic storage duration.

Backport from mainline
2018-06-20  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/70966
* include/experimental/memory_resource (__resource_adaptor_imp): Add
static assertions to enforce requirements on pointer types.
(__resource_adaptor_imp::get_allocator()): Add noexcept.
(new_delete_resource, null_memory_resource): Return address of an
object with dynamic storage duration.
(__null_memory_resource): Remove.
* testsuite/experimental/memory_resource/70966.cc: New.

From-SVN: r265092

6 years agoPR libstdc++/77854 document size_type for containers
Jonathan Wakely [Fri, 12 Oct 2018 11:36:18 +0000 (12:36 +0100)] 
PR libstdc++/77854 document size_type for containers

PR libstdc++/77854
* doc/xml/manual/status_cxx1998.xml: Document size_type and
difference_type for containers.
* doc/html/*: Regenerate.

From-SVN: r265082

6 years agoDaily bump.
GCC Administrator [Fri, 12 Oct 2018 00:16:35 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265070

6 years agoDaily bump.
GCC Administrator [Thu, 11 Oct 2018 00:16:46 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265030

6 years agoDaily bump.
GCC Administrator [Wed, 10 Oct 2018 00:16:33 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265001

6 years agoi386: Use TImode for BLKmode values in 2 integer registers
H.J. Lu [Tue, 9 Oct 2018 17:23:06 +0000 (17:23 +0000)] 
i386: Use TImode for BLKmode values in 2 integer registers

When passing and returning BLKmode values in 2 integer registers, use
1 TImode register instead of 2 DImode registers. Otherwise, V1TImode
may be used to move and store such BLKmode values, which prevent RTL
optimizations.

gcc/

Backport from mainline
PR target/87370
* config/i386/i386.c (construct_container): Use TImode for
BLKmode values in 2 integer registers.

gcc/testsuite/

Backport from mainline
PR target/87370
* gcc.target/i386/pr87370.c: New test.

From-SVN: r264989

6 years agoUse -fno-show-column in libstdc++ installed testing.
Joseph Myers [Tue, 9 Oct 2018 11:37:18 +0000 (12:37 +0100)] 
Use -fno-show-column in libstdc++ installed testing.

<https://gcc.gnu.org/ml/libstdc++/2016-08/msg00006.html> arranged for
libstdc++ tests to use -fno-show-column by default, but only for
build-tree testing.  This patch adds it to the options used for
installed testing as well.

Tested with installed testing for a cross to x86_64-linux-gnu, where
it fixes various test failures.

Backport from mainline
2018-10-02  Joseph Myers  <joseph@codesourcery.com>

* testsuite/lib/libstdc++.exp (libstdc++_init): Use
-fno-show-column in default cxxflags.

From-SVN: r264953

6 years agoDaily bump.
GCC Administrator [Tue, 9 Oct 2018 00:16:24 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264946

6 years agoi386: Correct _mm512_mask3_fmaddsub_round_pd
H.J. Lu [Mon, 8 Oct 2018 15:23:48 +0000 (15:23 +0000)] 
i386: Correct _mm512_mask3_fmaddsub_round_pd

Define _mm512_mask3_fmaddsub_round_pd with
__builtin_ia32_vfmaddsubpd512_mask, instead of
__builtin_ia32_vfmaddpd512_mask.

Backport from mainline
PR target/87517
* config/i386/avx512fintrin.h (_mm512_mask_fmaddsub_round_pd):
Defined with __builtin_ia32_vfmaddsubpd512_mask.

From-SVN: r264937

6 years agoPR libstdc++/87538 fix std::not_fn exception specifications
Jonathan Wakely [Mon, 8 Oct 2018 13:13:06 +0000 (14:13 +0100)] 
PR libstdc++/87538 fix std::not_fn exception specifications

Backport from mainline
2018-10-08  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/87538
* include/std/functional (_Not_fn::operator()): Check value of
__is_nothrow_invocable as well.
* testsuite/20_util/function_objects/not_fn/87538.cc: New test.
* testsuite/experimental/functional/87538.cc: New test.

From-SVN: r264926

6 years agoDaily bump.
GCC Administrator [Mon, 8 Oct 2018 00:16:29 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264908

6 years agoDaily bump.
GCC Administrator [Sun, 7 Oct 2018 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264904

6 years agoDaily bump.
GCC Administrator [Sat, 6 Oct 2018 00:16:55 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264894

6 years agoi386: Don't pass -msse2avx to assembler for -mavx
H.J. Lu [Fri, 5 Oct 2018 11:40:59 +0000 (11:40 +0000)] 
i386: Don't pass -msse2avx to assembler for -mavx

With

gcc -O2 -fPIC -flto -g -c -o a.o a.c
gcc -O2 -fPIC -flto -g -mavx   -c -o b.o b.c
gcc -shared -O2 -fPIC -flto -g -o lib1.so a.o b.o

LTO correctly generates AVX for b.o and SSE for a.o.  But the GCC driver
passes -msse2avx to assembler, which encodes SSE instructions as AVX
instructions.  We shouldn't pass -msse2avx to assembler for -mavx.

Backport from mainline
PR target/87522
* config/i386/gnu-user.h (ASM_SPEC): Don't pass -msse2avx to
assembler for -mavx.
* config/i386/gnu-user64.h (ASM_SPEC): Likewise.

From-SVN: r264867

6 years agoDaily bump.
GCC Administrator [Fri, 5 Oct 2018 00:16:25 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264858

6 years agoDaily bump.
GCC Administrator [Thu, 4 Oct 2018 00:16:33 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264829

6 years agobackport: i386.h (SSE_REGNO): Fix check for FIRST_REX_SSE_REG.
Uros Bizjak [Wed, 3 Oct 2018 21:49:11 +0000 (23:49 +0200)] 
backport: i386.h (SSE_REGNO): Fix check for FIRST_REX_SSE_REG.

Backport from mainline
2018-09-28  Uros Bizjak  <ubizjak@gmail.com>

* config/i386/i386.h (SSE_REGNO): Fix check for FIRST_REX_SSE_REG.
(GET_SSE_REGNO): Rename from SSE_REGNO.  Update all uses for rename.

From-SVN: r264826

6 years agoPR other/87353 fix formatting and grammar in manual
Jonathan Wakely [Wed, 3 Oct 2018 10:58:49 +0000 (11:58 +0100)] 
PR other/87353 fix formatting and grammar in manual

The changes to invoke.texi in r242433 left some unwanted spaces that
texi2pod.pl interprets as verbatim formatting. There are also some
grammatical errors due to the removal of references to GCJ, where the
G++ driver is referred to in the plural.

PR other/87353
* doc/invoke.texi (Link Options): Fix formatting and grammar.

From-SVN: r264810

6 years agoDaily bump.
GCC Administrator [Wed, 3 Oct 2018 00:16:29 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264802

6 years agoDaily bump.
GCC Administrator [Tue, 2 Oct 2018 00:16:26 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264775

6 years ago[arm] Avoid STRD with odd register for TARGET_ARM in output_move_double
Kyrylo Tkachov [Mon, 1 Oct 2018 12:39:43 +0000 (12:39 +0000)] 
[arm] Avoid STRD with odd register for TARGET_ARM in output_move_double

2018-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

Backport from mainline
2018-06-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* config/arm/arm.c (output_move_double): Don't allow STRD instructions
if starting source register is not even.

Backport from mainline
2018-07-02  Christophe Lyon  <christophe.lyon@linaro.org>

* gcc.target/arm/arm-soft-strd-even.c: Skip if -mfloat-abi is
overriden.
2018-06-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* gcc.target/arm/arm-soft-strd-even.c: New test.

From-SVN: r264746

6 years agoDaily bump.
GCC Administrator [Mon, 1 Oct 2018 00:16:17 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264729

6 years agoDaily bump.
GCC Administrator [Sun, 30 Sep 2018 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264718

6 years agore PR target/87467 (Incorrect function parameter for _mm512_abs_pd in `include/avx512...
Jakub Jelinek [Sat, 29 Sep 2018 16:28:53 +0000 (18:28 +0200)] 
re PR target/87467 (Incorrect function parameter for _mm512_abs_pd in `include/avx512fintrin.h`)

PR target/87467
* config/i386/avx512fintrin.h (_mm512_abs_pd, _mm512_mask_abs_pd): Use
__m512d type for __A argument rather than __m512.

* gcc.target/i386/avx512f-abspd-1.c (SIZE): Divide by two.
(CALC): Use double instead of float.
(TEST): Adjust to test _mm512_abs_pd and _mm512_mask_abs_pd rather than
_mm512_abs_ps and _mm512_mask_abs_ps.

From-SVN: r264714

6 years agoDaily bump.
GCC Administrator [Sat, 29 Sep 2018 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264707

6 years agoBackport pr 87033 to gcc 7
Michael Meissner [Fri, 28 Sep 2018 00:32:46 +0000 (00:32 +0000)] 
Backport pr 87033 to gcc 7

From-SVN: r264686

6 years agoDaily bump.
GCC Administrator [Fri, 28 Sep 2018 00:16:34 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264683

6 years agoDaily bump.
GCC Administrator [Thu, 27 Sep 2018 00:16:45 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264659

6 years agoDaily bump.
GCC Administrator [Wed, 26 Sep 2018 00:16:48 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264590

6 years agoDaily bump.
GCC Administrator [Tue, 25 Sep 2018 00:16:28 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264550

6 years agoFix thinko
Eric Botcazou [Mon, 24 Sep 2018 08:15:53 +0000 (08:15 +0000)] 
Fix thinko

From-SVN: r264524

6 years agoDaily bump.
GCC Administrator [Mon, 24 Sep 2018 00:16:22 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264520

6 years agoDaily bump.
GCC Administrator [Sun, 23 Sep 2018 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264508

6 years agoDaily bump.
GCC Administrator [Sat, 22 Sep 2018 00:16:31 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264498

6 years agors6000.c (rs6000_function_ok_for_sibcall): Return false if the call takes a static...
Eric Botcazou [Fri, 21 Sep 2018 10:06:25 +0000 (10:06 +0000)] 
rs6000.c (rs6000_function_ok_for_sibcall): Return false if the call takes a static chain.

* config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Return false
if the call takes a static chain.

From-SVN: r264465

6 years agoDaily bump.
GCC Administrator [Fri, 21 Sep 2018 00:16:47 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264454

6 years agopa.md (atomic_storeqi): Restore deleted expander.
John David Anglin [Thu, 20 Sep 2018 01:10:47 +0000 (01:10 +0000)] 
pa.md (atomic_storeqi): Restore deleted expander.

* config/pa/pa.md (atomic_storeqi): Restore deleted expander.
(atomic_storehi): Likewise.
(atomic_storesi): Likewise.
(atomic_loaddi): Restore compare and swap exchange loop code.

From-SVN: r264435

6 years agoDaily bump.
GCC Administrator [Thu, 20 Sep 2018 00:16:24 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264430

6 years agoDaily bump.
GCC Administrator [Wed, 19 Sep 2018 00:16:37 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264415

6 years ago[libgfortran] Fix uninitialized variable use in fallback_access
Kyrylo Tkachov [Tue, 18 Sep 2018 09:02:14 +0000 (09:02 +0000)] 
[libgfortran] Fix uninitialized variable use in fallback_access

Backport from trunk
2018-09-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* io/unix.c (fallback_access): Avoid calling close on
uninitialized file descriptor.

From-SVN: r264384

6 years agoDaily bump.
GCC Administrator [Tue, 18 Sep 2018 00:16:23 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264378

6 years agoDaily bump.
GCC Administrator [Mon, 17 Sep 2018 00:16:21 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264353

6 years agoDaily bump.
GCC Administrator [Sun, 16 Sep 2018 00:16:34 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264344

6 years agoDaily bump.
GCC Administrator [Sat, 15 Sep 2018 00:16:17 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264339

6 years agoDaily bump.
GCC Administrator [Fri, 14 Sep 2018 00:16:36 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264297

6 years agore PR fortran/87284 (Allocation of class arrays with mold results in "conditional...
Paul Thomas [Thu, 13 Sep 2018 19:46:05 +0000 (19:46 +0000)] 
re PR fortran/87284 (Allocation of class arrays with mold results in "conditional jump or move depends on uninitialised value")

2018-09-13  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/87284
* trans-expr.c (gfc_trans_class_init_assign): Access to
to array elements of the dynamic type requires that the array
reference be added to the class expression and not the _data
component, unlike scalar expressions.

2018-09-13  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/87284
* gfortran.dg/allocate_with_mold_2.f90: New test.

From-SVN: r264288

6 years agobackport: s-osinte-solaris.ads (upad64_t): New private type.
Eric Botcazou [Thu, 13 Sep 2018 10:14:39 +0000 (10:14 +0000)] 
backport: s-osinte-solaris.ads (upad64_t): New private type.

Backport from mainline
2018-07-31  Eric Botcazou  <ebotcazou@adacore.com>

* s-osinte-solaris.ads (upad64_t): New private type.
(mutex_t): Use it for 'lock' and 'data' components.
(cond_t): Likewise for 'data' and use single 'flags' component.

From-SVN: r264266

6 years agoDaily bump.
GCC Administrator [Thu, 13 Sep 2018 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264256

6 years agoBackport patch for PR86989 to 7
Segher Boessenkool [Wed, 12 Sep 2018 18:01:11 +0000 (20:01 +0200)] 
Backport patch for PR86989 to 7

2018-09-12  Segher Boessenkool  <segher@kernel.crashing.org>

Backport from trunk
2018-08-24  Segher Boessenkool  <segher@kernel.crashing.org>

PR target/86989
* config/rs6000/rs6000.c (toc_relative_expr_p): Check that the base is
the TOC register.

From-SVN: r264247

6 years agoS/390: Use proper rounding mode for DFP to BFD conversions
Andreas Krebbel [Wed, 12 Sep 2018 11:13:56 +0000 (11:13 +0000)] 
S/390: Use proper rounding mode for DFP to BFD conversions

According to IEEE 754 2008 4.3 'Rounding-direction attributes' the
rounding mode of the target format needs to be used. By not setting
the value so far we have always used the DFP rounding mode.

gcc/ChangeLog:

2018-09-12  Andreas Krebbel  <krebbel@linux.ibm.com>

Backport from mainline
2018-09-12  Andreas Krebbel  <krebbel@linux.ibm.com>

* config/s390/s390.md (PFPO_RND_MODE_DFP, PFPO_RND_MODE_BFP): New
constants.
("trunc<BFP:mode><DFP_ALL:mode>2")
("trunc<DFP_ALL:mode><BFP:mode>2")
("extend<BFP:mode><DFP_ALL:mode>2")
("extend<DFP_ALL:mode><BFP:mode>2"): Set proper rounding mode
according to the target operand type.

gcc/testsuite/ChangeLog:

2018-09-12  Andreas Krebbel  <krebbel@linux.ibm.com>

Backport from mainline
2018-09-12  Andreas Krebbel  <krebbel@linux.ibm.com>

* gcc.target/s390/dfp_to_bfp_rounding.c: New test.

From-SVN: r264236

6 years agoDaily bump.
GCC Administrator [Wed, 12 Sep 2018 00:16:35 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264224

6 years agoDaily bump.
GCC Administrator [Tue, 11 Sep 2018 00:16:25 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264198

6 years agoDaily bump.
GCC Administrator [Mon, 10 Sep 2018 00:16:29 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264187

6 years agoDaily bump.
GCC Administrator [Sun, 9 Sep 2018 00:16:28 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264174

6 years agoDaily bump.
GCC Administrator [Sat, 8 Sep 2018 00:16:33 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264165

6 years agobackport: re PR fortran/86116 (Ambiguous generic interface not recognised)
Janus Weil [Fri, 7 Sep 2018 17:33:15 +0000 (19:33 +0200)] 
backport: re PR fortran/86116 (Ambiguous generic interface not recognised)

2018-09-07  Janus Weil  <janus@gcc.gnu.org>

Backported from trunk
PR fortran/86116
* interface.c (compare_type): Remove a CLASS/TYPE check.
(compare_type_characteristics): New function that behaves like the old
'compare_type'.
(gfc_check_dummy_characteristics, gfc_check_result_characteristics):
Call 'compare_type_characteristics' instead of 'compare_type'.

2018-09-07  Janus Weil  <janus@gcc.gnu.org>

Backported from trunk
PR fortran/86116
* gfortran.dg/generic_34.f90: New test case.

From-SVN: r264161

6 years agoDaily bump.
GCC Administrator [Fri, 7 Sep 2018 00:16:22 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264153

6 years agoDaily bump.
GCC Administrator [Thu, 6 Sep 2018 00:16:31 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264136

6 years agoDaily bump.
GCC Administrator [Wed, 5 Sep 2018 00:16:20 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264098

6 years agogcc: xtensa: fix NAND code in xtensa_expand_atomic
Max Filippov [Tue, 4 Sep 2018 17:59:04 +0000 (17:59 +0000)] 
gcc: xtensa: fix NAND code in xtensa_expand_atomic

NAND is ~(a1 & a2), but xtensa_expand_atomic does ~a1 & a2.
That fixes libatomic tests atomic-op-{1,2}.

gcc/
2018-09-04  Max Filippov  <jcmvbkbc@gmail.com>

Backport from mainline
2018-09-04  Max Filippov  <jcmvbkbc@gmail.com>

* config/xtensa/xtensa.c (xtensa_expand_atomic): Reorder AND and
XOR operations in NAND case.

From-SVN: r264090

6 years agoAdd -Waligned-new to Option Summary
Jonathan Wakely [Tue, 4 Sep 2018 13:33:14 +0000 (14:33 +0100)] 
Add -Waligned-new to Option Summary

* doc/invoke.texi (Option Summary): Add -Waligned-new.

From-SVN: r264082

6 years agoDaily bump.
GCC Administrator [Tue, 4 Sep 2018 00:16:36 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264072

6 years agobackport "[tail-merge] Fix side-effect test in stmt_local_def"
Tom de Vries [Mon, 3 Sep 2018 10:04:08 +0000 (10:04 +0000)] 
backport "[tail-merge] Fix side-effect test in stmt_local_def"

2018-09-03  Tom de Vries  <tdevries@suse.de>

backport from trunk:
2018-06-21  Tom de Vries  <tdevries@suse.de>

PR tree-optimization/85859
* tree-ssa-tail-merge.c (stmt_local_def): Copy gimple_is_call
test with comment from bb_no_side_effects_p.

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

From-SVN: r264054

6 years agoDaily bump.
GCC Administrator [Mon, 3 Sep 2018 00:16:40 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264047

6 years agoDaily bump.
GCC Administrator [Sun, 2 Sep 2018 00:16:15 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264035

6 years agoDaily bump.
GCC Administrator [Sat, 1 Sep 2018 00:16:30 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264024

6 years agoDaily bump.
GCC Administrator [Fri, 31 Aug 2018 00:16:25 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r264004

6 years agoDaily bump.
GCC Administrator [Thu, 30 Aug 2018 00:16:43 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263970

6 years agoDaily bump.
GCC Administrator [Wed, 29 Aug 2018 00:16:26 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263938

6 years agoDaily bump.
GCC Administrator [Tue, 28 Aug 2018 00:16:27 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263902

6 years agoDaily bump.
GCC Administrator [Mon, 27 Aug 2018 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263865

6 years agoDaily bump.
GCC Administrator [Sun, 26 Aug 2018 00:16:42 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263858

6 years agobackport: re PR target/86662 (msp430-elf segfault with -flto and -mlarge)
Jozef Lawrynowicz [Sat, 25 Aug 2018 11:52:15 +0000 (11:52 +0000)] 
backport: re PR target/86662 (msp430-elf segfault with -flto and -mlarge)

Backport from mainline

PR target/86662

        * gcc/tree.c (build_common_tree_nodes): Initialize integer_types array
        with all enabled __intN types.

        * gcc/testsuite/gcc.target/msp430/pr86662.c: New test.

From-SVN: r263852

6 years agoDaily bump.
GCC Administrator [Sat, 25 Aug 2018 00:16:43 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263847

6 years agoDaily bump.
GCC Administrator [Fri, 24 Aug 2018 00:16:40 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263825

6 years agoDaily bump.
GCC Administrator [Thu, 23 Aug 2018 00:16:43 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263796

6 years agoDaily bump.
GCC Administrator [Wed, 22 Aug 2018 00:16:20 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263756

6 years agox86: Always update EH return address in word_mode
H.J. Lu [Tue, 21 Aug 2018 16:27:22 +0000 (16:27 +0000)] 
x86: Always update EH return address in word_mode

On x86, return address is always popped in word_mode.  eh_return needs
to put EH return address in word_mode on stack.

gcc/

Backport from mainline
PR target/87014
* config/i386/i386.md (eh_return): Always update EH return
address in word_mode.

gcc/testsuite/

Backport from mainline
PR target/87014
* g++.dg/torture/pr87014.C: New file.

From-SVN: r263744

6 years agoRestrict the pr86763 test to *-*-linux* targets
Szabolcs Nagy [Tue, 21 Aug 2018 13:20:21 +0000 (13:20 +0000)] 
Restrict the pr86763 test to *-*-linux* targets

clock_gettime is not available on some baremetal targets
and may require -lrt on some non-linux targets.

gcc/testsuite/ChangeLog:

Backport from mainline
2018-08-21  Szabolcs Nagy  <szabolcs.nagy@arm.com>

* g++.dg/torture/pr86763.C: Restrict to *-*-linux*.

From-SVN: r263701

6 years agoDaily bump.
GCC Administrator [Tue, 21 Aug 2018 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263681

6 years agoDaily bump.
GCC Administrator [Mon, 20 Aug 2018 00:16:16 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263654

6 years agoDaily bump.
GCC Administrator [Sun, 19 Aug 2018 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263649

6 years agoDaily bump.
GCC Administrator [Sat, 18 Aug 2018 00:16:17 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263642

6 years agobackport: pa.md (UNSPEC_MEMORY_BARRIER): New unspec enum.
John David Anglin [Fri, 17 Aug 2018 22:56:33 +0000 (22:56 +0000)] 
backport: pa.md (UNSPEC_MEMORY_BARRIER): New unspec enum.

Backport from mainline
2018-08-11  John David Anglin  <danglin@gcc.gnu.org>

gcc
* config/pa/pa.md (UNSPEC_MEMORY_BARRIER): New unspec enum.
Update comment for atomic instructions.
(atomic_storeqi, atomic_storehi, atomic_storesi, atomic_storesf,
atomic_loaddf, atomic_loaddf_1, atomic_storedf, atomic_storedf_1):
Remove.
(atomic_loaddi): Revise fence expansion to only emit fence prior to
load for __ATOMIC_SEQ_CST model.
(atomic_loaddi_1): Remove float register target.
(atomic_storedi): Handle CONST_INT values.
(atomic_storedi_1): Remove float register source.  Add special case
for zero value.
(memory_barrier): New expander and insn.

libgcc
* config/pa/linux-atomic.c: Update comment.
(FETCH_AND_OP_2, OP_AND_FETCH_2, FETCH_AND_OP_WORD, OP_AND_FETCH_WORD,
COMPARE_AND_SWAP_2, __sync_val_compare_and_swap_4,
SYNC_LOCK_TEST_AND_SET_2, __sync_lock_test_and_set_4): Use
__ATOMIC_RELAXED for atomic loads.
(SYNC_LOCK_RELEASE_1): New define.  Use __sync_synchronize() and
unordered store to release lock.
(__sync_lock_release_8): Likewise.
(SYNC_LOCK_RELEASE_2): Remove define.

From-SVN: r263638

6 years agobackport: re PR c++/86763 (Wrong code comparing member of copy of a 237 byte object...
Richard Biener [Fri, 17 Aug 2018 14:17:10 +0000 (14:17 +0000)] 
backport: re PR c++/86763 (Wrong code comparing member of copy of a 237 byte object with nontrivial default constructor on x86-64 arch)

2018-08-17  Richard Biener  <rguenther@suse.de>

Backport from mainline
2018-08-02  Richard Biener  <rguenther@suse.de>

PR c++/86763
* class.c (layout_class_type): Copy TYPE_TYPELESS_STORAGE
to the CLASSTYPE_AS_BASE.

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

From-SVN: r263621

6 years agoDaily bump.
GCC Administrator [Fri, 17 Aug 2018 00:16:23 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263609

6 years agoBackport r263246
Martin Liska [Thu, 16 Aug 2018 10:19:16 +0000 (12:19 +0200)] 
Backport r263246

2018-08-16  Martin Liska  <mliska@suse.cz>

Backport from mainline
2018-08-02  Martin Liska  <mliska@suse.cz>

        PR sanitizer/86022
* sanitizer_common/sanitizer_linux_libcdep.cc (ThreadDescriptorSize):
        Cherry-pick compiler-rt revision 338606.

From-SVN: r263581

6 years agoDaily bump.
GCC Administrator [Thu, 16 Aug 2018 00:16:25 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263574

6 years agoDaily bump.
GCC Administrator [Wed, 15 Aug 2018 00:16:30 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r263545