]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
7 years agoDaily bump.
GCC Administrator [Wed, 6 Sep 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251748

7 years agobackport: re PR tree-optimization/81503 (Wrong code at -O2)
Bill Schmidt [Tue, 5 Sep 2017 21:50:38 +0000 (21:50 +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: r251744

7 years agoRemove owner_less<void> test that fails on gcc-6-branch
Jonathan Wakely [Tue, 5 Sep 2017 10:30:54 +0000 (11:30 +0100)] 
Remove owner_less<void> test that fails on gcc-6-branch

* testsuite/20_util/owner_less/noexcept.cc: Remove owner_less<void>
tests.

From-SVN: r251708

7 years agoutils.c (unchecked_convert): When the result type is a non-biased integral type with...
Eric Botcazou [Tue, 5 Sep 2017 09:16:52 +0000 (09:16 +0000)] 
utils.c (unchecked_convert): When the result type is a non-biased integral type with size 0...

* gcc-interface/utils.c (unchecked_convert): When the result type is a
non-biased integral type with size 0, set the result to 0 directly.

From-SVN: r251703

7 years agotrans.c (Call_to_gnu): If this is a function call and there is no target...
Eric Botcazou [Tue, 5 Sep 2017 08:31:50 +0000 (08:31 +0000)] 
trans.c (Call_to_gnu): If this is a function call and there is no target...

* gcc-interface/trans.c (Call_to_gnu): If this is a function call and
there is no target, do not create a temporary for the return value for
an allocator either.

From-SVN: r251697

7 years agotrans.c (pos_to_constructor): Skip conversions to an unconstrained array type.
Eric Botcazou [Tue, 5 Sep 2017 08:21:14 +0000 (08:21 +0000)] 
trans.c (pos_to_constructor): Skip conversions to an unconstrained array type.

* gcc-interface/trans.c (pos_to_constructor): Skip conversions to an
unconstrained array type.

From-SVN: r251694

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

From-SVN: r251687

7 years agompx-os-support.h: New file.
Uros Bizjak [Mon, 4 Sep 2017 18:48:36 +0000 (20:48 +0200)] 
mpx-os-support.h: New file.

* gcc.target/i386/mpx/mpx-os-support.h: New file.
* gcc.target/i386/mpx/mpx-check.h: Include mpx-os-support.h.
(check_osxsave): New function.
(main): Use __get_cpuid_count and return NORUNRES on failure.
Use check_osxsave.
* gcc.target/i386/mpx/va-arg-pack-1-lbv.c (foo1): Use
__builtin_va_arg_pack instead of __va_arg_pack.
* gcc.target/i386/mpx/va-arg-pack-1-nov.c (foo1): Ditto.
* gcc.target/i386/mpx/va-arg-pack-1-ubv.c (foo1): Ditto.
* gcc.target/i386/mpx/va-arg-pack-2-lbv.c (foo1): Ditto.
* gcc.target/i386/mpx/va-arg-pack-2-nov.c (foo1): Ditto.
* gcc.target/i386/mpx/va-arg-pack-2-ubv.c (foo1): Ditto.

From-SVN: r251685

7 years agoPR libstdc++/81751 don't call fflush(NULL)
Jonathan Wakely [Mon, 4 Sep 2017 16:52:30 +0000 (17:52 +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: r251676

7 years agoPR libstdc++/53984 handle exceptions in basic_istream::sentry
Jonathan Wakely [Mon, 4 Sep 2017 16:52:25 +0000 (17:52 +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: r251675

7 years agoPR libstdc++/81017 add noexcept to std::function move operations
Jonathan Wakely [Mon, 4 Sep 2017 16:52:20 +0000 (17:52 +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: r251674

7 years agoAdd noexcept to shared_ptr owner comparisons (LWG 2873)
Jonathan Wakely [Mon, 4 Sep 2017 16:52:15 +0000 (17:52 +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: r251673

7 years agoPR c++/82039 suppress -Wzero-as-null-pointer-constant warning
Jonathan Wakely [Mon, 4 Sep 2017 16:17:11 +0000 (17:17 +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: r251668

7 years agoPR libstdc++/81891 fix double-free in hashtable constructor
Jonathan Wakely [Mon, 4 Sep 2017 16:17:07 +0000 (17:17 +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: r251667

7 years agoPR libstdc++/81599 fix typo in Doxygen comments
Jonathan Wakely [Mon, 4 Sep 2017 16:17:03 +0000 (17:17 +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: r251666

7 years agoPR libstdc++/81338 correctly manage string capacity
Jonathan Wakely [Mon, 4 Sep 2017 16:16:58 +0000 (17:16 +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: r251665

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

From-SVN: r251631

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

From-SVN: r251622

7 years agobackport: re PR fortran/81770 (Bogus warning: Pointer in pointer assignment might...
Janus Weil [Sat, 2 Sep 2017 19:31:44 +0000 (21:31 +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: r251619

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

From-SVN: r251615

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

From-SVN: r251578

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

From-SVN: r251551

7 years agobackport: re PR target/81593 (Optimize PowerPC vector set from vector extract)
Michael Meissner [Wed, 30 Aug 2017 13:38:27 +0000 (13:38 +0000)] 
backport: re PR target/81593 (Optimize PowerPC vector set from vector extract)

[gcc]
2017-08-30  Michael Meissner  <meissner@linux.vnet.ibm.com>

Back port from trunk
2017-08-07  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/81593
* config/rs6000/vsx.md (vsx_concat_<mode>_1): New combiner insns
to recognize inserting into a vector from a double word element
that was extracted from another vector, and eliminate extra
XXPERMDI instructions.
(vsx_concat_<mode>_2): Likewise.
(vsx_concat_<mode>_3): Likewise.
(vsx_set_<mode>, VSX_D): Rewrite vector set in terms of vector
concat to allow optimizing inserts from previous extracts.

[gcc/testsuite]
2017-08-30  Michael Meissner  <meissner@linux.vnet.ibm.com>

Back port from trunk
2017-08-07  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/81593
* gcc.target/powerpc/vec-setup.h: New tests to test various
combinations of setting up vectors of 2 double word elements.
* gcc.target/powerpc/vec-setup-long.c: Likewise.
* gcc.target/powerpc/vec-setup-double.c: Likewise.
* gcc.target/powerpc/vec-setup-be-long.c: Likewise.
* gcc.target/powerpc/vec-setup-be-double.c: Likewise.
* gcc.target/powerpc/vsx-extract-6.c: New tests for optimzing
vector inserts from vector extracts.
* gcc.target/powerpc/vsx-extract-7.c: Likewise.

From-SVN: r251532

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

From-SVN: r251442

7 years ago<add missing ChangeLogs>
Michael Meissner [Tue, 29 Aug 2017 21:06:21 +0000 (21:06 +0000)] 
<add missing ChangeLogs>

[gcc]
2017-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>

Back port from trunk
2017-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/81193
* config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): If GLIBC
provides the hardware capability bits, define the macro
__BUILTIN_CPU_SUPPORTS__.
* config/rs6000/rs6000.c (cpu_expand_builtin): Generate a warning
if GLIBC does not provide the hardware capability bits.  Add a
gcc_unreachable call if the built-in cpu function is neither
__builtin_cpu_is nor __builtin_cpu_supports.
* doc/extend.texi (PowerPC built-in functions): Document that
GLIBC 2.23 or newer is needed by __builtin_cpu_is and
__builtin_cpu_supports.  Document the macros defined by GCC if the
newer GLIBC is available.

[gcc/testsuite]
2017-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>

Back port from trunk
2017-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/81193
* lib/target-supports.exp
(check_ppc_cpu_supports_hw_available): New test to make sure
__builtin_cpu_supports works on power7 and newer.

Back port from trunk
2017-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/81193
* gcc.target/powerpc/cpu-builtin-1.c: Add guard against using
__builtin_cpu_supports with old GLIBC's.

From-SVN: r251437

7 years ago[RS6000] linux startfile/endfile
Alan Modra [Tue, 29 Aug 2017 08:27:02 +0000 (17:57 +0930)] 
[RS6000] linux startfile/endfile

These need to match the gnu-user.h definitions to support
--enable-default-pie.  Otherwise we end up linking the wrong startup
files when defaulting to PIE.

PR target/81170
PR target/81295
* config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Upgrade to
match gnu-user.h startfile.
(ENDFILE_LINUX_SPEC): Similarly.

From-SVN: r251405

7 years agoPR driver/81523: Make -static override -pie
Alan Modra [Tue, 29 Aug 2017 08:25:17 +0000 (17:55 +0930)] 
PR driver/81523: Make -static override -pie

-static and -pie together behave differently depending on whether GCC is
configured with --enable-default-pie.  On x86, "-static -pie" fails to
create executable when --enable-default-pie isn't used, but creates a
static executable when --enable-default-pie is used.  This patch makes
-static completely override -pie to create a static executable, regardless
if --enable-default-pie is used to configure GCC.

PR target/81170
PR target/81295
PR driver/81523
* gcc.c (NO_PIE_SPEC): Delete.
(PIE_SPEC): Define as !no-pie/pie.  Move static|shared|r
exclusion..
(LINK_PIE_SPEC): ..to here.
(LINK_COMMAND_SPEC): Support -no-pie.
* config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Correct
chain of crtbegin*.o selection, update for PIE_SPEC changes and
format.
(GNU_USER_TARGET_ENDFILE_SPEC): Similarly.
* config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Similarly.
(ENDFILE_CRTEND_SPEC): Similarly.

From-SVN: r251404

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

From-SVN: r251393

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

From-SVN: r251371

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

From-SVN: r251365

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

From-SVN: r251360

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

From-SVN: r251344

7 years agoPR c++/80287 C++ crash with __attribute((may_alias))
Yvan Roux [Thu, 24 Aug 2017 13:20:22 +0000 (13:20 +0000)] 
PR c++/80287 C++ crash with __attribute((may_alias))

gcc/
2017-08-24  Yvan Roux  <yvan.roux@linaro.org>

Backport from mainline
2017-04-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>

PR c++/80287
* class.c (fixup_may_alias): Fix all type variants.

gcc/testsuite
2017-08-24  Yvan Roux  <yvan.roux@linaro.org>

Backport from mainline
2017-08-22  Yvan Roux  <yvan.roux@linaro.org>

PR c++/80287
* g++.dg/pr8028.C: New test.

From-SVN: r251331

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

From-SVN: r251323

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

From-SVN: r251298

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:10:58 +0000 (15:10 -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: r251292

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

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: r251258

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

From-SVN: r251251

7 years agore PR target/79883 (avr i18n: untranslated "interrupt" or "signal")
Georg-Johann Lay [Mon, 21 Aug 2017 12:44:23 +0000 (12:44 +0000)] 
re PR target/79883 (avr i18n: untranslated "interrupt" or "signal")

PR target/79883
* config/avr/avr.c (avr_set_current_function): Typo in diagnostic.

From-SVN: r251225

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

From-SVN: r251213

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

From-SVN: r251203

7 years agore PR target/81894 (Typo in x86 built-in function list)
Uros Bizjak [Sat, 19 Aug 2017 08:23:56 +0000 (10:23 +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: r251199

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

From-SVN: r251194

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

From-SVN: r251176

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

2017-08-17  Uros Bizjak  <ubizjak@gmail.com>

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: r251163

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

From-SVN: r251137

7 years agobackport: re PR tree-optimization/81354 (Segmentation fault in SSA Strength Reduction...
Bill Schmidt [Wed, 16 Aug 2017 14:11:26 +0000 (14:11 +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: r251121

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

From-SVN: r251111

7 years agore PR c++/71570 (ICE on invalid variable capture in cxx_incomplete_type_diagnostic...
Paolo Carlini [Mon, 14 Aug 2017 12:23:03 +0000 (12:23 +0000)] 
re PR c++/71570 (ICE on invalid variable capture in cxx_incomplete_type_diagnostic, at cp/typeck2.c:55)

/cp
2017-08-14  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/71570
* lambda.c (add_capture): Early return if we cannot capture by
reference.

/testsuite
2017-08-14  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/71570
* g++.dg/cpp0x/lambda/lambda-ice17.C: New.

From-SVN: r251091

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

From-SVN: r251078

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

From-SVN: r251070

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

From-SVN: r251062

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

From-SVN: r251043

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

From-SVN: r251015

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

From-SVN: r250981

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

From-SVN: r250938

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

From-SVN: r250906

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

From-SVN: r250892

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

From-SVN: r250887

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

From-SVN: r250862

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

From-SVN: r250839

8 years agore PR target/81641 (Assemble failure with named address spaces and -masm=intel)
Uros Bizjak [Wed, 2 Aug 2017 07:37:15 +0000 (09:37 +0200)] 
re PR target/81641 (Assemble failure with named address spaces and -masm=intel)

PR target/81641
* config/i386/i386.c (ix86_print_operand_address_as): For -masm=intel
print "ds:" only for immediates in generic address space.

testsuite/ChangeLog:

PR target/81641
* gcc.target/i386/pr81641.c: New test.

From-SVN: r250817

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

From-SVN: r250808

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

From-SVN: r250754

8 years agore PR sanitizer/81604 (Ubsan type reporting can be bogus in some cases)
Jakub Jelinek [Mon, 31 Jul 2017 08:56:03 +0000 (10:56 +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: r250732

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

From-SVN: r250723

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

From-SVN: r250716

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

From-SVN: r250691

8 years agobackport: ppc-auxv.h (PPC_FEATURE2_DARN): New define.
Peter Bergner [Fri, 28 Jul 2017 22:31:22 +0000 (17:31 -0500)] 
backport: ppc-auxv.h (PPC_FEATURE2_DARN): New define.

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

* config/rs6000/ppc-auxv.h (PPC_FEATURE2_DARN): New define.
(PPC_FEATURE2_SCV): Likewise.
* config/rs6000/rs6000.c (cpu_supports_info): Use them.

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

* gcc.target/powerpc/cpu-builtin-1.c (darn, scv): Add tests.

From-SVN: r250689

8 years agobackport: re PR target/81414 (ICE in fma steering on AArch64/cortex-a57)
Bin Cheng [Fri, 28 Jul 2017 11:25:08 +0000 (11:25 +0000)] 
backport: re PR target/81414 (ICE in fma steering on AArch64/cortex-a57)

Backport from mainline r250496
2017-07-25  Bin Cheng  <bin.cheng@arm.com>

PR target/81414
* config/aarch64/cortex-a57-fma-steering.c (analyze): Skip fmul/fmac
instructions if no du chain is found.

2017-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

PR target/81414
* gcc.target/aarch64/pr81414.C: New.

From-SVN: r250658

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

From-SVN: r250645

8 years agore PR tree-optimization/81555 (Wrong code at -O1)
Jakub Jelinek [Thu, 27 Jul 2017 09:32:33 +0000 (11:32 +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: r250612

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

From-SVN: r250599

8 years agobackport: rs6000.c (rs6000_elf_output_toc_section_asm_op): Align .toc.
Bill Schmidt [Wed, 26 Jul 2017 15:54:16 +0000 (15:54 +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: r250579

8 years agobackport: re PR target/79883 (avr i18n: untranslated "interrupt" or "signal")
Georg-Johann Lay [Wed, 26 Jul 2017 14:58:42 +0000 (14:58 +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>: Decument.

From-SVN: r250577

8 years agobackport: re PR target/81305 ([avr] avrtiny uses LDS for SREG in ISR routines which...
Georg-Johann Lay [Wed, 26 Jul 2017 14:22:31 +0000 (14:22 +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: r250576

8 years agobackport: re PR target/81407 ([avr] Diagnose if a variable in progmem needs construct...
Georg-Johann Lay [Wed, 26 Jul 2017 14:08:56 +0000 (14:08 +0000)] 
backport: re PR target/81407 ([avr] Diagnose if a variable in progmem needs constructing.)

gcc/
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: r250574

8 years agobackport: re PR lto/81487 ([mingw32] ld.exe: error: asprintf failed)
Georg-Johann Lay [Wed, 26 Jul 2017 13:59:54 +0000 (13:59 +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
* hsa-brig.c (brig_init): Use xasprintf instead of asprintf.
* tree-ssa-structalias.c (alias_get_name): Same.

From-SVN: r250573

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

From-SVN: r250552

8 years agobackport: re PR tree-optimization/81162 (UBSAN switch triggers incorrect optimization...
Bill Schmidt [Tue, 25 Jul 2017 19:42:36 +0000 (19:42 +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: r250543

8 years agobackport: re PR rtl-optimization/75964 (insn combiner removes comparison after ABS)
Georg-Johann Lay [Tue, 25 Jul 2017 11:55:44 +0000 (11:55 +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: r250511

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

From-SVN: r250491

8 years agore PR target/80569 (i686: "shrx" instruction generated in 16-bit mode)
Uros Bizjak [Mon, 24 Jul 2017 18:59:21 +0000 (20:59 +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: r250479

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

From-SVN: r250468

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

From-SVN: r250455

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

From-SVN: r250448

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

From-SVN: r250410

8 years agore PR go/81393 (Bootstrap failure on s390x-linux while building libgo against recent...
Ian Lance Taylor [Thu, 20 Jul 2017 22:03:48 +0000 (22:03 +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: r250403

8 years agobackport: float128-ifunc.c: Don't include auxv.h.
Peter Bergner [Thu, 20 Jul 2017 14:34:01 +0000 (09:34 -0500)] 
backport: float128-ifunc.c: Don't include auxv.h.

libgcc/
Backport from mainline
2017-07-07  Peter Bergner  <bergner@vnet.ibm.com>

* config/rs6000/float128-ifunc.c: Don't include auxv.h.
(have_ieee_hw_p): Delete function.
(SW_OR_HW) Use __builtin_cpu_supports().

From-SVN: r250392

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

From-SVN: r250374

8 years agobackport: re PR target/81193 (PowerPC GCC __builtin_cpu_is and __builtin_cpu_supports...
Michael Meissner [Wed, 19 Jul 2017 22:05:20 +0000 (22:05 +0000)] 
backport: re PR target/81193 (PowerPC GCC __builtin_cpu_is and __builtin_cpu_supports should warn about old libraries)

[gcc]
2017-07-19  Michael Meissner  <meissner@linux.vnet.ibm.com>

Back port from trunk
2017-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/81193
* config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): If GLIBC
provides the hardware capability bits, define the macro
__BUILTIN_CPU_SUPPORTS__.
* config/rs6000/rs6000.c (cpu_expand_builtin): Generate a warning
if GLIBC does not provide the hardware capability bits.  Add a
gcc_unreachable call if the built-in cpu function is neither
__builtin_cpu_is nor __builtin_cpu_supports.
* doc/extend.texi (PowerPC built-in functions): Document that
GLIBC 2.23 or newer is needed by __builtin_cpu_is and
__builtin_cpu_supports.  Document the macros defined by GCC if the
newer GLIBC is available.

[gcc/testsuite]
2017-07-19  Michael Meissner  <meissner@linux.vnet.ibm.com>

Back port from trunk
2017-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/81193
* gcc.target/powerpc/cpu-builtin-1.c: Change test to use #ifdef
__BUILTIN_CPU_SUPPORTS to see if the GLIBC is new enough that
__builtin_cpu_is and __builtin_cpu_supports are supported.

From-SVN: r250371

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

From-SVN: r250330

8 years agore PR target/81471 (internal compiler error: in curr_insn_transform, at lra-constrain...
Uros Bizjak [Tue, 18 Jul 2017 20:16:47 +0000 (22:16 +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: r250319

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

From-SVN: r250292

8 years agobackport: re PR middle-end/80929 (Division with constant no more optimized to mult...
Georg-Johann Lay [Mon, 17 Jul 2017 09:09:42 +0000 (09:09 +0000)] 
backport: re PR middle-end/80929 (Division with constant no more optimized to mult highpart)

Backport from 2017-07-17 trunk r250258.
PR 80929
* config/avr/avr.c (avr_mul_highpart_cost): New static function.
(avr_rtx_costs_1) [TRUNCATE]: Use it to compute mul_highpart cost.
[LSHIFTRT, outer_code = TRUNCATE]: Same.

From-SVN: r250260

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

From-SVN: r250249

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

From-SVN: r250228

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

From-SVN: r250219

8 years agoBackport PRs 66669, 68972, 80101, 80103
Kelvin Nilsen [Fri, 14 Jul 2017 16:58:00 +0000 (16:58 +0000)] 
Backport PRs 66669, 68972, 80101, 80103

gcc/ChangeLog:

2017-07-14  Kelvin Nilsen  <kelvin@gcc.gnu.org>

Backports from trunk

2017-03-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
* config/rs6000/rs6000.c (rs6000_option_override_internal): Change
handling of certain combinations of target options, including the
combinations -mpower8-vector vs. -mno-vsx, -mpower8-vector vs.
-mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.

2017-03-27  Kelvin Nilsen  <kelvin@gcc.gnu.org>
PR target/80103
* config/rs6000/rs6000.c (rs6000_option_override_internal): Add
special handling for target option conflicts between dform options
(-mpower9-dform, -mpower9-dform-vector, -mpower9-dform-scalar) and
-mno-direct-move.

2017-05-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
PR target/80101
* config/rs6000/power6.md: Replace store_data_bypass_p calls with
rs6000_store_data_bypass_p in seven define_bypass directives and
in several comments.
* config/rs6000/rs6000-protos.h: Add prototype for
rs6000_store_data_bypass_p function.
* config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
function implements slightly different (rs6000-specific) semantics
than store_data_bypass_p, returning false rather than aborting
with assertion error when arguments do not satisfy the
requirements of store data bypass.
(rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
rs6000_store_data_bypass_p.

gcc/testsuite/ChangeLog:

2017-07-14  Kelvin Nilsen  <kelvin@gcc.gnu.org>

Backports from trunk:

2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
PR target/66669
* gcc.dg/loop-8.c: Modify dg-skip-if directive to exclude this
test on powerpc targets.

2017-02-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
PR target/68972
* g++.dg/cpp1y/vla-initlist1.C: Add dg-skip-if directive to
disable this test on power architecture.

2017-03-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
* gcc.target/powerpc/p9-options-1.c: New test.

2017-03-27  Kelvin Nilsen  <kelvin@gcc.gnu.org>
PR target/80103
* gcc.target/powerpc/pr80103-1.c: New test.

2017-05-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
PR target/80101
* gcc.target/powerpc/pr80101-1.c: New test.

2017-07-05  Kelvin Nilsen  <kelvin@gcc.gnu.org>
PR target/80103
* gcc.target/powerpc/pr80103-1.c (b): Correct spelling of
__attribute__.

From-SVN: r250210

8 years agobackport: re PR target/81375 (unrecognizable insn)
Uros Bizjak [Fri, 14 Jul 2017 05:30:58 +0000 (07:30 +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: r250196