]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
7 years agoDaily bump.
GCC Administrator [Fri, 20 Oct 2017 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253917

7 years agore PR fortran/79402 (ICE with submodules: module procedure interface defined in paren...
Paul Thomas [Thu, 19 Oct 2017 17:54:58 +0000 (17:54 +0000)] 
re PR fortran/79402 (ICE with submodules: module procedure interface defined in parent module)

2017-10-19  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/79402
* resolve.c (fixup_unique_dummy): New function.
(gfc_resolve_expr): Call it for dummy variables with a unique
symtree name.

2017-10-19  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/79402
* gfortran.dg/submodule_23.f90: New test.

From-SVN: r253908

7 years ago[ARM] PR 82445 - suppress 32-bit aligned ldrd/strd peepholing with -mno-unaligned...
Richard Earnshaw [Thu, 19 Oct 2017 13:16:42 +0000 (13:16 +0000)] 
[ARM] PR 82445 - suppress 32-bit aligned ldrd/strd peepholing with -mno-unaligned-access

Peephole patterns exist in the arm backend to spot load/store
operations to adjacent memory operations in order to convert them into
ldrd/strd instructions.  However, when we have strict alignment
enforced, then we can only do this if the accesses are known to be
64-bit aligned; this is unlikely to be the case for most loads.  The
patch adds some alignment checking to the code that validates the
addresses for use in the peephole patterns.  This should also fix
incorrect generation of ldrd/strd with unaligned accesses that could
previously have occurred on ARMv5e where all such operations must be
64-bit aligned.

I've added some new tests as well.  In doing so I discovered that the
ldrd/strd peephole tests could never fail since they would match the
source file name in the scanned assembly as well as any instructions
of the intended type.  I've fixed those by tightening the scan results
slightly.

gcc:

* config/arm/arm.c (align_ok_ldrd_strd): New function.
(mem_ok_for_ldrd_strd): New parameter align.  Extract the alignment of the
mem into it.
(gen_operands_ldrd_strd): Validate the alignment of the accesses.

testsuite:

* gcc.target/arm/peep-ldrd-1.c: Tighten test scan pattern.
* gcc.target/arm/peep-strd-1.c: Likewise.
* gcc.target/arm/peep-ldrd-2.c: New test.
* gcc.target/arm/peep-strd-2.c: New test.

From-SVN: r253892

7 years agore PR fortran/81048 (incorrect derived type initialization)
Paul Thomas [Thu, 19 Oct 2017 12:16:41 +0000 (12:16 +0000)] 
re PR fortran/81048 (incorrect derived type initialization)

2017-10-19  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/81048
* resolve.c (resolve_symbol): Ensure that derived type array
results get default initialization.

2017-10-19  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/81048
* gfortran.dg/derived_init_4.f90 : New test.

From-SVN: r253889

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

From-SVN: r253874

7 years agoira: volatile asm's are not moveable (PR82602)
Segher Boessenkool [Wed, 18 Oct 2017 21:15:24 +0000 (23:15 +0200)] 
ira: volatile asm's are not moveable (PR82602)

A volatile asm statement can not be moved (relative to other volatile
asm, etc.), but IRA would do it nevertheless.  This patch fixes it.

PR rtl-optimization/82602
* ira.c (rtx_moveable_p): Return false for volatile asm.

From-SVN: r253871

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

From-SVN: r253838

7 years agore PR tree-optimization/82549 (ICE at -O1 and above: verify_gimple failed)
Jakub Jelinek [Tue, 17 Oct 2017 14:53:13 +0000 (16:53 +0200)] 
re PR tree-optimization/82549 (ICE at -O1 and above: verify_gimple failed)

PR tree-optimization/82549
* fold-const.c (optimize_bit_field_compare, fold_truth_andor_1):
Formatting fixes.  Instead of calling make_bit_field_ref with negative
bitpos return 0.

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

From-SVN: r253818

7 years agoDaily bump.
GCC Administrator [Tue, 17 Oct 2017 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253799

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

From-SVN: r253773

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

From-SVN: r253765

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

From-SVN: r253745

7 years agore PR target/82274 (__builtin_mul_overflow fails to detect overflow for int64_t when...
Jakub Jelinek [Fri, 13 Oct 2017 20:14:34 +0000 (22:14 +0200)] 
re PR target/82274 (__builtin_mul_overflow fails to detect overflow for int64_t when compiled with -m32)

PR target/82274
* internal-fn.c (expand_mul_overflow): If both operands have
the same highpart of -1 or 0 and the topmost bit of lowpart
is different, overflow is if res <= 0 rather than res < 0.

* libgcc2.c (__mulvDI3): If both operands have
the same highpart of -1 and the topmost bit of lowpart is 0,
multiplication overflows even if both lowparts are 0.

* gcc.dg/pr82274-1.c: New test.
* gcc.dg/pr82274-2.c: New test.

From-SVN: r253743

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

From-SVN: r253702

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

From-SVN: r253668

7 years agoDaily bump.
GCC Administrator [Wed, 11 Oct 2017 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253625

7 years agoconfig.gcc: (armv7*-*-freebsd*): New target.
Andreas Tobler [Tue, 10 Oct 2017 18:47:57 +0000 (20:47 +0200)] 
config.gcc: (armv7*-*-freebsd*): New target.

2017-10-10  Andreas Tobler  <andreast@gcc.gnu.org>

    * config.gcc: (armv7*-*-freebsd*): New target.
    Define TARGET_FREEBSD_ARMv7
    * config/arm/freebsd.h: Use TARGET_FREEBSD_ARMv7 to define the
    default cpu for armv7*-*-freebsd*.

From-SVN: r253604

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

From-SVN: r253572

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

From-SVN: r253534

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

From-SVN: r253517

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

From-SVN: r253504

7 years agobackport: re PR fortran/80118 (ICE with zero size parameter array)
Thomas Koenig [Fri, 6 Oct 2017 18:15:26 +0000 (18:15 +0000)] 
backport: re PR fortran/80118 (ICE with zero size parameter array)

2017-10-06  Thomas Koenig  <tkoenig@gcc.gnu.org>
            Steven G. Kargl  <kargl@gcc.gnu.org>

        Backport from trunk
        PR fortran/80118
        * expr.c (gfc_get_full_arrayspec_from_expr): If there is
        no symtree, set array spec to NULL.

2017-10-06  Thomas Koenig  <tkoenig@gcc.gnu.org>
            Steven G. Kargl  <kargl@gcc.gnu.org>

        Backport from trunk
        PR fortran/80118
        * gfortran.dg/zero_sized_7.f90: New test.

Co-Authored-By: Steven G. Kargl <kargl@gcc.gnu.org>
From-SVN: r253500

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

From-SVN: r253470

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

From-SVN: r253434

7 years agoDaily bump.
GCC Administrator [Wed, 4 Oct 2017 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253391

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

From-SVN: r253374

7 years agobackport: i386.c (ix86_split_idivmod): Use mode instead of always SImode for DIV...
Jakub Jelinek [Mon, 2 Oct 2017 18:42:08 +0000 (20:42 +0200)] 
backport: i386.c (ix86_split_idivmod): Use mode instead of always SImode for DIV and MOD in REG_EQUAL notes.

Backported from mainline
2017-09-30  Jakub Jelinek  <jakub@redhat.com>

* config/i386/i386.c (ix86_split_idivmod): Use mode instead of
always SImode for DIV and MOD in REG_EQUAL notes.

From-SVN: r253363

7 years agobackport: re PR tree-optimization/82337 (ICE: SSA corruption at tree-ssa-coalesce...
Bill Schmidt [Mon, 2 Oct 2017 18:09:20 +0000 (18:09 +0000)] 
backport: re PR tree-optimization/82337 (ICE: SSA corruption at tree-ssa-coalesce.c:1010)

[gcc]

2017-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

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

PR tree-optimization/82337
* gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
phi definition if the PHI result appears in an abnormal PHI.
(find_basis_for_base_expr): Don't record a basis if the LHS of the
basis appears in an abnormal PHI.

[gcc]

2017-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

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

PR tree-optimization/82337
* gcc.c-torture/compile/pr82337.c: New file.

From-SVN: r253360

7 years agoopt55.ad[sb]: Move to...
Eric Botcazou [Mon, 2 Oct 2017 14:04:33 +0000 (14:04 +0000)] 
opt55.ad[sb]: Move to...

* opt55.ad[sb]: Move to...
* gnat.dg/opt55.ad[sb]: ...here.

From-SVN: r253352

7 years agoHandle libbacktrace in contrib/gcc_update
Thomas Schwinge [Mon, 2 Oct 2017 11:58:32 +0000 (13:58 +0200)] 
Handle libbacktrace in contrib/gcc_update

contrib/
* gcc_update (files_and_dependencies): Handle libbacktrace.

trunk r253346

From-SVN: r253348

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

From-SVN: r253332

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

From-SVN: r253325

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

From-SVN: r253313

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

From-SVN: r253272

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

From-SVN: r253246

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

From-SVN: r253220

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

From-SVN: r253183

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

From-SVN: r253129

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

From-SVN: r253120

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

From-SVN: r253112

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

From-SVN: r253086

7 years agoPR81996, __builtin_return_address(0) fails
Alan Modra [Thu, 21 Sep 2017 12:57:24 +0000 (22:27 +0930)] 
PR81996, __builtin_return_address(0) fails

rs6000_return_addr assumes that the stack link is at frame+0, which is
true for count>0.  For count==0, rs6000_return_addr is called with
frame==frame_pointer_rtx and the stack link is *not* at frame+0 if
-fstack-protector-all or -fsanitize=address because rs6000.h sets
FRAME_GROWS_DOWNWARD for those options.

PR target/81996
* gcc/config/rs6000/rs6000.c (rs6000_return_addr): Use
stack_pointer_rtx for count 0.  Update comments.  Break up
large rtl expression.

From-SVN: r253068

7 years agoPR71951: Fix unwinding with -fomit-frame-pointer
Wilco Dijkstra [Thu, 21 Sep 2017 12:21:18 +0000 (12:21 +0000)] 
PR71951: Fix unwinding with -fomit-frame-pointer

As described in PR71951, if libgcc is built with -fomit-frame-pointer,
unwinding crashes, for example while doing a backtrace.  The underlying
reason is the Dwarf unwinder does not setup the frame pointer register
in the initialization code.  When later unwinding a function that uses
the frame pointer, it tries to read FP using _Unwind_GetGR, and this
crashes if has never restored FP.  To unwind correctly the first frame
must save and restore FP (it is unwound in a special way so that it
uses SP instead of FP).  This is done by adding -fno-omit-frame-pointer.

    gcc/
PR target/71951
* config/aarch64/aarch64.h (LIBGCC2_UNWIND_ATTRIBUTE): Define.

From-SVN: r253064

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

From-SVN: r253044

7 years agoPR libstdc++/60936 fix length calculation
Jonathan Wakely [Wed, 20 Sep 2017 12:01:44 +0000 (13:01 +0100)] 
PR libstdc++/60936 fix length calculation

Backport from mainline
2017-02-16  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/60936
* src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length
written to buffer, not length remaining in buffer.

Backport from mainline
2017-02-08  Gerald Pfeifer  <gerald@pfeifer.com>

* src/c++11/snprintf_lite.cc (__err): Update bug reporting URL.

From-SVN: r253007

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

From-SVN: r252988

7 years agoi386.c (fold_builtin_cpu): Add M_AMDFAM17H to processor_model and "amdfam17h" to...
Uros Bizjak [Tue, 19 Sep 2017 16:21:03 +0000 (18:21 +0200)] 
i386.c (fold_builtin_cpu): Add M_AMDFAM17H to processor_model and "amdfam17h" to arch_names_table.

* config/i386/i386.c (fold_builtin_cpu): Add M_AMDFAM17H
to processor_model and "amdfam17h" to arch_names_table.
* doc/extend.texi (__builtin_cpu_is): Document amdfam17h CPU name.

From-SVN: r252980

7 years agoIgnore empty string in target attribute (PR c++/81355).
Martin Liska [Tue, 19 Sep 2017 08:18:02 +0000 (10:18 +0200)] 
Ignore empty string in target attribute (PR c++/81355).

2017-09-19  Martin Liska  <mliska@suse.cz>

PR c++/81355
* config/i386/i386.c (sorted_attr_string): Skip empty strings.

From-SVN: r252967

7 years agoRevert backport revision.
Martin Liska [Tue, 19 Sep 2017 08:17:20 +0000 (10:17 +0200)] 
Revert backport revision.

From-SVN: r252966

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

From-SVN: r252959

7 years agoPR libstdc++/60936 reduce coupling between objects in libstdc++.a
Jonathan Wakely [Mon, 18 Sep 2017 12:57:05 +0000 (13:57 +0100)] 
PR libstdc++/60936 reduce coupling between objects in libstdc++.a

Backport from mainline
2017-02-03  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/60936
* src/c++11/Makefile.am: Add new files.
* src/c++11/Makefile.in: Regenerate.
* src/c++11/cow-string-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
(operator<<, operator>>, getline): Move explicit instantiations to ...
* src/c++11/cow-string-io-inst.cc: ... new file.
* src/c++11/cow-wstring-inst.cc [!_GLIBCXX_USE_CXX11_ABI]
(operator<<, operator>>, getline): Move explicit instantiations to ...
* src/c++11/cow-wstring-io-inst.cc: ... new file.
* src/c++11/functexcept.cc (__throw_ios_failure, __throw_system_error)
(__throw_future_error, __throw_bad_function_call):
(__throw_regex_error): Move functions for C++11 exceptions to the
files that define the exception types.
* src/c++11/functional.cc (__throw_bad_function_call): Move here.
* src/c++11/future.cc (__throw_future_error): Likewise.
* src/c++11/ios.cc (__throw_ios_failure): Likewise.
* src/c++11/regex.cc (__throw_regex_error): Likewise.
* src/c++11/snprintf_lite.cc (__concat_size_t): Print decimal
representation directly instead of calling __int_to_char.
* src/c++11/sso_string.cc (__sso_string): New file for definition
of __sso_string type.
* src/c++11/string-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
explicit instantiations of narrow string I/O functions.
* src/c++11/system_error.cc (__throw_system_error): Move here.
(__sso_string): Move to new file.
* src/c++11/wstring-io-inst.cc [_GLIBCXX_USE_CXX11_ABI]: New file for
explicit instantiations of wide string I/O functions.
* src/c++98/misc-inst.cc [_GLIBCXX_USE_CXX11_ABI] (operator<<)
(operator>>, getline): Remove explicit instantiations from here.

From-SVN: r252925

7 years agobackport: [multiple changes]
Richard Biener [Mon, 18 Sep 2017 11:10:06 +0000 (11:10 +0000)] 
backport: [multiple changes]

2017-09-18  Richard Biener  <rguenther@suse.de>

Backport from mainline
2017-04-07  Richard Biener  <rguenther@suse.de>

PR middle-end/80341
* gcc.dg/torture/pr80341.c: New testcase.

2017-04-04  Richard Biener  <rguenther@suse.de>

PR middle-end/80281
* gcc.dg/torture/pr80281.c: New testcase.

From-SVN: r252920

7 years agobackport: [multiple changes]
Richard Biener [Mon, 18 Sep 2017 11:07:50 +0000 (11:07 +0000)] 
backport: [multiple changes]

2017-09-18  Richard Biener  <rguenther@suse.de>

Backport from mainline
2017-08-28  Richard Biener  <rguenther@suse.de>

PR tree-optimization/81977
* tree-ssa-sccvn.c (vn_reference_lookup_3): Fix look through
memcpy.

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

2017-09-04  Richard Biener  <rguenther@suse.de>

PR tree-optimization/82084
* fold-const.h (can_native_encode_string_p): Declare.
* fold-const.c (can_native_encode_string_p): Factor out from ...
(native_encode_string): ... here.
* tree-vect-stmts.c (vectorizable_store): Call it to avoid
vectorizing stores from constants we later cannot handle.

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

2017-07-25  Richard Biener  <rguenther@suse.de>

PR middle-end/81505
* fold-const.c (fold_negate_const): TREE_OVERFLOW should be
sticky.

* gcc.dg/ubsan/pr81505.c: New testcase.

From-SVN: r252919

7 years agoRemove test failing on the branch.
Martin Liska [Mon, 18 Sep 2017 09:08:21 +0000 (11:08 +0200)] 
Remove test failing on the branch.

2017-09-18  Martin Liska  <mliska@suse.cz>

* gcc.dg/asan/pr81224.c: Remove.

From-SVN: r252911

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

From-SVN: r252898

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

From-SVN: r252890

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

From-SVN: r252868

7 years agobackport: re PR c++/81314 (Undefined reference to a function with -fopenmp)
Jakub Jelinek [Fri, 15 Sep 2017 21:42:20 +0000 (23:42 +0200)] 
backport: re PR c++/81314 (Undefined reference to a function with -fopenmp)

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

PR c++/81314
* cp-gimplify.c (omp_var_to_track): Look through references.
(omp_cxx_notice_variable): Likewise.

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

From-SVN: r252864

7 years agobackport: re PR target/82112 (internal compiler error: in fold_convert_loc, at fold...
Jakub Jelinek [Fri, 15 Sep 2017 21:41:29 +0000 (23:41 +0200)] 
backport: re PR target/82112 (internal compiler error: in fold_convert_loc, at fold-const.c:2262)

Backported from mainline
2017-09-12  Jakub Jelinek  <jakub@redhat.com>

PR target/82112
* gcc.target/powerpc/pr82112.c: New test.
* g++.dg/ext/altivec-18.C: New test.

From-SVN: r252863

7 years agobackport: re PR target/82112 (internal compiler error: in fold_convert_loc, at fold...
Jakub Jelinek [Fri, 15 Sep 2017 21:40:51 +0000 (23:40 +0200)] 
backport: re PR target/82112 (internal compiler error: in fold_convert_loc, at fold-const.c:2262)

Backported from mainline
2017-09-12  Jakub Jelinek  <jakub@redhat.com>

PR target/82112
* c-common.c (sync_resolve_size): Instead of c_dialect_cxx ()
assertion check that in the condition.
(get_atomic_generic_size): Likewise.  Before testing if parameter
has pointer type, if it has array type, call for C++
default_conversion to perform array-to-pointer conversion.

* c-c++-common/pr82112.c: New test.
* gcc.dg/pr82112.c: New test.

From-SVN: r252862

7 years agobackport: re PR middle-end/81768 (error: control flow in the middle of basic block)
Jakub Jelinek [Fri, 15 Sep 2017 21:39:36 +0000 (23:39 +0200)] 
backport: re PR middle-end/81768 (error: control flow in the middle of basic block)

Backported from mainline
2017-09-05  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/81768
* omp-low.c (lower_omp_for): Recompute tree invariant if
gimple_omp_for_initial/final is ADDR_EXPR.

* gcc.dg/gomp/pr81768-2.c: New test.

From-SVN: r252861

7 years agobackport: re PR middle-end/81768 (error: control flow in the middle of basic block)
Jakub Jelinek [Fri, 15 Sep 2017 21:38:43 +0000 (23:38 +0200)] 
backport: re PR middle-end/81768 (error: control flow in the middle of basic block)

Backported from mainline
2017-09-05  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/81768
* omp-low.c (expand_omp_simd): Force second operands of COND_EXPR
into gimple val before gimplification fo the COND_EXPR.

* gcc.dg/gomp/pr81768-1.c: New test.

From-SVN: r252860

7 years agobackport: lra-remat.c (reg_overlap_for_remat_p): Fix a pasto.
Jakub Jelinek [Fri, 15 Sep 2017 21:37:58 +0000 (23:37 +0200)] 
backport: lra-remat.c (reg_overlap_for_remat_p): Fix a pasto.

Backported from mainline
2017-09-04  Jakub Jelinek  <jakub@redhat.com>

* lra-remat.c (reg_overlap_for_remat_p): Fix a pasto.

From-SVN: r252859

7 years agobackport: re PR c/81687 (Compiler drops label in OpenMP region)
Jakub Jelinek [Fri, 15 Sep 2017 21:37:16 +0000 (23:37 +0200)] 
backport: re PR c/81687 (Compiler drops label in OpenMP region)

Backported from mainline
2017-08-09  Jakub Jelinek  <jakub@redhat.com>

PR c/81687
* omp-low.c (omp_copy_decl): Don't remap FORCED_LABEL or DECL_NONLOCAL
LABEL_DECLs.
* tree-cfg.c (move_stmt_op): Don't adjust DECL_CONTEXT of FORCED_LABEL
or DECL_NONLOCAL labels.
(move_stmt_r) <case GIMPLE_LABEL>: Adjust DECL_CONTEXT of FORCED_LABEL
or DECL_NONLOCAL labels here.

* testsuite/libgomp.c/pr81687-1.c: New test.
* testsuite/libgomp.c/pr81687-2.c: New test.

From-SVN: r252858

7 years agobackport: re PR target/81621 (ICE in delete_insn, at cfgrtl.c:167 with s390x cross...
Jakub Jelinek [Fri, 15 Sep 2017 21:35:48 +0000 (23:35 +0200)] 
backport: re PR target/81621 (ICE in delete_insn, at cfgrtl.c:167 with s390x cross compiler)

Backported from mainline
2017-08-03  Jakub Jelinek  <jakub@redhat.com>

PR target/81621
* bb-reorder.c (pass_partition_blocks::execute): Return TODO_df_finish
after setting changeable df flags.

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

From-SVN: r252857

7 years agobackport: re PR middle-end/81052 (ICE in verify_dominators, at dominance.c:1184)
Jakub Jelinek [Fri, 15 Sep 2017 21:34:10 +0000 (23:34 +0200)] 
backport: re PR middle-end/81052 (ICE in verify_dominators, at dominance.c:1184)

Backported from mainline
2017-08-03  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/81052
* omp-low.c (diagnose_sb_0): Handle flag_openmp_simd like flag_openmp.
(pass_diagnose_omp_blocks::gate): Enable also for flag_openmp_simd.

* c-c++-common/pr81052.c: New test.

From-SVN: r252856

7 years agobackport: re PR c/45784 (gcc OpenMP - error: invalid controlling predicate)
Jakub Jelinek [Fri, 15 Sep 2017 21:33:08 +0000 (23:33 +0200)] 
backport: re PR c/45784 (gcc OpenMP - error: invalid controlling predicate)

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

PR c/45784
* c-omp.c (c_finish_omp_for): If the condition is wrapped in
rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
new COMPOUND_EXPRs around the rhs of the comparison.

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

From-SVN: r252855

7 years agobackport: re PR target/81766 (ICE in maybe_add_or_update_dep_1, at sched-deps.c:924...
Jakub Jelinek [Fri, 15 Sep 2017 21:32:05 +0000 (23:32 +0200)] 
backport: re PR target/81766 (ICE in maybe_add_or_update_dep_1, at sched-deps.c:924 caused by r250815)

Backported from mainline
2017-08-08  Richard Biener  <rguenther@suse.de>

PR middle-end/81766
* function.c (thread_prologue_and_epilogue_insns): Restore
behavior of always calling find_many_sub_basic_blocks on
the inserted prologue.

* gcc.target/i386/pr81766.c: New testcase.

2017-08-02  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/79499
* function.c (thread_prologue_and_epilogue_insns): Determine blocks
for find_many_sub_basic_blocks bitmap by looking up BLOCK_FOR_INSN
of first NONDEBUG_INSN_P in each of the split_prologue_seq and
prologue_seq sequences - if any.

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

From-SVN: r252854

7 years agore PR libquadmath/65757 (gfortran gives incorrect result for anint with real*16 argument)
Jakub Jelinek [Fri, 15 Sep 2017 21:30:40 +0000 (23:30 +0200)] 
re PR libquadmath/65757 (gfortran gives incorrect result for anint with real*16 argument)

PR libquadmath/65757
* math/roundq.c: Cherry-pick upstream glibc 2015-04-28 change.

From-SVN: r252853

7 years agobackport: re PR target/81225 (ICE with -mavx512ifma -O3 -ffloat-store)
Jakub Jelinek [Fri, 15 Sep 2017 21:30:04 +0000 (23:30 +0200)] 
backport: re PR target/81225 (ICE with -mavx512ifma -O3 -ffloat-store)

Backported from mainline
2017-06-30  Jakub Jelinek  <jakub@redhat.com>

PR target/81225
* config/i386/sse.md (vec_extract_lo_<mode><mask_name>): For
V8FI, V16FI and VI8F_256 iterators, use <store_mask_predicate> instead
of nonimmediate_operand and <store_mask_constraint> instead of m for
the input operand.  For V8FI iterator, always split if input is a MEM.
For V16FI and V8SF_256 iterators, don't test if both operands are MEM
if <mask_applied>.  For VI4F_256 iterator, use <store_mask_predicate>
instead of register_operand and <store_mask_constraint> instead of v for
the input operand.  Make sure both operands aren't MEMs for if not
<mask_applied>.

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

From-SVN: r252852

7 years agoBackport r251049
Martin Liska [Fri, 15 Sep 2017 14:11:57 +0000 (16:11 +0200)] 
Backport r251049

2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-08-11  Martin Liska  <mliska@suse.cz>

PR tree-opt/79987
* tree-chkp.c (chkp_get_bounds_for_decl_addr): Do not instrument
variables of void type.
2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-08-11  Martin Liska  <mliska@suse.cz>

PR tree-opt/79987
* gcc.target/i386/mpx/pr79987.c: New test.

From-SVN: r252820

7 years agoBackport r249728
Martin Liska [Fri, 15 Sep 2017 12:15:52 +0000 (14:15 +0200)] 
Backport r249728

2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-06-28  Martin Liska  <mliska@suse.cz>

PR sanitizer/81224
* asan.c (instrument_derefs): Bail out inner references
that are hard register variables.
2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-06-28  Martin Liska  <mliska@suse.cz>

PR sanitizer/81224
* gcc.dg/asan/pr81224.c: New test.

From-SVN: r252814

7 years agoBackport r251530
Martin Liska [Fri, 15 Sep 2017 09:21:42 +0000 (11:21 +0200)] 
Backport r251530

2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-08-30  Martin Liska  <mliska@suse.cz>

PR inline-asm/82001
* ipa-icf-gimple.c (func_checker::compare_tree_list_operand):
Rename to ...
(func_checker::compare_asm_inputs_outputs): ... this function.
(func_checker::compare_gimple_asm): Use the function to compare
also ASM constrains.
* ipa-icf-gimple.h: Rename the function.
2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-08-30  Martin Liska  <mliska@suse.cz>

PR inline-asm/82001
* gcc.dg/ipa/pr82001.c: New test.

From-SVN: r252799

7 years agoBackport r251406
Martin Liska [Fri, 15 Sep 2017 09:20:37 +0000 (11:20 +0200)] 
Backport r251406

2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-08-29  Martin Liska  <mliska@suse.cz>

PR other/39851
* gcc-interface/trans.c (Pragma_to_gnu): Set argument to NULL.

From-SVN: r252798

7 years agoBackport r251400
Martin Liska [Fri, 15 Sep 2017 09:19:36 +0000 (11:19 +0200)] 
Backport r251400

2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-08-29  Martin Liska  <mliska@suse.cz>

PR other/39851
* gcc.c (driver_handle_option): Add new argument.
* opts-common.c (handle_option): Pass
target_option_override_hook.
* opts-global.c (lang_handle_option): Add new option.
(set_default_handlers):  Add new argument.
(decode_options): Likewise.
* opts.c (target_handle_option): Likewise.
(common_handle_option): Call target_option_override_hook.
* opts.h (struct cl_option_handler_func): Add hook for
target option override.
(struct cl_option_handlers): Likewise.
(set_default_handlers): Add new argument.
(decode_options): Likewise.
(common_handle_option): Likewise.
(target_handle_option): Likewise.
* toplev.c (toplev::main): Pass targetm.target_option.override
hook.
2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-08-29  Martin Liska  <mliska@suse.cz>

PR other/39851
* c-common.c (parse_optimize_options): Add argument to function
call.
* c-pragma.c (handle_pragma_diagnostic): Likewise.

From-SVN: r252797

7 years agoBackport r251020
Martin Liska [Fri, 15 Sep 2017 09:17:18 +0000 (11:17 +0200)] 
Backport r251020

2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-08-10  Martin Liska  <mliska@suse.cz>

PR c++/81355
* c-attribs.c (handle_target_attribute):
Report warning for an empty string argument of target attribute.
2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-08-10  Martin Liska  <mliska@suse.cz>

PR c++/81355
* g++.dg/other/pr81355.C: New test.

From-SVN: r252795

7 years agoBackport r250951
Martin Liska [Fri, 15 Sep 2017 09:15:32 +0000 (11:15 +0200)] 
Backport r250951

2017-09-15  Martin Liska  <mliska@suse.cz>

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

PR tree-opt/81696
* ipa-icf-gimple.c (func_checker::compare_cst_or_decl): Consider
LABEL_DECLs that can be from a different function.
2017-09-15  Martin Liska  <mliska@suse.cz>

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

PR tree-opt/81696
* gcc.dg/ipa/pr81696.c: New test.

From-SVN: r252794

7 years agoBackport r250336
Martin Liska [Fri, 15 Sep 2017 09:13:57 +0000 (11:13 +0200)] 
Backport r250336

2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-07-19  Martin Liska  <mliska@suse.cz>

PR sanitizer/63361
* c-c++-common/ubsan/float-cast-overflow-1.c: Add either
-ffloat-store or -mieee for targets that need it.

From-SVN: r252793

7 years agoBackport r249735
Martin Liska [Fri, 15 Sep 2017 09:13:29 +0000 (11:13 +0200)] 
Backport r249735

2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-06-28  Martin Liska  <mliska@suse.cz>

PR ipa/81128
* ipa-visibility.c (non_local_p): Handle visibility.
2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-06-28  Martin Liska  <mliska@suse.cz>

PR ipa/81128
* c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
to a function declaration.
2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-06-28  Martin Liska  <mliska@suse.cz>

PR ipa/81128
* gcc.target/i386/pr81128.c: New test.

From-SVN: r252792

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

From-SVN: r252777

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

From-SVN: r252742

7 years agoPR libstdc++/81468 constrain std::chrono::time_point constructor
Jonathan Wakely [Wed, 13 Sep 2017 15:20:34 +0000 (16:20 +0100)] 
PR libstdc++/81468 constrain std::chrono::time_point constructor

PR libstdc++/81468
* include/std/chrono (time_point(const time_point<_Dur2>&)): Add
missing constraint from LWG DR 1177.
* testsuite/20_util/duration/cons/dr1177.cc: New.
* testsuite/20_util/time_point/cons/81468.cc: New.
* testsuite/20_util/duration/literals/range.cc: Update dg-error line.

From-SVN: r252091

7 years agoFix broken URLs in libstdc++ API docs
Jonathan Wakely [Wed, 13 Sep 2017 10:22:45 +0000 (11:22 +0100)] 
Fix broken URLs in libstdc++ API docs

* doc/doxygen/mainpage.html: Fix broken URLs.

From-SVN: r252072

7 years agoPR libstdc++/81835 fix broken URLs in libstdc++ docs
Jonathan Wakely [Wed, 13 Sep 2017 10:10:04 +0000 (11:10 +0100)] 
PR libstdc++/81835 fix broken URLs in libstdc++ docs

PR libstdc++/81835
* doc/xml/manual/extensions.xml: Replace unstable URL.
* doc/html/manual/ext_demangling.html: Regenerate.
* libsupc++/cxxabi.h (__cxa_demangle): Fix broken URL.

From-SVN: r252068

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

From-SVN: r252049

7 years agobackport: re PR target/81833 (PowerPC: VSX: Miscompiles ffmpeg's scalarproduct_int16_...
Bill Schmidt [Tue, 12 Sep 2017 21:03:42 +0000 (21:03 +0000)] 
backport: re PR target/81833 (PowerPC: VSX: Miscompiles ffmpeg's scalarproduct_int16_vsx at -O1)

[gcc]

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

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

PR target/81833
* config/rs6000/altivec.md (altivec_vsum2sws): Convert from a
define_insn to a define_expand.
(altivec_vsum2sws_direct): New define_insn.
(altivec_vsumsws): Convert from a define_insn to a define_expand.

[gcc/testsuite]

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

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

PR target/81833
* gcc.target/powerpc/pr81833-1.c: New file.
* gcc.target/powerpc/pr81833-2.c: New file.

From-SVN: r252043

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

From-SVN: r251994

7 years agoxtensa: fix PR target/82181
Max Filippov [Mon, 11 Sep 2017 21:49:34 +0000 (21:49 +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: r251989

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

From-SVN: r251954

7 years agoPR c++/81852 define feature-test macro for -fthreadsafe-statics
Jonathan Wakely [Sun, 10 Sep 2017 09:05:31 +0000 (10:05 +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.
* g++.dg/cpp1z/feat-cxx1z.C: Likewise.

From-SVN: r251947

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

From-SVN: r251943

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

From-SVN: r251915

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

From-SVN: r251859

7 years agox86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Replace 'struct ucontext' with ucontext_t.
Matthias Klose [Thu, 7 Sep 2017 07:20:51 +0000 (07:20 +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: r251831

7 years agobackport: re PR sanitizer/81066 (sanitizer_stoptheworld_linux_libcdep.cc:276:22:...
Matthias Klose [Thu, 7 Sep 2017 07:15:24 +0000 (07:15 +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: r251828

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

From-SVN: r251823

7 years agobackport: re PR tree-optimization/81987 (ICE in verify_ssa with -O3 -march=skylake...
Bill Schmidt [Wed, 6 Sep 2017 18:44:51 +0000 (18:44 +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: r251816

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