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

From-SVN: r254615

7 years ago[ARM][PATCH v2] enable FL_LPAE flag for armv7ve cores
Andre McCurdy [Thu, 9 Nov 2017 14:34:28 +0000 (14:34 +0000)] 
[ARM][PATCH v2] enable FL_LPAE flag for armv7ve cores

The following commit added the FL_LPAE flag to FL_FOR_ARCH7VE, but
neglected to also add it to the armv7ve compatible cores defined in
arm-cores.def.

  https://github.com/gcc-mirror/gcc/commit/af2d9b9e58e8be576c53d94f30c48c68146b0c98

The result is that gcc 6.4 now refuses to allow -march=armv7ve and
-mcpu=XXX to be used together, even when -mcpu is set to an armv7ve
compatible core:

  arm-linux-gnueabi-gcc -march=armv7ve -mcpu=cortex-a7 -Werror ...
  error: switch -mcpu=cortex-a7 conflicts with -march=armv7ve switch [-Werror]

This is a regression relative to gcc 6.3.

Fix by defining flags for armv7ve compatible cores directly from
FL_FOR_ARCH7VE, rather than re-creating the armv7ve flags
independently by combining FL_FOR_ARCH7A with the armv7ve specific
FL_THUMB_DIV and FL_ARM_DIV flags.

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
2017-11-09  Andre McCurdy  <armccurdy@gmail.com>

* config/arm/arm-cores.def: Fix missing FL_LPAE flag for armv7ve
compatible cores.

From-SVN: r254584

7 years agoBackport PRs 64682, 69567, 69737, 82683
Segher Boessenkool [Thu, 9 Nov 2017 10:23:30 +0000 (11:23 +0100)] 
Backport PRs 64682, 69567, 69737, 82683

Backport from mainline
2017-11-01  Segher Boessenkool  <segher@kernel.crashing.org>

PR rtl-optimization/64682
PR rtl-optimization/69567
PR rtl-optimization/69737
PR rtl-optimization/82683
* combine.c (distribute_notes) <REG_DEAD>: If the new I2 sets the same
register mentioned in the note, drop the note, unless it came from I3,
in which case it should go to I3 again.

From-SVN: r254565

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

From-SVN: r254557

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

From-SVN: r254514

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

From-SVN: r254481

7 years agobackport: re PR fortran/78641 ([OOP] ICE on polymorphic allocatable function in array...
Paul Thomas [Mon, 6 Nov 2017 11:50:53 +0000 (11:50 +0000)] 
backport: re PR fortran/78641 ([OOP] ICE on polymorphic allocatable function in array constructor)

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

Backported from trunk
PR fortran/78641
* resolve.c (resolve_ordinary_assign): Do not add the _data
component for class valued array constructors being assigned
to derived type arrays.
* trans-array.c (gfc_trans_array_ctor_element): Take the _data
of class valued elements for assignment to derived type arrays.

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

Backported from trunk
PR fortran/78641
* gfortran.dg/class_66.f90: New test.

From-SVN: r254449

7 years agobackport: re PR fortran/69739 (ICE during array result, allocatable assignment)
Paul Thomas [Mon, 6 Nov 2017 11:48:32 +0000 (11:48 +0000)] 
backport: re PR fortran/69739 (ICE during array result, allocatable assignment)

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

Backported from trunk
PR fortran/69739
* trans-expr.c (gfc_map_intrinsic_function): Return false for
bounds without the DIM argument instead of ICEing.

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

Backported from trunk
PR fortran/69739
* gfortran.dg/pr69739.f90: New test.

From-SVN: r254448

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

From-SVN: r254433

7 years agobackport: re PR libgcc/82635 (std::thread's join broken on FreeBSD with all GCCs...
Andreas Tobler [Sun, 5 Nov 2017 19:33:44 +0000 (20:33 +0100)] 
backport: re PR libgcc/82635 (std::thread's join broken on FreeBSD with all GCCs >= 5)

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

    Backport from mainline
    2017-11-04  Andreas Tobler  <andreast@gcc.gnu.org>

    PR libgcc/82635
    * config/i386/freebsd-unwind.h (MD_FALLBACK_FRAME_STATE_FOR): Use a
    sysctl to determine whether we're in a trampoline.
    Keep the pattern matching method for systems without
    KERN_PROC_SIGTRAMP sysctl.

From-SVN: r254432

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

From-SVN: r254413

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