]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
7 years agoPR c++/84489 - dependent default template argument
Jason Merrill [Fri, 2 Mar 2018 18:24:40 +0000 (13:24 -0500)] 
PR c++/84489 - dependent default template argument

* pt.c (type_unification_real): Handle early substitution failure.

From-SVN: r258152

7 years ago[nvptx] Add support for CUDA 9
Thomas Schwinge [Fri, 2 Mar 2018 08:40:04 +0000 (09:40 +0100)] 
[nvptx] Add support for CUDA 9

Backport trunk r256891:

gcc/
2018-01-19  Cesar Philippidis  <cesar@codesourcery.com>

PR target/83790
* config/nvptx/nvptx.c (output_init_frag): Don't use generic address
spaces for function labels.

gcc/testsuite/
2018-01-19  Cesar Philippidis  <cesar@codesourcery.com>

PR target/83790
* gcc.target/nvptx/indirect_call.c: New test.

From-SVN: r258127

7 years agoDaily bump.
GCC Administrator [Fri, 2 Mar 2018 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r258118

7 years agoDaily bump.
GCC Administrator [Thu, 1 Mar 2018 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r258090

7 years agoPR c++/71784 - ICE with ref-qualifier and explicit specialization.
Jason Merrill [Wed, 28 Feb 2018 21:34:56 +0000 (16:34 -0500)] 
PR c++/71784 - ICE with ref-qualifier and explicit specialization.

* pt.c (determine_specialization): Check ref-qualifier.

From-SVN: r258087

7 years agogcc testsuite changes for new linker messages
Alan Modra [Wed, 28 Feb 2018 08:07:35 +0000 (18:37 +1030)] 
gcc testsuite changes for new linker messages

GNU ld error messages have changed to comply with the GNU coding
standards.

* lib/prune.exp (prune_gcc_output): Match lower case "in function"
GNU ld message.
* g++.dg/other/anon5.C: Match lower case "bad value" GNU ld message.

From-SVN: r258056

7 years agoDaily bump.
GCC Administrator [Wed, 28 Feb 2018 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r258048

7 years agoPR c++/84441 - ICE with base initialized from ?:
Jason Merrill [Tue, 27 Feb 2018 04:22:31 +0000 (23:22 -0500)] 
PR c++/84441 - ICE with base initialized from ?:

* call.c (unsafe_copy_elision_p): Handle COND_EXPR.

From-SVN: r258028

7 years agoPR c++/84520 - ICE with generic lambda in NSDMI.
Jason Merrill [Tue, 27 Feb 2018 04:22:24 +0000 (23:22 -0500)] 
PR c++/84520 - ICE with generic lambda in NSDMI.

* lambda.c (lambda_expr_this_capture): Don't look for fake NSDMI
'this' in a generic lambda instantiation.

From-SVN: r258027

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

From-SVN: r258018

7 years agoDaily bump.
GCC Administrator [Mon, 26 Feb 2018 00:16:17 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257976

7 years agore PR fortran/83633 (gfortran internal compiler error for explicit-shape array with...
Steven G. Kargl [Sun, 25 Feb 2018 17:32:36 +0000 (17:32 +0000)] 
re PR fortran/83633 (gfortran internal compiler error for explicit-shape array with non-constant bounds)

2018-02-25  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/83633
* decl.c (variable_decl): Check that an explicit-shape-array with
nonconstant bounds is allowed.

2018-02-25  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/83633
* gfortran.dg/explicit_shape_1.f90: New test.
* gfortran.dg/automatic_module_variable.f90: Update regex.
* gfortran.dg/bad_automatic_objects_1.f90: Ditto.

From-SVN: r257974

7 years agoDaily bump.
GCC Administrator [Sun, 25 Feb 2018 00:16:15 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257965

7 years agore PR fortran/30792 (DATA implied-do substring allowed with -std=f95/f2003)
Steven G. Kargl [Sat, 24 Feb 2018 20:24:27 +0000 (20:24 +0000)] 
re PR fortran/30792 (DATA implied-do substring allowed with -std=f95/f2003)

2018-02-24  Steven G. Kargl <kargl@gcc.gnu.org>

PR fortran/30792
* decl.c (gfc_match_data): Check for invalid substring in
data-implied-do

2018-02-24  Steven G. Kargl <kargl@gcc.gnu.org>

PR fortran/30792
* gfortran.dg/data_substring.f90: New test.

From-SVN: r257964

7 years agoDaily bump.
GCC Administrator [Sat, 24 Feb 2018 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257958

7 years agobackport: re PR fortran/84506 (INQUIRE(pos=) always sets pos=0 with -fdefault-integer-8)
Jerry DeLisle [Fri, 23 Feb 2018 19:53:04 +0000 (19:53 +0000)] 
backport: re PR fortran/84506 (INQUIRE(pos=) always sets pos=0 with -fdefault-integer-8)

2018-02-23  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

Backport from trunk
PR fortran/84506
* trans-io.c (set_parameter_value_inquire): Adjust range check of
negative unit values for kind=8 units to the kind=4 negative limit.

* gfortran.dg/inquire_19.f90: New test.

From-SVN: r257951

7 years agore PR fortran/84511 (Internal compiler error from directly printing return of C_LOC)
Steven G. Kargl [Fri, 23 Feb 2018 19:42:43 +0000 (19:42 +0000)] 
re PR fortran/84511 (Internal compiler error from directly printing return of C_LOC)

2018-02-23  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/84511
* trans-io.c (transfer_expr): Deal with C_LOC in transfer statement.

From-SVN: r257950

7 years agore PR fortran/84346 (Statement functions should not accept keywords)
Steven G. Kargl [Fri, 23 Feb 2018 19:41:27 +0000 (19:41 +0000)] 
re PR fortran/84346 (Statement functions should not accept keywords)

2018-02-23  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/84346
* interface.c (compare_actual_formal): Issue error if keyword is
used in a statement function.

2018-02-23  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/84346
* gfortran.dg/statement_function_1.f90: Update test.

From-SVN: r257949

7 years agoDaily bump.
GCC Administrator [Fri, 23 Feb 2018 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257925

7 years agoDaily bump.
GCC Administrator [Thu, 22 Feb 2018 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257885

7 years agoFix emit_store_flag_force () function to fix ICE in int_mode_for_mode,
Sudakshina Das [Wed, 21 Feb 2018 12:50:31 +0000 (12:50 +0000)] 
Fix emit_store_flag_force () function to fix ICE in int_mode_for_mode,

at stor-layout.c:403 with arm-linux-gnueabi.

*** gcc/ChangeLog ***

2018-02-21  Sudakshina Das  <sudi.das@arm.com>

Backport from trunk
2018-01-10  Sudakshina Das  <sudi.das@arm.com>

PR target/82096
* expmed.c (emit_store_flag_force): Swap if const op0
and change VOIDmode to mode of op0.

*** gcc/testsuite/ChangeLog ***

2018-02-21  Sudakshina Das  <sudi.das@arm.com>

Backport from trunk
2018-01-12  Sudakshina Das  <sudi.das@arm.com>

* gcc.c-torture/compile/pr82096.c: Add dg-skip-if
directive.

Backport from trunk
2018-01-10  Sudakshina Das  <sudi.das@arm.com>

PR target/82096
* gcc.c-torture/compile/pr82096.c: New test.

From-SVN: r257871

7 years agoDaily bump.
GCC Administrator [Wed, 21 Feb 2018 00:16:16 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257866

7 years agolibgcc: xtensa: fix build with -mtext-section-literals
Max Filippov [Tue, 20 Feb 2018 21:13:03 +0000 (21:13 +0000)] 
libgcc: xtensa: fix build with -mtext-section-literals

libgcc/
2018-02-20  Max Filippov  <jcmvbkbc@gmail.com>

Backport from mainline
2018-02-20  Max Filippov  <jcmvbkbc@gmail.com>

* config/xtensa/ieee754-df.S (__adddf3_aux): Add
.literal_position directive.
* config/xtensa/ieee754-sf.S (__addsf3_aux): Likewise.

From-SVN: r257864

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

From-SVN: r257833

7 years agoPR libstdc++/81797 Add .NOTPARALLEL to include/Makefile for darwin
Jonathan Wakely [Mon, 19 Feb 2018 17:02:38 +0000 (17:02 +0000)] 
PR libstdc++/81797 Add .NOTPARALLEL to include/Makefile for darwin

Backport from mainline
2018-02-15  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/81797
* configure.ac (INCLUDE_DIR_NOTPARALLEL): Define.
* configure: Regenerate.
* include/Makefile.am (INCLUDE_DIR_NOTPARALLEL): Add .NOTPARALLEL when
defined.
* include/Makefile.in: Regenerate.

From-SVN: r257811

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

From-SVN: r257798

7 years agoDaily bump.
GCC Administrator [Sun, 18 Feb 2018 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257785

7 years agoDaily bump.
GCC Administrator [Sat, 17 Feb 2018 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257776

7 years agore PR target/84277 (A lot of new acats testsuite failures)
Eric Botcazou [Fri, 16 Feb 2018 23:27:21 +0000 (23:27 +0000)] 
re PR target/84277 (A lot of new acats testsuite failures)

PR ada/84277
* gnat.dg/array11.adb (Array11): Tweak index and remove warning.
* gnat.dg/dispatch1.adb: Rename into...
* gnat.dg/disp1.adb: ...this.
* gnat.dg/dispatch1_p.ads: Rename into...
* gnat.dg/disp1_pkg.ads: ...this.
* gnat.dg/disp2.adb: Rename into...
* gnat.dg/dispatch2.adb: ...this.
* gnat.dg/dispatch2_p.ads: Rename into...
* gnat.dg/disp2_pkg.ads: ...this.
* gnat.dg/dispatch2_p.adb: Rename into...
* gnat.dg/disp2_pkg.adb: this.
* gnat.dg/generic_dispatch.adb: Rename into...
* gnat.dg/generic_disp.adb: this.
* gnat.dg/generic_dispatch_p.ads: Rename into...
* gnat.dg/generic_disp_pkg.ads: ...this.
* gnat.dg/generic_dispatch_p.adb: Rename into...
* gnat.dg/generic_disp_pkg.adb: ...this.
* gnat.dg/null_pointer_deref1.adb (Null_Pointer_Deref1): Robustify.
* gnat.dg/null_pointer_deref2.adb (Null_Pointer_Deref2): Likewise.
* gnat.dg/object_overflow1.adb: Tweak index.
* gnat.dg/object_overflow2.adb: Likewise.
* gnat.dg/object_overflow3.adb: Likewise.
* gnat.dg/object_overflow4.adb: Likewise.
* gnat.dg/object_overflow5.adb: Likewise.

From-SVN: r257775

7 years agoPR c++/84151 - unnecessary volatile load with static member.
Jason Merrill [Fri, 16 Feb 2018 21:34:57 +0000 (16:34 -0500)] 
PR c++/84151 - unnecessary volatile load with static member.

* call.c (build_new_method_call_1): Avoid loading from a volatile
lvalue used as the object argument for a static member function.

From-SVN: r257768

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

From-SVN: r257716

7 years agobackport: re PR target/84154 (PowerPC GCC 7 and 8 have regression in converting fp...
Michael Meissner [Thu, 15 Feb 2018 19:57:46 +0000 (19:57 +0000)] 
backport: re PR target/84154 (PowerPC GCC 7 and 8 have regression in converting fp to short/char and returning it)

2018-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>

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

PR target/84154
* config/rs6000/rs6000.md (su code attribute): Use "u" for
unsigned_fix, not "s".

From-SVN: r257707

7 years agobackport: re PR debug/83758 (ICE building gccgo on powerpc64le --with-cpu=power8)
Aaron Sawdey [Thu, 15 Feb 2018 18:36:20 +0000 (18:36 +0000)] 
backport: re PR debug/83758 (ICE building gccgo on powerpc64le --with-cpu=power8)

2018-02-15  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>

Back port from mainline
2018-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>

PR target/83758
* config/rs6000/rs6000.c (rs6000_internal_arg_pointer): Only return
a reg rtx.

From-SVN: r257701

7 years agoDaily bump.
GCC Administrator [Thu, 15 Feb 2018 00:16:16 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257677

7 years agobackport: re PR target/84390 (test case gcc.target/powerpc/vsxcopy.c fails for gcc...
Peter Bergner [Wed, 14 Feb 2018 20:03:21 +0000 (14:03 -0600)] 
backport: re PR target/84390 (test case gcc.target/powerpc/vsxcopy.c fails for gcc 7 and gcc 6 on power9)

Backport from GCC 7 branch
2018-02-14  Peter Bergner  <bergner@vnet.ibm.com>

PR target/84390
* gcc.target/powerpc/vsxcopy.c: Also match lxv when compiling
with -mcpu=power9.

From-SVN: r257671

7 years agoDaily bump.
GCC Administrator [Wed, 14 Feb 2018 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257649

7 years agoMake module files reproducible
Alastair McKinstry [Tue, 13 Feb 2018 08:06:02 +0000 (08:06 +0000)] 
Make module files reproducible

Using lbasename ensures that the build path does not end up in the
module file.

Regtested on x86_64-pc-linux-gnu. Backport from trunk.

2018-02-13  Alastair McKinstry  <alastair.mckinstry@sceal.ie>
    Janne Blomqvist  <jb@gcc.gnu.org>

* module.c (dump_module): Use lbasename to ensure that module
files are reproducible.

Co-Authored-By: Janne Blomqvist <jb@gcc.gnu.org>
From-SVN: r257615

7 years agoDaily bump.
GCC Administrator [Tue, 13 Feb 2018 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257608

7 years agore PR fortran/68560 (The test gfortran.dg/shape_8.f90 now fails when compiled with...
Thomas Koenig [Mon, 12 Feb 2018 20:27:11 +0000 (20:27 +0000)] 
re PR fortran/68560 (The test gfortran.dg/shape_8.f90 now fails when compiled with -flto)

2018-02-12  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/68560
* trans-intrinsic.c (gfc_conv_intrinsic_shape): New function.
(gfc_conv_intrinsic_function): Call it.

2018-02-12  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/68560
* gfortran.dg/shape_9.f90: New test.

From-SVN: r257603

7 years agore PR fortran/35299 (scope of variables in statement function do not acquire rank...
Francois-Xavier Coudert [Mon, 12 Feb 2018 18:26:44 +0000 (18:26 +0000)] 
re PR fortran/35299 (scope of variables in statement function do not acquire rank from host)

2018-02-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

PR fortran/35299
ChangeLog for r257566
* gfortran.dg/statement_function_3.f: New test.

2018-02-12  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>

PR fortran/35299
ChangeLog for r257566
* resolve.c (resolve_formal_arglist): Update error message.

From-SVN: r257597

7 years agore PR fortran/54223 (Statement function statement with dummy arguments that are also...
Steven G. Kargl [Mon, 12 Feb 2018 18:25:41 +0000 (18:25 +0000)] 
re PR fortran/54223 (Statement function statement with dummy arguments that are also OPTIONAL may crash in wrong calls)

2018-02-12  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/54223
PR fortran/84276
* interface.c (compare_actual_formal): Add in_statement_function
bool parameter.  Skip check of INTENT attribute for statement
functions.  Arguments to a statement function cannot be optional,
issue error for missing argument.
(gfc_procedure_use, gfc_ppc_use, gfc_arglist_matches_symbol): Use
in_statement_function.

2018-02-12  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/54223
PR fortran/84276
* gfortran.dg/statement_function_1.f90: New test.
* gfortran.dg/statement_function_2.f90: New test.

From-SVN: r257596

7 years agoDaily bump.
GCC Administrator [Mon, 12 Feb 2018 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257572

7 years agoDaily bump.
GCC Administrator [Sun, 11 Feb 2018 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257557

7 years agopa.c (hppa_profile_hook): Mark SYMBOL_REF for _mcount as function label.
John David Anglin [Sat, 10 Feb 2018 23:38:37 +0000 (23:38 +0000)] 
pa.c (hppa_profile_hook): Mark SYMBOL_REF for _mcount as function label.

* config/pa/pa.c (hppa_profile_hook): Mark SYMBOL_REF for _mcount as
function label.

From-SVN: r257556

7 years agobackport: re PR middle-end/84089 (FAIL: g++.dg/cpp1y/lambda-generic-x.C -std=gnu...
John David Anglin [Sat, 10 Feb 2018 20:04:59 +0000 (20:04 +0000)] 
backport: re PR middle-end/84089 (FAIL: g++.dg/cpp1y/lambda-generic-x.C  -std=gnu++14 (internal compiler error))

Backport from mainline
2018-02-01  Aldy Hernandez  <aldyh@redhat.com>

PR target/84089
* config/pa/predicates.md (base14_operand): Handle VOIDmode.

From-SVN: r257553

7 years agoDaily bump.
GCC Administrator [Sat, 10 Feb 2018 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257546

7 years agoDaily bump.
GCC Administrator [Fri, 9 Feb 2018 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257506

7 years agoDaily bump.
GCC Administrator [Thu, 8 Feb 2018 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257475

7 years agore PR fortran/82994 (ICE in gfc_match_deallocate, at fortran/match.c:4478)
Steven G. Kargl [Wed, 7 Feb 2018 22:41:59 +0000 (22:41 +0000)] 
re PR fortran/82994 (ICE in gfc_match_deallocate, at fortran/match.c:4478)

2018-02-07  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/82994
* match.c (gfc_match_deallocate): Check for NULL pointer.

2018-02-07  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/82994
* gfortran.dg/deallocate_error_3.f90: New test.
* gfortran.dg/deallocate_error_4.f90: New test.

From-SVN: r257468

7 years agore PR fortran/82049 (ICE with character(*),parameter array constructor)
Steven G. Kargl [Wed, 7 Feb 2018 21:01:00 +0000 (21:01 +0000)] 
re PR fortran/82049 (ICE with character(*),parameter array constructor)

2018-02-07  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/82049
* match.c (gfc_match_type_spec): If the charlen is non-NULL, then
try to resolve it.  While here return early if possible.

2018-02-07  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/82049
* gfortran.dg/assumed_charlen_parameter.f90: New test.

From-SVN: r257461

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

From-SVN: r257433

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

From-SVN: r257402

7 years agoDisable SHF_MERGE on Solaris 10/x86 (PR bootstrap/84017)
Rainer Orth [Mon, 5 Feb 2018 22:37:13 +0000 (22:37 +0000)] 
Disable SHF_MERGE on Solaris 10/x86 (PR bootstrap/84017)

Backport from mainline
2018-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

PR bootstrap/84017
* configure.ac (gcc_cv_as_shf_merge): Disable on Solaris 10/x86.
* configure: Regenerate.

From-SVN: r257399

7 years agoDaily bump.
GCC Administrator [Mon, 5 Feb 2018 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257370

7 years agoDaily bump.
GCC Administrator [Sun, 4 Feb 2018 00:16:15 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257360

7 years agoDaily bump.
GCC Administrator [Sat, 3 Feb 2018 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257353

7 years agoDaily bump.
GCC Administrator [Fri, 2 Feb 2018 00:16:19 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257320

7 years ago[PR83370][AARCH64]Use tighter register constraint for sibcall patterns.
Renlin Li [Thu, 1 Feb 2018 21:33:05 +0000 (21:33 +0000)] 
[PR83370][AARCH64]Use tighter register constraint for sibcall patterns.

gcc/

backport from mainline
2018-02-01  Renlin Li  <renlin.li@arm.com>

PR target/83370
* config/aarch64/aarch64.c (aarch64_class_max_nregs): Handle
TAILCALL_ADDR_REGS.
(aarch64_register_move_cost): Likewise.
* config/aarch64/aarch64.h (reg_class): Rename CALLER_SAVE_REGS to
TAILCALL_ADDR_REGS.
(REG_CLASS_NAMES): Likewise.
(REG_CLASS_CONTENTS): Rename CALLER_SAVE_REGS to
TAILCALL_ADDR_REGS. Remove IP registers.
* config/aarch64/aarch64.md (Ucs): Update register constraint.

gcc/testsuite/

backport from mainline
2018-02-01  Richard Sandiford  <richard.sandiford@linaro.org>

PR target/83370
* gcc.target/aarch64/pr83370.c: New.

From-SVN: r257315

7 years agobackport: re PR tree-optimization/82726 (ICE in verify_ssa during GIMPLE pass: pcom)
Bin Cheng [Thu, 1 Feb 2018 12:00:57 +0000 (12:00 +0000)] 
backport: re PR tree-optimization/82726 (ICE in verify_ssa during GIMPLE pass: pcom)

Backport from mainline
2017-11-15  Bin Cheng  <bin.cheng@arm.com>

PR tree-optimization/82726
PR tree-optimization/70754
* tree-predcom.c (order_drefs_by_pos): New function.
(combine_chains): Move code setting has_max_use_after to...
(try_combine_chains): ...here.  New parameter.  Sort combined chains
according to position information.
(tree_predictive_commoning_loop): Update call to above function.
(update_pos_for_combined_chains, pcom_stmt_dominates_stmt_p): New.

testsuite

Backport from mainline
2017-11-15  Bin Cheng  <bin.cheng@arm.com>

PR tree-optimization/82726
* gcc.dg/tree-ssa/pr82726.c: New test.

Backport from mainline
2017-01-23  Bin Cheng  <bin.cheng@arm.com>

PR tree-optimization/70754
* gfortran.dg/pr70754.f90: New test.

From-SVN: r257291

7 years agoGuard against incomplete AVX512F support in Solaris as
Rainer Orth [Thu, 1 Feb 2018 08:09:03 +0000 (08:09 +0000)] 
Guard against incomplete AVX512F support in Solaris as

Backport from mainline
2018-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

* lib/target-supports.exp (check_effective_target_avx512f): Also
check for __builtin_ia32_addsd_round,
__builtin_ia32_getmantsd_round.
* gcc.target/i386/i386.exp (check_effective_target_avx512f):
Remove.

From-SVN: r257283

7 years agoDaily bump.
GCC Administrator [Thu, 1 Feb 2018 00:16:15 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257277

7 years agobackport: re PR bootstrap/80867 (gnat bootstrap broken on powerpc64le-linux-gnu with...
Richard Biener [Wed, 31 Jan 2018 18:56:11 +0000 (18:56 +0000)] 
backport: re PR bootstrap/80867 (gnat bootstrap broken on powerpc64le-linux-gnu with -O3)

gcc/ChangeLog:

2018-01-31  Richard Biener <rguenther@suse.de>
    Kelvin Nilsen  <kelvin@gcc.gnu.org>

Backport from mainline
2018-01-29  Richard Biener <rguenther@suse.de>
    Kelvin Nilsen  <kelvin@gcc.gnu.org>

PR bootstrap/80867
* tree-vect-stmts.c (vectorizable_call): Don't call
targetm.vectorize_builtin_md_vectorized_function if callee is
NULL.

Co-Authored-By: Kelvin Nilsen <kelvin@gcc.gnu.org>
From-SVN: r257252

7 years agoDaily bump.
GCC Administrator [Wed, 31 Jan 2018 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257213

7 years agoDaily bump.
GCC Administrator [Tue, 30 Jan 2018 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257168

7 years agoPR libstdc++/83833 fix chi_squared_distribution::param(const param&)
Jonathan Wakely [Mon, 29 Jan 2018 14:44:48 +0000 (14:44 +0000)] 
PR libstdc++/83833 fix chi_squared_distribution::param(const param&)

Backport from mainline
2018-01-15  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/83833
* include/bits/random.h (chi_squared_distribution::param): Update
gamma distribution parameter.
* testsuite/26_numerics/random/chi_squared_distribution/83833.cc: New
test.

From-SVN: r257149

7 years ago[PATCH] PR84033, powerpc64le -moptimize-swaps bad code with vec_vbpermq
Alan Modra [Mon, 29 Jan 2018 04:31:18 +0000 (15:01 +1030)] 
[PATCH] PR84033, powerpc64le -moptimize-swaps bad code with vec_vbpermq

vbpermq produces its output in bits 48..63 of the target vector reg,
so the output cannot be lane swapped.

gcc/
PR target/84033
* config/rs6000/rs6000.c (rtx_is_swappable_p): Exclude
UNSPEC_VBPERMQ.
gcc/testsuite/
PR target/84033
* gcc.target/powerpc/swaps-p8-46.c: New.

Backport svn r257070

From-SVN: r257137

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

From-SVN: r257132

7 years agoDaily bump.
GCC Administrator [Sun, 28 Jan 2018 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257128

7 years agoDaily bump.
GCC Administrator [Sat, 27 Jan 2018 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257115

7 years agoDaily bump.
GCC Administrator [Fri, 26 Jan 2018 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257071

7 years agoDaily bump.
GCC Administrator [Thu, 25 Jan 2018 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257034

7 years agobackport: rs6000-p8swap.c (swap_feeds_both_load_and_store): New function.
Bill Schmidt [Wed, 24 Jan 2018 21:12:55 +0000 (21:12 +0000)] 
backport: rs6000-p8swap.c (swap_feeds_both_load_and_store): New function.

2018-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2018-01-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* config/rs6000/rs6000-p8swap.c (swap_feeds_both_load_and_store):
New function.
(rs6000_analyze_swaps): Mark a web unoptimizable if it contains a
swap associated with both a load and a store.

From-SVN: r257030

7 years agoDaily bump.
GCC Administrator [Wed, 24 Jan 2018 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257006

7 years agolibgcc: xtensa: fix NaN return from add/sub/mul/div helpers
Max Filippov [Tue, 23 Jan 2018 21:54:09 +0000 (21:54 +0000)] 
libgcc: xtensa: fix NaN return from add/sub/mul/div helpers

libgcc/
2018-01-23  Max Filippov  <jcmvbkbc@gmail.com>

Backport from mainline
2018-01-23  Max Filippov  <jcmvbkbc@gmail.com>

* config/xtensa/ieee754-df.S (__addsf3, __subsf3, __mulsf3)
(__divsf3): Make NaN return value quiet.
* config/xtensa/ieee754-sf.S (__adddf3, __subdf3, __muldf3)
(__divdf3): Make NaN return value quiet.

From-SVN: r257004

7 years agobackport: re PR target/83399 (Power8 ICE During LRA with 2-op rtl pattern for lvx...
Peter Bergner [Tue, 23 Jan 2018 18:18:25 +0000 (12:18 -0600)] 
backport: re PR target/83399 (Power8 ICE During LRA with 2-op rtl pattern for lvx instruction)

gcc/
Back port from mainline
2018-01-10  Peter Bergner  <bergner@vnet.ibm.com>

PR target/83399
* config/rs6000/rs6000.c (print_operand) <'y'>: Use
VECTOR_MEM_ALTIVEC_OR_VSX_P.
* config/rs6000/vsx.md (*vsx_le_perm_load_<mode> for VSX_D): Use
indexed_or_indirect_operand predicate.
(*vsx_le_perm_load_<mode> for VSX_W): Likewise.
(*vsx_le_perm_load_v8hi): Likewise.
(*vsx_le_perm_load_v16qi): Likewise.
(*vsx_le_perm_store_<mode> for VSX_D): Likewise.
(*vsx_le_perm_store_<mode> for VSX_W): Likewise.
(*vsx_le_perm_store_v8hi): Likewise.
(*vsx_le_perm_store_v16qi): Likewise.
(eight unnamed splitters): Likewise.

gcc/testsuite/
Back port from mainline
2018-01-10  Peter Bergner  <bergner@vnet.ibm.com>

PR target/83399
* gcc.target/powerpc/pr83399.c: New test.

From-SVN: r256993

7 years agobackport: re PR target/83862 (powerpc: ICE in signbit testcase)
Michael Meissner [Tue, 23 Jan 2018 15:07:00 +0000 (15:07 +0000)] 
backport: re PR target/83862 (powerpc: ICE in signbit testcase)

[gcc]
2018-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>

Back port from trunk
2018-01-22  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/83862
* config/rs6000/rs6000-protos.h (rs6000_split_signbit): Delete,
no longer used.
* config/rs6000/rs6000.c (rs6000_split_signbit): Likewise.
* config/rs6000/rs6000.md (signbit<mode>2): Change code for IEEE
128-bit to produce an UNSPEC move to get the double word with the
signbit and then a shift directly to do signbit.
(signbit<mode>2_dm): Replace old IEEE 128-bit signbit
implementation with a new version that just does either a direct
move or a regular move.  Move memory interface to separate insns.
Move insns so they are next to the expander.
(signbit<mode>2_dm_mem_be): New combiner insns to combine load
with signbit move.  Split big and little endian case.
(signbit<mode>2_dm_mem_le): Likewise.
(signbit<mode>2_dm_<su>ext): Delete, no longer used.
(signbit<mode>2_dm2): Likewise.

[gcc/testsuite]
2018-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>

Back port from trunk
2018-01-22  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/83862
* gcc.target/powerpc/pr83862.c: New test.

From-SVN: r256987

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

From-SVN: r256968

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

From-SVN: r256936

7 years agore PR target/81485 ([SH] ICE: in sh_find_set_of_reg, at config/sh/sh-protos.h:232)
Oleg Endo [Sun, 21 Jan 2018 13:00:51 +0000 (13:00 +0000)] 
re PR target/81485 ([SH] ICE: in sh_find_set_of_reg, at config/sh/sh-protos.h:232)

PR target/81485
* config/sh/sh-protos.h (sh_find_set_of_reg): Remove assert.

From-SVN: r256930

7 years agobackport: re PR target/80870 (ICE building 7.1.0 sh-elf crosscompiler on macOS)
Oleg Endo [Sun, 21 Jan 2018 05:15:59 +0000 (05:15 +0000)] 
backport: re PR target/80870 (ICE building 7.1.0 sh-elf crosscompiler on macOS)

Backport from mainline
2018-01-21  Oleg Endo  <olegendo@gcc.gnu.org>

PR target/80870
* config/sh/sh_optimize_sett_clrt.cc:
Use INCLUDE_ALGORITHM and INCLUDE_VECTOR instead of direct includes.

From-SVN: r256929

7 years agoDaily bump.
GCC Administrator [Sun, 21 Jan 2018 00:16:19 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r256922

7 years agore PR fortran/83900 (ICE in gfc_simplify_matmul, at fortran/simplify.c:4593)
Steven G. Kargl [Sat, 20 Jan 2018 20:56:45 +0000 (20:56 +0000)] 
re PR fortran/83900 (ICE in gfc_simplify_matmul, at fortran/simplify.c:4593)

2018-01-20  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/83900
    * simplify.c (gfc_simplify_matmul): Set return type correctly.

2018-01-20  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/83900
* gfortran.dg/matmul_18.f90: New test.

From-SVN: r256921

7 years agore PR fortran/83900 (ICE in gfc_simplify_matmul, at fortran/simplify.c:4593)
Steven G. Kargl [Sat, 20 Jan 2018 08:29:23 +0000 (08:29 +0000)] 
re PR fortran/83900 (ICE in gfc_simplify_matmul, at fortran/simplify.c:4593)

2018-01-19  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/83900
* simplify.c (gfc_simplify_matmul): Delete bogus assertion.

2018-01-19  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/83900
* gfortran.dg/matmul_17.f90: New test.

From-SVN: r256914

7 years agoDaily bump.
GCC Administrator [Sat, 20 Jan 2018 00:16:26 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r256909

7 years agobackport: re PR fortran/80768 (NULL pointer dereferenced in gfc_check_num_images...
Steven G. Kargl [Fri, 19 Jan 2018 23:51:18 +0000 (23:51 +0000)] 
backport: re PR fortran/80768 (NULL pointer dereferenced in gfc_check_num_images at fortran/check.c)

2018-01-19  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport of r250734 from mainline
PR fortran/80768
* check.c (gfc_check_num_images): Fix typo.

2018-01-19  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/80768
* gfortran.dg/num_images_1.f90:  New test that tests fix in r250734.

From-SVN: r256908

7 years agoPR libstdc++/83834 replace wildcard pattern in linker script
Jonathan Wakely [Fri, 19 Jan 2018 11:25:33 +0000 (11:25 +0000)] 
PR libstdc++/83834 replace wildcard pattern in linker script

Backport from mainline
2018-01-16  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/83834
* config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace std::c[a-g]* wildcard
pattern with exact match for std::cerr.

From-SVN: r256883

7 years agoDaily bump.
GCC Administrator [Fri, 19 Jan 2018 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r256868

7 years agoBack from mainline PR fortran/83874
Harald Anlauf [Thu, 18 Jan 2018 01:04:36 +0000 (01:04 +0000)] 
Back from mainline PR fortran/83874

2018-01-17  Harald Anlauf  <anlauf@gmx.de>

Back from mainline
PR fortran/83874
* decl.c (add_init_expr_to_sym): Do not dereference NULL pointer.

2018-01-17  Harald Anlauf  <anlauf@gmx.de>

Back from mainline
PR fortran/83874
* gfortran.dg/pr83874.f90: New test.

From-SVN: r256830

7 years agoDaily bump.
GCC Administrator [Thu, 18 Jan 2018 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r256825

7 years agoDaily bump.
GCC Administrator [Wed, 17 Jan 2018 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r256770

7 years agortlanal: dead_or_set_regno_p should handle CLOBBER (PR83424)
Segher Boessenkool [Tue, 16 Jan 2018 16:30:43 +0000 (17:30 +0100)] 
rtlanal: dead_or_set_regno_p should handle CLOBBER (PR83424)

In PR83424 combine's move_deaths puts a REG_DEAD note in the wrong place
because dead_or_set_regno_p does not account for CLOBBER insns.  This
fixes it.

PR rtl-optimization/83424
* rtlanal.c (dead_or_set_regno_p): Handle CLOBBER just like SET.

gcc/testsuite/
PR rtl-optimization/83424
* gcc.dg/pr83424.c: New testsuite.

From-SVN: r256752

7 years agoDaily bump.
GCC Administrator [Tue, 16 Jan 2018 00:16:16 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r256717

7 years agoFix type printers for Library Fundamentals types
Jonathan Wakely [Mon, 15 Jan 2018 12:38:56 +0000 (12:38 +0000)] 
Fix type printers for Library Fundamentals types

* python/libstdcxx/v6/printers.py (register_type_printers): Remove
printer for experimental::any. Fix printers for experimental::optional
and experimental::basic_string_view.

From-SVN: r256699

7 years agoPR libstdc++/83626 Don't throw for remove("") and remove_all("")
Jonathan Wakely [Mon, 15 Jan 2018 12:38:52 +0000 (12:38 +0000)] 
PR libstdc++/83626 Don't throw for remove("") and remove_all("")

Backport from mainline
2018-01-04  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/83626
* src/filesystem/ops.cc (remove(const path&, error_code&))): Do not
return an error for non-existent paths. Remove unnecessary
symlink_status call.
(remove_all(const path&)): Fix type of result variable.
(remove_all(const path&, error_code&))): Use non-throwing increment
for directory iterator. Do not return an error for non-existent paths.
* testsuite/experimental/filesystem/operations/remove.cc: New test.
* testsuite/experimental/filesystem/operations/remove_all.cc: Fix
expected results for non-existent paths.

From-SVN: r256697

7 years agoDaily bump.
GCC Administrator [Mon, 15 Jan 2018 00:16:17 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r256678

7 years agobackport: re PR target/83677 (PPC: The xxpermr instruction is not generated correctly)
Bill Schmidt [Sun, 14 Jan 2018 17:49:39 +0000 (17:49 +0000)] 
backport: re PR target/83677 (PPC: The xxpermr instruction is not generated correctly)

[gcc]

2018-01-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

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

PR target/83677
* config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
Reverse order of second and third operands in first alternative.
* config/rs6000/rs6000.c (rs6000_expand_vector_set): Reverse order
of first and second elements in UNSPEC_VPERMR vector.
(altivec_expand_vec_perm_le): Likewise.

[gcc/testsuite]

2018-01-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

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

PR target/83677
* gcc.target/powerpc/pr83677.c: New file.

From-SVN: r256671

7 years agoDaily bump.
GCC Administrator [Sun, 14 Jan 2018 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r256651

7 years agobackport: re PR fortran/78814 (ICE in symbol_rank, at fortran/interface.c:1265)
Steven G. Kargl [Sat, 13 Jan 2018 19:12:32 +0000 (19:12 +0000)] 
backport: re PR fortran/78814 (ICE in symbol_rank, at fortran/interface.c:1265)

2012-01-13  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from mainline
        PR fortran/78814
        * interface.c (symbol_rank): Check for NULL pointer.

2012-01-13  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from mainline
        PR fortran/78814
        * gfortran.dg/interface_40.f90: New testcase.

From-SVN: r256647

7 years agoDaily bump.
GCC Administrator [Sat, 13 Jan 2018 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r256600

7 years agoDaily bump.
GCC Administrator [Fri, 12 Jan 2018 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r256559