]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
7 years agoxtensa: fix PR target/82181
Max Filippov [Mon, 11 Sep 2017 21:53:38 +0000 (21:53 +0000)] 
xtensa: fix PR target/82181

2017-09-11  Max Filippov  <jcmvbkbc@gmail.com>
gcc/
Backport from mainline
* config/xtensa/xtensa.c (xtensa_mem_offset): Check that both
words of DImode object are reachable by xtensa_uimm8x4 access.

From-SVN: r251990

7 years agoPR c++/81852 define feature-test macro for -fthreadsafe-statics
Jonathan Wakely [Mon, 11 Sep 2017 10:44:11 +0000 (11:44 +0100)] 
PR c++/81852 define feature-test macro for -fthreadsafe-statics

gcc/c-family:

PR c++/81852
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.

gcc/testsuite:

PR c++/81852
* g++.dg/cpp1y/feat-cxx11.C: Check __cpp_threadsafe_static_init.
* g++.dg/cpp1y/feat-cxx14.C: Likewise.
* g++.dg/cpp1y/feat-cxx98.C: Likewise.
* g++.dg/cpp1y/feat-neg.C: Likewise.

From-SVN: r251975

7 years agoDaily bump.
GCC Administrator [Mon, 11 Sep 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251953

7 years agoDaily bump.
GCC Administrator [Sun, 10 Sep 2017 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251942

7 years agoDaily bump.
GCC Administrator [Sat, 9 Sep 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251914

7 years agoDaily bump.
GCC Administrator [Fri, 8 Sep 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251858

7 years agox86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Replace 'struct ucontext' with ucontext_t.
Matthias Klose [Thu, 7 Sep 2017 07:22:07 +0000 (07:22 +0000)] 
x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Replace 'struct ucontext' with ucontext_t.

2017-09-07  Matthias Klose  <doko@ubuntu.com>

        * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Replace
        'struct ucontext' with ucontext_t.
        * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Likewise.
        * include/s390-signal.h (HANDLE_DIVIDE_OVERFLOW): Likewise.

From-SVN: r251832

7 years agoasan_linux.cc: Include <signal.h>
Matthias Klose [Thu, 7 Sep 2017 07:18:57 +0000 (07:18 +0000)] 
asan_linux.cc: Include <signal.h>

2017-09-07  Matthias Klose  <doko@ubuntu.com>

        * asan/asan_linux.cc: Include <signal.h>

From-SVN: r251830

7 years agobackport: re PR sanitizer/81066 (sanitizer_stoptheworld_linux_libcdep.cc:276:22:...
Matthias Klose [Thu, 7 Sep 2017 07:17:17 +0000 (07:17 +0000)] 
backport: re PR sanitizer/81066 (sanitizer_stoptheworld_linux_libcdep.cc:276:22: error: aggregate ‘sigaltstack handler_stack’ has incomplete type and cannot be defined)

2017-09-07  Matthias Klose  <doko@ubuntu.com>

        Backported from mainline
        2017-07-14  Jakub Jelinek  <jakub@redhat.com>

        PR sanitizer/81066
        * sanitizer_common/sanitizer_linux.h: Cherry-pick upstream r307969.
        * sanitizer_common/sanitizer_linux.cc: Likewise.
        * sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc: Likewise.
        * tsan/tsan_platform_linux.cc: Likewise.

From-SVN: r251829

7 years agoDaily bump.
GCC Administrator [Thu, 7 Sep 2017 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251822

7 years agobackport: re PR tree-optimization/81987 (ICE in verify_ssa with -O3 -march=skylake...
Bill Schmidt [Wed, 6 Sep 2017 18:48:50 +0000 (18:48 +0000)] 
backport: re PR tree-optimization/81987 (ICE in verify_ssa with -O3 -march=skylake-avx512)

[gcc]

2017-09-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline:
2017-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/81987
* gimple-ssa-strength-reduction.c (insert_initializers): Don't
insert an initializer in a location not dominated by the stride
definition.

[gcc/testsuite]

2017-09-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline:
2017-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/81987
* g++.dg/torture/pr81987.C: New file.

From-SVN: r251817

7 years agoDaily bump.
GCC Administrator [Wed, 6 Sep 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251747

7 years agobackport: re PR tree-optimization/81503 (Wrong code at -O2)
Bill Schmidt [Tue, 5 Sep 2017 21:52:01 +0000 (21:52 +0000)] 
backport: re PR tree-optimization/81503 (Wrong code at -O2)

[gcc]

2017-09-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2017-08-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
    Jakub Jelinek  <jakub@redhat.com>
    Richard Biener  <rguenther@suse.de>

PR tree-optimization/81503
* gimple-ssa-strength-reduction.c (replace_mult_candidate): Ensure
folded constant fits in the target type; reorder tests for clarity.

[gcc/testsuite]

2017-09-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2017-08-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
    Jakub Jelinek  <jakub@redhat.com>
    Richard Biener  <rguenther@suse.de>

PR tree-optimization/81503
* gcc.c-torture/execute/pr81503.c: New file.

From-SVN: r251745

7 years agoDaily bump.
GCC Administrator [Tue, 5 Sep 2017 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251686

7 years agoPR libstdc++/81751 don't call fflush(NULL)
Jonathan Wakely [Mon, 4 Sep 2017 17:09:05 +0000 (18:09 +0100)] 
PR libstdc++/81751 don't call fflush(NULL)

Backport from mainline
2017-08-09  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/79820
PR libstdc++/81751
* config/io/basic_file_stdio.cc (sys_open(FILE*, ios_base::openmode)):
Call fflush on the stream instead of calling sync() while _M_cfile is
null. Restore original value of errno.
* testsuite/ext/stdio_filebuf/char/79820.cc: New.
* testsuite/ext/stdio_filebuf/char/81751.cc: New.

From-SVN: r251680

7 years agoPR libstdc++/53984 handle exceptions in basic_istream::sentry
Jonathan Wakely [Mon, 4 Sep 2017 17:09:01 +0000 (18:09 +0100)] 
PR libstdc++/53984 handle exceptions in basic_istream::sentry

Backport from mainline
2017-07-25  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/53984
* include/bits/basic_ios.h (basic_ios::_M_setstate): Adjust comment.
* include/bits/istream.tcc (basic_istream::sentry): Handle exceptions
during construction.
* include/std/istream: Adjust comments for formatted input functions
and unformatted input functions.
* testsuite/27_io/basic_fstream/53984.cc: New.
* testsuite/27_io/basic_istream/sentry/char/53984.cc: New.

From-SVN: r251679

7 years agoPR libstdc++/81017 add noexcept to std::function move operations
Jonathan Wakely [Mon, 4 Sep 2017 17:08:56 +0000 (18:08 +0100)] 
PR libstdc++/81017 add noexcept to std::function move operations

Backport from mainline
2017-06-08  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/81017
* include/std/functional (function::function(function&&))
(function::operator=(function&&)): Add noexcept.
* testsuite/20_util/function/assign/move.cc: Check for noexcept.
* testsuite/20_util/function/cons/move.cc: Likewise.

From-SVN: r251678

7 years agoAdd noexcept to shared_ptr owner comparisons (LWG 2873)
Jonathan Wakely [Mon, 4 Sep 2017 17:08:51 +0000 (18:08 +0100)] 
Add noexcept to shared_ptr owner comparisons (LWG 2873)

Backport from mainline
2017-06-05  Jonathan Wakely  <jwakely@redhat.com>

* include/bits/shared_ptr_base.h (__shared_ptr::owner_before)
(__weak_ptr::owner_before, _Sp_owner_less::operator()): Add noexcept
specifiers as per LWG 2873 and LWG 2942.
* testsuite/20_util/owner_less/noexcept.cc: New.
* testsuite/20_util/shared_ptr/observers/owner_before.cc: Test
noexcept guarantees.
* testsuite/20_util/weak_ptr/observers/owner_before.cc: Likewise.

From-SVN: r251677

7 years agoPR c++/82039 suppress -Wzero-as-null-pointer-constant warning
Jonathan Wakely [Mon, 4 Sep 2017 16:41:38 +0000 (17:41 +0100)] 
PR c++/82039 suppress -Wzero-as-null-pointer-constant warning

Backport from mainline
2017-08-31  Jonathan Wakely  <jwakely@redhat.com>

PR c++/82039
* include/ext/new_allocator.h (__gnu_cxx::new_allocator::allocate):
Adjust null pointer constant to avoid warning.

From-SVN: r251672

7 years agoPR libstdc++/81891 fix double-free in hashtable constructor
Jonathan Wakely [Mon, 4 Sep 2017 16:41:34 +0000 (17:41 +0100)] 
PR libstdc++/81891 fix double-free in hashtable constructor

Backport from mainline
2017-08-18  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/81891
* include/bits/hashtable.h (_Hashtable(_InputIterator, _InputIterator,
size_type, const _H1&, const _H2&, const _Hash&, const _Equal&,
const _ExtractKey&, const allocator_type&)): Let destructor do clean
up if an exception is thrown.
* testsuite/23_containers/unordered_map/cons/81891.cc: New.

From-SVN: r251671

7 years agoPR libstdc++/81599 fix typo in Doxygen comments
Jonathan Wakely [Mon, 4 Sep 2017 16:41:29 +0000 (17:41 +0100)] 
PR libstdc++/81599 fix typo in Doxygen comments

Backport from mainline
2017-07-31  Marek Polacek  <polacek@redhat.com>

PR libstdc++/81599
* include/bits/stl_stack.h: Fix typo.

From-SVN: r251670

7 years agoPR libstdc++/81338 correctly manage string capacity
Jonathan Wakely [Mon, 4 Sep 2017 16:41:25 +0000 (17:41 +0100)] 
PR libstdc++/81338 correctly manage string capacity

Backport from mainline
2017-07-10  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/81338
* include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
Declare basic_stringbuf to be a friend.
* include/bits/sstream.tcc (basic_stringbuf::overflow)
[_GLIBCXX_USE_CXX11_ABI]: Use unused capacity before reallocating.
* include/std/sstream (basic_stringbuf::__xfer_bufptrs): Update string
length to buffer length.
* testsuite/27_io/basic_stringstream/assign/81338.cc: New.

From-SVN: r251669

7 years agoDaily bump.
GCC Administrator [Mon, 4 Sep 2017 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251630

7 years agoDaily bump.
GCC Administrator [Sun, 3 Sep 2017 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251621

7 years agobackport: re PR fortran/81770 (Bogus warning: Pointer in pointer assignment might...
Janus Weil [Sat, 2 Sep 2017 20:13:49 +0000 (22:13 +0200)] 
backport: re PR fortran/81770 (Bogus warning: Pointer in pointer assignment might outlive the pointer target)

2017-09-02  Janus Weil  <janus@gcc.gnu.org>

Backport from trunk
PR fortran/81770
* expr.c (gfc_check_pointer_assign): Improve the check whether pointer
may outlive pointer target.

2017-09-02  Janus Weil  <janus@gcc.gnu.org>

Backport from trunk
PR fortran/81770
* gfortran.dg/warn_target_lifetime_3.f90: Fix a typo.
* gfortran.dg/warn_target_lifetime_4.f90: New testcase.

From-SVN: r251620

7 years agoDaily bump.
GCC Administrator [Sat, 2 Sep 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251614

7 years agoMake std::scoped_allocator_adaptor's OUTERMOST recursive
Jonathan Wakely [Fri, 1 Sep 2017 12:15:44 +0000 (13:15 +0100)] 
Make std::scoped_allocator_adaptor's OUTERMOST recursive

Backport from mainline
2016-10-06  Jonathan Wakely  <jwakely@redhat.com>

* doc/xml/manual/status_cxx2011.xml: Update status.
* doc/html/manual/status.html: Regenerate.
* include/std/scoped_allocator (__outer_allocator_t, __outermost_type):
New helpers for recursive OUTERMOST.
(__outermost): Use __outermost_type::_S_outermost.
(__do_outermost, scoped_allocator_adaptor::__outermost_type): Remove.
(scoped_allocator_adaptor::__outermost_alloc_traits): Use new
__outermost_type helper.
(scoped_allocator_adaptor::_Constructible): New alias template.
(scoped_allocator_adaptor::scoped_allocator_adaptor<_Outer2>):
Constrain template constructors.
* testsuite/20_util/scoped_allocator/3.cc: New test.
* testsuite/20_util/scoped_allocator/outermost.cc: New test.

From-SVN: r251590

7 years agoDaily bump.
GCC Administrator [Fri, 1 Sep 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251577

7 years agoDaily bump.
GCC Administrator [Thu, 31 Aug 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251550

7 years agoDaily bump.
GCC Administrator [Wed, 30 Aug 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251441

7 years agoDaily bump.
GCC Administrator [Tue, 29 Aug 2017 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251392

7 years agoDaily bump.
GCC Administrator [Mon, 28 Aug 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251370

7 years agoDaily bump.
GCC Administrator [Sun, 27 Aug 2017 00:16:28 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251364

7 years agoDaily bump.
GCC Administrator [Sat, 26 Aug 2017 00:16:28 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251359

7 years agoDaily bump.
GCC Administrator [Fri, 25 Aug 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251343

7 years agoDaily bump.
GCC Administrator [Thu, 24 Aug 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251322

7 years agoDaily bump.
GCC Administrator [Wed, 23 Aug 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251297

7 years agobackport: re PR target/80210 (ICE in in extract_insn, at recog.c:2311 on ppc64 for...
Peter Bergner [Tue, 22 Aug 2017 20:08:51 +0000 (15:08 -0500)] 
backport: re PR target/80210 (ICE in in extract_insn, at recog.c:2311 on ppc64 for with __builtin_pow)

gcc/
Backport from mainline
2017-08-17  Peter Bergner  <bergner@vnet.ibm.com>

PR target/80210
* config/rs6000/rs6000.c (rs6000_activate_target_options): New function.
(rs6000_set_current_function): Rewrite function to use it.

gcc/testsuite/
Backport from mainline
2017-08-17  Peter Bergner  <bergner@vnet.ibm.com>

PR target/80210
* gcc.target/powerpc/pr80210.c: New test.

From-SVN: r251291

7 years agobackport: re PR lto/81487 ([mingw32] ld.exe: error: asprintf failed)
Georg-Johann Lay [Tue, 22 Aug 2017 10:32:36 +0000 (10:32 +0000)] 
backport: re PR lto/81487 ([mingw32] ld.exe: error: asprintf failed)

lto-plugin/
Backport from 2017-07-26 gcc-7-branch r250562.
PR lto/81487
* lto-plugin.c (claim_file_handler): Use xasprintf instead of
asprintf.
[hi!=0]: Swap hi and lo arguments supplied to xasprintf.
gcc/
Backport from 2017-07-26 gcc-7-branch r250562.
PR 81487
* tree-ssa-structalias.c (alias_get_name): Use xasprintf instead
of asprintf.

From-SVN: r251272

7 years agobackport: re PR rtl-optimization/75964 (insn combiner removes comparison after ABS)
Georg-Johann Lay [Tue, 22 Aug 2017 10:07:51 +0000 (10:07 +0000)] 
backport: re PR rtl-optimization/75964 (insn combiner removes comparison after ABS)

gcc/
Backport from 2017-05-06 trunk r247719.
PR rtl-optimization/75964
* simplify-rtx.c (simplify_const_relational_operation): Remove
invalid handling of comparisons of integer ABS.
gcc/testsuite/
Backport from 2017-05-06 trunk r247719.
PR rtl-optimization/75964
* gcc.dg/torture/pr75964.c: New test.

From-SVN: r251271

7 years agobackport: re PR target/81305 ([avr] avrtiny uses LDS for SREG in ISR routines which...
Georg-Johann Lay [Tue, 22 Aug 2017 10:01:38 +0000 (10:01 +0000)] 
backport: re PR target/81305 ([avr] avrtiny uses LDS for SREG in ISR routines which is out of range of LDS.)

gcc/
Backport from 2017-07-05 trunk r249995.
PR target/81305
* config/avr/avr.c (avr_out_movhi_mr_r_xmega) [CONSTANT_ADDRESS_P]:
Don't depend on "optimize > 0".
(out_movhi_r_mr, out_movqi_mr_r): Same.
(out_movhi_mr_r, out_movqi_r_mr): Same.
(avr_address_cost) [CONSTANT_ADDRESS_P]: Don't depend cost for
io_address_operand on "optimize > 0".
gcc/testsuite/
Backport from 2017-07-05 trunk r249995, r249996.
PR target/81305
* gcc.target/avr/isr-test.h: New file.
* gcc.target/avr/torture/isr-01-simple.c: New test.
* gcc.target/avr/torture/isr-02-call.c: New test.
* gcc.target/avr/torture/isr-03-fixed.c: New test.

From-SVN: r251270

7 years agobackport: re PR target/79883 (avr i18n: untranslated "interrupt" or "signal")
Georg-Johann Lay [Tue, 22 Aug 2017 09:48:48 +0000 (09:48 +0000)] 
backport: re PR target/79883 (avr i18n: untranslated "interrupt" or "signal")

gcc/
Backport from 2016-06-15 trunk r237486.
Backport from 2017-07-12 trunk r250156.
PR target/79883
PR target/67353
* config/avr/avr.c (avr_set_current_function): Warn misspelled ISR
only if -Wmisspelled-isr is on.  In diagnostic messages: Quote
keywords and (parts of) identifiers.
[WITH_AVRLIBC]: Warn functions named "ISR", "SIGNAL" or "INTERUPT".
* doc/invoke.texi (AVR Options) <-Wmisspelled-isr>: Document.

From-SVN: r251269

7 years agobackport: re PR target/80462 ([avr] Incorrect "warning: uninitialized variable 'xxx...
Georg-Johann Lay [Tue, 22 Aug 2017 09:29:30 +0000 (09:29 +0000)] 
backport: re PR target/80462 ([avr] Incorrect "warning: uninitialized variable 'xxx' put into program memory area" for identical strings)

gcc/
Backport from 2017-04-19 trunk r246997.
PR target/80462
* config/avr/avr.c (tree.h): Include it.
(hash-table.h): Include it.
(hash-set.h): Include it.
(symtab.h): Include it.
(inchash.h): Include it.
(function.h): Include it.
(hash-map.h): Include it.
(plugin-api.h): Include it.
(ipa-ref.h): Include it.
(cgraph.h): Include it.
(avr_encode_section_info): Don't warn for uninitialized progmem
variable if it's just an alias.

Backport from 2017-07-12 trunk r250151.
PR target/81407
* config/avr/avr.c (avr_encode_section_info)
[progmem && !TREE_READONLY]: Error if progmem object needs
constructing.

From-SVN: r251267

7 years agobackport: re PR target/81910 ([avr] ICE with "address" attribute on type)
Georg-Johann Lay [Tue, 22 Aug 2017 08:40:15 +0000 (08:40 +0000)] 
backport: re PR target/81910 ([avr] ICE with "address" attribute on type)

gcc/
Backport from 2017-08-22 trunk r251256.
PR target/81910
* config/avr/avr.c (avr_handle_addr_attribute): Early return if
not VAR_P. Filter attribute warnings with OPT_Wattributes.
(avr_attribute_table) <io, io_low, address>: Initialize
.decl_required with true.

From-SVN: r251261

7 years agoDaily bump.
GCC Administrator [Tue, 22 Aug 2017 00:16:15 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251250

7 years agoDaily bump.
GCC Administrator [Mon, 21 Aug 2017 00:16:32 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251212

7 years agoDaily bump.
GCC Administrator [Sun, 20 Aug 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251202

7 years agore PR target/81894 (Typo in x86 built-in function list)
Uros Bizjak [Sat, 19 Aug 2017 08:25:14 +0000 (10:25 +0200)] 
re PR target/81894 (Typo in x86 built-in function list)

PR target/81894
* doc/extend.texi (x86 Built-in Functions): Correct the name of
__builtin_ia32_lzcnt_u16.

From-SVN: r251200

7 years agoDaily bump.
GCC Administrator [Sat, 19 Aug 2017 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251193

7 years agoDaily bump.
GCC Administrator [Fri, 18 Aug 2017 00:16:16 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251175

7 years agobackport: re PR target/81861 (ASan pr64820.c testcase segfaults with LTO and -fstack...
Uros Bizjak [Thu, 17 Aug 2017 19:39:20 +0000 (21:39 +0200)] 
backport: re PR target/81861 (ASan pr64820.c testcase segfaults with LTO and -fstack-protector-strong)

Backport from mainline
2017-08-17  Maxim Ostapenko  <m.ostapenko@samsung.com>

PR target/81861
* config/i386/i386.c (ix86_option_override_internal): Save target
specific options after ix86_stack_protector_guard_reg was changed.

From-SVN: r251164

7 years agoDaily bump.
GCC Administrator [Thu, 17 Aug 2017 00:16:20 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251136

7 years agobackport: re PR tree-optimization/81354 (Segmentation fault in SSA Strength Reduction...
Bill Schmidt [Wed, 16 Aug 2017 14:13:27 +0000 (14:13 +0000)] 
backport: re PR tree-optimization/81354 (Segmentation fault in SSA Strength Reduction using -O3)

[gcc]

2017-08-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2017-08-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/81354
* gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
Insert on edges rather than explicitly creating landing pads.
(analyze_candidates_and_replace): Commit edge inserts.

[gcc/testsuite]

2017-08-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2017-08-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/81354
* g++.dg/torture/pr81354.C: New file.

From-SVN: r251122

7 years agoDaily bump.
GCC Administrator [Wed, 16 Aug 2017 00:17:39 +0000 (00:17 +0000)] 
Daily bump.

From-SVN: r251110

7 years agoDaily bump.
GCC Administrator [Mon, 14 Aug 2017 00:16:40 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251077

7 years agoDaily bump.
GCC Administrator [Sun, 13 Aug 2017 00:16:32 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251069

7 years agoDaily bump.
GCC Administrator [Sat, 12 Aug 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251061

7 years agoDaily bump.
GCC Administrator [Fri, 11 Aug 2017 00:16:43 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251042

7 years agoDaily bump.
GCC Administrator [Thu, 10 Aug 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251014

7 years agoDaily bump.
GCC Administrator [Wed, 9 Aug 2017 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250980

7 years agoDaily bump.
GCC Administrator [Tue, 8 Aug 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250937

7 years agoDaily bump.
GCC Administrator [Mon, 7 Aug 2017 00:16:16 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250905

8 years agoDaily bump.
GCC Administrator [Sun, 6 Aug 2017 00:16:22 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250891

8 years agoDaily bump.
GCC Administrator [Sat, 5 Aug 2017 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250886

8 years agoDaily bump.
GCC Administrator [Fri, 4 Aug 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250861

8 years agoDaily bump.
GCC Administrator [Thu, 3 Aug 2017 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250838

8 years agoDaily bump.
GCC Administrator [Wed, 2 Aug 2017 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250807

8 years agoDaily bump.
GCC Administrator [Tue, 1 Aug 2017 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250753

8 years agore PR sanitizer/81604 (Ubsan type reporting can be bogus in some cases)
Jakub Jelinek [Mon, 31 Jul 2017 09:29:58 +0000 (11:29 +0200)] 
re PR sanitizer/81604 (Ubsan type reporting can be bogus in some cases)

PR sanitizer/81604
* ubsan.c (ubsan_type_descriptor): For UBSAN_PRINT_ARRAY don't
change type to the element type, instead add eltype variable and
use it where we are interested in the element type.

* c-c++-common/ubsan/pr81604.c: New test.

From-SVN: r250733

8 years agoDaily bump.
GCC Administrator [Mon, 31 Jul 2017 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250722

8 years agoDaily bump.
GCC Administrator [Sun, 30 Jul 2017 00:16:15 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250715

8 years agoDaily bump.
GCC Administrator [Sat, 29 Jul 2017 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250690

8 years agoDaily bump.
GCC Administrator [Fri, 28 Jul 2017 00:16:18 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250644

8 years agore PR tree-optimization/81555 (Wrong code at -O1)
Jakub Jelinek [Thu, 27 Jul 2017 09:43:01 +0000 (11:43 +0200)] 
re PR tree-optimization/81555 (Wrong code at -O1)

PR tree-optimization/81555
PR tree-optimization/81556
* tree-ssa-reassoc.c (rewrite_expr_tree): Add NEXT_CHANGED argument,
if true, force CHANGED for the recursive invocation.
(reassociate_bb): Remember original length of ops array, pass
len != orig_len as NEXT_CHANGED in rewrite_expr_tree call.

* gcc.c-torture/execute/pr81555.c: New test.
* gcc.c-torture/execute/pr81556.c: New test.

From-SVN: r250616

8 years agoDaily bump.
GCC Administrator [Thu, 27 Jul 2017 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250598

8 years agobackport: rs6000.c (rs6000_elf_output_toc_section_asm_op): Align .toc.
Bill Schmidt [Wed, 26 Jul 2017 15:55:41 +0000 (15:55 +0000)] 
backport: rs6000.c (rs6000_elf_output_toc_section_asm_op): Align .toc.

2017-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline r235874
2016-05-04  Alan Modra  <amodra@gmail.com>

* config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
Align .toc.

From-SVN: r250580

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

From-SVN: r250551

8 years agobackport: re PR tree-optimization/81162 (UBSAN switch triggers incorrect optimization...
Bill Schmidt [Tue, 25 Jul 2017 19:44:10 +0000 (19:44 +0000)] 
backport: re PR tree-optimization/81162 (UBSAN switch triggers incorrect optimization in SLSR)

[gcc]

2016-07-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

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

PR tree-optimization/81162
* gimple-ssa-strength-reduction.c (replace_mult_candidate): Don't
replace a negate with an add.

[gcc/testsuite]

2016-07-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

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

PR tree-optimization/81162
* gcc.dg/ubsan/pr81162.c: New file.

From-SVN: r250544

8 years agoDaily bump.
GCC Administrator [Tue, 25 Jul 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250490

8 years agore PR target/80569 (i686: "shrx" instruction generated in 16-bit mode)
Uros Bizjak [Mon, 24 Jul 2017 20:29:02 +0000 (22:29 +0200)] 
re PR target/80569 (i686: "shrx" instruction generated in 16-bit mode)

PR target/80569
* config/i386/i386.c (ix86_option_override_internal): Disable
BMI, BMI2 and TBM instructions for -m16.

testsuite/ChangeLog:

PR target/80569
* gcc.target/i386/pr80569.c: New test.

From-SVN: r250486

8 years agoDaily bump.
GCC Administrator [Mon, 24 Jul 2017 00:16:19 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250467

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

From-SVN: r250454

8 years agoDaily bump.
GCC Administrator [Sat, 22 Jul 2017 00:16:16 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250447

8 years agoDaily bump.
GCC Administrator [Fri, 21 Jul 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250409

8 years agore PR go/81393 (Bootstrap failure on s390x-linux while building libgo against recent...
Ian Lance Taylor [Thu, 20 Jul 2017 22:04:02 +0000 (22:04 +0000)] 
re PR go/81393 (Bootstrap failure on s390x-linux while building libgo against recent glibc)

PR go/81393
syscall: don't use GETREGS/SETREGS on s390

They were removed in recent glibc.

This is a backport of https://golang.org/cl/48231 to earlier branches.
Define required type and constants in syscall package directly, don't
try to pull them from the system header files.

From-SVN: r250404

8 years agoDaily bump.
GCC Administrator [Thu, 20 Jul 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250373

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

From-SVN: r250329

8 years agore PR target/81471 (internal compiler error: in curr_insn_transform, at lra-constrain...
Uros Bizjak [Tue, 18 Jul 2017 21:44:03 +0000 (23:44 +0200)] 
re PR target/81471 (internal compiler error: in curr_insn_transform, at lra-constraints.c:3495)

PR target/81471
* config/i386/i386.md (rorx_immediate_operand): New mode attribute.
(*bmi2_rorx<mode>3_1): Use rorx_immediate_operand as
operand 2 predicate.
(*bmi2_rorxsi3_1_zext): Use const_0_to_31_operand as
operand 2 predicate.
(ror,rol -> rorx splitters): Use const_int_operand as
operand 2 predicate.

testsuite/ChangeLog:

PR target/81471
* gcc.target/i386/pr81471.c: New test.

From-SVN: r250322

8 years agoDaily bump.
GCC Administrator [Tue, 18 Jul 2017 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250291

8 years agoDaily bump.
GCC Administrator [Mon, 17 Jul 2017 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250248

8 years agoDaily bump.
GCC Administrator [Sun, 16 Jul 2017 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250227

8 years agoDaily bump.
GCC Administrator [Sat, 15 Jul 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250218

8 years agobackport: re PR target/81375 (unrecognizable insn)
Uros Bizjak [Fri, 14 Jul 2017 17:19:30 +0000 (19:19 +0200)] 
backport: re PR target/81375 (unrecognizable insn)

Backport from mainline
2017-07-10  Uros Bizjak  <ubizjak@gmail.com>

PR target/81375
* config/i386/i386.md (divsf3): Add TARGET_SSE to TARGET_SSE_MATH.
(rcpps): Ditto.
(*rsqrtsf2_sse): Ditto.
(rsqrtsf2): Ditto.
(div<mode>3): Macroize insn from divdf3 and divsf3
using MODEF mode iterator.

Backport from mainline
2017-07-04  Uros Bizjak  <ubizjak@gmail.com>

PR target/81300
* config/i386/i386.md (setcc + movzbl/and to xor + setcc peepholes):
Require dead FLAGS_REG at the beginning of a peephole.

testsuite/ChangeLog:

Backport from mainline
2017-07-10  Uros Bizjak  <ubizjak@gmail.com>

PR target/81375
* gcc.target/i386/pr81375.c: New test.

Backport from mainline
2017-07-04  Uros Bizjak  <ubizjak@gmail.com>

PR target/81300
* gcc.target/i386/pr81300.c: New test.

From-SVN: r250211

8 years agoDaily bump.
GCC Administrator [Fri, 14 Jul 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250192

8 years agoDaily bump.
GCC Administrator [Thu, 13 Jul 2017 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250170

8 years agoDaily bump.
GCC Administrator [Wed, 12 Jul 2017 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250144

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

From-SVN: r250108

8 years agoDaily bump.
GCC Administrator [Mon, 10 Jul 2017 00:16:22 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250087

8 years agoDaily bump.
GCC Administrator [Sun, 9 Jul 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r250076

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

From-SVN: r250069