]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
7 years agore PR fortran/82796 (Private+equivalence in used module breaks compilation of pure...
Steven G. Kargl [Sat, 4 Nov 2017 17:16:39 +0000 (17:16 +0000)] 
re PR fortran/82796 (Private+equivalence in used module breaks compilation of pure function)

2017-11-01  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/82796
* resolve.c (resolve_equivalence): An entity in a common block within
  a module cannot appear in an equivalence statement if the entity is
with a pure procedure.

2017-11-01  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/82796
* gfortran.dg/equiv_pure.f90: New test.

From-SVN: r254410

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

From-SVN: r254400

7 years agore PR fortran/81735 (double free or corruption (fasttop) error (SIGABRT) with charact...
Paul Thomas [Fri, 3 Nov 2017 19:17:19 +0000 (19:17 +0000)] 
re PR fortran/81735 (double free or corruption (fasttop) error (SIGABRT) with character(:) and custom return type with allocatable)

2017-11-03  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/81735
* trans-decl.c (gfc_trans_deferred_vars): Correct case where
'tmp' can be used unititialized.

2017-11-03  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/81735
* gfortran.dg/pr81735.f90: New test.

From-SVN: r254393

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

From-SVN: r254362

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

From-SVN: r254332

7 years ago[multiple changes]
Paul Thomas [Wed, 1 Nov 2017 17:24:35 +0000 (17:24 +0000)] 
[multiple changes]

2017-11-01  Andre Vehreschild  <vehre@gcc.gnu.org>
Paul Thomas  <pault@gcc.gnu.org>

PR fortran/78293
* trans-expr.c (gfc_conv_procedure_call): Prepend deallocation
of alloctable components to post, rather than adding to
se->post.
* trans-stmt.c (gfc_trans_allocate): Move deallocation of expr3
allocatable components so that all expr3s are visited.

2017-11-01  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/78293
* gfortran.dg/allocatable_function_10.f90: New test.
* gfortran.dg/class_array_15.f03: Increase builtin_free count
from 11 to 12.

From-SVN: r254319

7 years agore PR fortran/80554 ([f08] variable redefinition in submodule)
Paul Thomas [Wed, 1 Nov 2017 12:39:48 +0000 (12:39 +0000)] 
re PR fortran/80554 ([f08] variable redefinition in submodule)

2017-11-01  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/80554
* decl.c (build_sym): In a submodule allow overriding of host
associated symbols from the ancestor module with a new
declaration.

2017-11-01  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/80554
* gfortran.dg/submodule_29.f08: New test.

From-SVN: r254303

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

From-SVN: r254285

7 years agore PR target/82772 (GCC crashes as compiling ags_thread.c source file on alpha archit...
Uros Bizjak [Tue, 31 Oct 2017 10:36:33 +0000 (11:36 +0100)] 
re PR target/82772 (GCC crashes as compiling ags_thread.c source file on alpha architecture)

PR target/82772
* config/alpha/sync.md (fetchop_constr) <and>: Change to "rINM".

From-SVN: r254255

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

From-SVN: r254247

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

From-SVN: r254208

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

From-SVN: r254201

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

From-SVN: r254190

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

From-SVN: r254129

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

From-SVN: r254094

7 years agoCorrections to C++ library status docs
Jonathan Wakely [Wed, 25 Oct 2017 14:16:26 +0000 (15:16 +0100)] 
Corrections to C++ library status docs

* doc/xml/manual/status_cxx1998.xml: Correct statement about
what the doc covers.
* doc/xml/manual/status_cxxtr1.xml: Likewise.
* doc/xml/manual/status_cxxtr24733.xml: Likewise.
* doc/html/*: Regenerate.

From-SVN: r254079

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

From-SVN: r254064

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

From-SVN: r254028

7 years agoPR libstdc++/81395 fix crash when write follows large read
Jonathan Wakely [Mon, 23 Oct 2017 17:47:10 +0000 (18:47 +0100)] 
PR libstdc++/81395 fix crash when write follows large read

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

PR libstdc++/81395
* include/bits/fstream.tcc (basic_filebuf::xsgetn): Don't set buffer
pointers for write mode after reading.
* testsuite/27_io/basic_filebuf/sgetn/char/81395.cc: New.

From-SVN: r254018

7 years agoFix path::iterator post-increment and post-decrement
Jonathan Wakely [Mon, 23 Oct 2017 17:47:05 +0000 (18:47 +0100)] 
Fix path::iterator post-increment and post-decrement

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

* include/experimental/bits/fs_path.h (path::iterator++(int))
(path::iterator--(int)): Fix for paths with only one component.
* testsuite/experimental/filesystem/path/itr/traversal.cc: Test
post-increment and post-decrement.

From-SVN: r254017

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

From-SVN: r253994

7 years agobackport: re PR libfortran/82233 (execute_command_line causes program to stop when...
Thomas Koenig [Sun, 22 Oct 2017 14:21:16 +0000 (14:21 +0000)] 
backport: re PR libfortran/82233 (execute_command_line causes program to stop when command fails (or does not exist))

2017-10-22  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR libfortran/82233
* intrinsics/execute_command_line.c (execute_command_line):
No call to runtime_error if cmdstat is present.

2017-10-22  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR libfortran/82233
* gfortran.dg/execute_command_line_3.f90: New test.

From-SVN: r253983

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

From-SVN: r253980

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

From-SVN: r253964

7 years agobackport: rs6000.c (rs6000_gen_le_vsx_permute): Use rotate instead of vec_select...
Bill Schmidt [Fri, 20 Oct 2017 21:35:41 +0000 (21:35 +0000)] 
backport: rs6000.c (rs6000_gen_le_vsx_permute): Use rotate instead of vec_select for V1TImode.

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

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

* config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
instead of vec_select for V1TImode.
* conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
longer needed.
(VSX_LE_128): Add V1TI to this mode iterator.
(*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
(*vsx_le_perm_store_<mode>): Likewise.
(pre-reload splitter for VSX stores): Likewise.
(post-reload splitter for VSX stores): Likewise.
(*vsx_xxpermdi2_le_<mode>): Likewise.
(*vsx_lxvd2x2_le_<mode>): Likewise.
(*vsx_stxvd2x2_le_<mode>): Likewise.

From-SVN: r253961

7 years agobackport: re PR fortran/79795 (Fortran ICE in resolve_symbol starting with r163221)
Thomas Koenig [Fri, 20 Oct 2017 19:26:35 +0000 (19:26 +0000)] 
backport: re PR fortran/79795 (Fortran ICE in resolve_symbol starting with r163221)

2017-10-20  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/79795
* resolve.c (resovle_symbol): Change gcc_assert to
sensible error message.

2017-10-20  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/79795
* gfortran.dg/assumed_size_2.f90: New test.

From-SVN: r253956

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