]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
6 years agoDaily bump.
GCC Administrator [Wed, 3 Apr 2019 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r270108

6 years agoThis is a backport of r250477, r255555, r257253 and r258137 from trunk to
Xiong Hu Luo [Tue, 2 Apr 2019 01:08:31 +0000 (01:08 +0000)] 
This is a backport of r250477, r255555, r257253 and r258137 from trunk to
gcc-7-branch to support built-in functions.

gcc/ChangeLog:

2019-04-02  Xiong Hu Luo <luoxhu@linux.ibm.com>

Backport from trunk r250477.

2017-07-24  Carl Love  <cel@us.ibm.com>

* config/rs6000/rs6000-c.c: Add support for built-in functions
vector float vec_extract_fp32_from_shorth (vector unsigned short);
vector float vec_extract_fp32_from_shortl (vector unsigned short);
* config/rs6000/altivec.h (vec_extract_fp_from_shorth,
vec_extract_fp_from_shortl): Add defines for the two builtins.
* config/rs6000/rs6000-builtin.def (VEXTRACT_FP_FROM_SHORTH,
VEXTRACT_FP_FROM_SHORTL): Add BU_P9V_OVERLOAD_1 and BU_P9V_VSX_1
new builtins.
* config/rs6000/vsx.md vsx_xvcvhpsp): Add define_insn.
(vextract_fp_from_shorth, vextract_fp_from_shortl): Add define_expands.
* doc/extend.texi: Update the built-in documentation file for the
new built-in function.

Backport from trunk r255555.

2017-12-11  Carl Love  <cel@us.ibm.com>

* config/rs6000/altivec.h (vec_extract_fp32_from_shorth,
vec_extract_fp32_from_shortl]): Add #defines.
* config/rs6000/rs6000-builtin.def (VSLDOI_2DI): Add macro expansion.
* config/rs6000/rs6000-c.c (ALTIVEC_BUILTIN_VEC_UNPACKH,
ALTIVEC_BUILTIN_VEC_UNPACKL, ALTIVEC_BUILTIN_VEC_AND,
ALTIVEC_BUILTIN_VEC_SLD, ALTIVEC_BUILTIN_VEC_SRL,
ALTIVEC_BUILTIN_VEC_SRO, ALTIVEC_BUILTIN_VEC_SLD,
ALTIVEC_BUILTIN_VEC_SLL): Add expansions.
* doc/extend.texi: Add documentation for the added builtins.

gcc/testsuite/ChangeLog:

2019-04-02  Xiong Hu Luo <luoxhu@linux.ibm.com>

Backport from trunk r250477.

2017-07-24  Carl Love  <cel@us.ibm.com>

* gcc.target/powerpc/builtins-3-p9-runnable.c: Add new test file for
the new built-ins.

Backport from trunk r255555.

2017-12-11  Carl Love  <cel@us.ibm.com>
* gcc.target/powerpc/altivec-7.c: Renamed altivec-7.h.
* gcc.target/powerpc/altivec-7.h (main): Add testcases for vec_unpackl.
Add dg-final tests for the instructions generated.
* gcc.target/powerpc/altivec-7-be.c: New file to test on big endian.
* gcc.target/powerpc/altivec-7-le.c: New file to test on little endian.
* gcc.target/powerpc/altivec-13.c (foo): Add vec_sld, vec_srl,
 vec_sro testcases. Add dg-final tests for the instructions generated.
* gcc.target/powerpc/builtins-3-p8.c (test_vsi_packs_vui,
test_vsi_packs_vsi, test_vsi_packs_vssi, test_vsi_packs_vusi,
test_vsi_packsu-vssi, test_vsi_packsu-vusi, test_vsi_packsu-vsll,
test_vsi_packsu-vull, test_vsi_packsu-vsi, test_vsi_packsu-vui): Add
testcases. Add dg-final tests for new instructions.
* gcc.target/powerpc/p8vector-builtin-2.c (vbschar_eq, vbchar_eq,
vuchar_eq, vbint_eq, vsint_eq, viint_eq, vuint_eq, vbool_eq, vbint_ne,
vsint_ne, vuint_ne, vbool_ne, vsign_ne, vuns_ne, vbshort_ne): Add
tests.
Add dg-final instruction tests.
* gcc.target/powerpc/vsx-vector-6.c: Renamed vsx-vector-6.h.
* gcc.target/powerpc/vsx-vector-6.h (vec_andc,vec_nmsub, vec_nmadd,
vec_or, vec_nor, vec_andc, vec_or, vec_andc, vec_msums): Add tests.
Add dg-final tests for the generated instructions.
* gcc.target/powerpc/builtins-3.c (test_sll_vsc_vsc_vsuc,
test_sll_vuc_vuc, test_sll_vsi_vsi_vuc, test_sll_vui_vui_vuc,
test_sll_vbll_vull, test_sll_vbll_vbll_vus, test_sll_vp_vp_vuc,
test_sll_vssi_vssi_vuc, test_sll_vusi_vusi_vuc, test_slo_vsc_vsc_vsc,
test_slo_vuc_vuc_vsc, test_slo_vsi_vsi_vsc, test_slo_vsi_vsi_vuc,
test_slo_vui_vui_vsc, test_slo_vui_vui_vuc, test_slo_vsll_slo_vsll_vsc,
test_slo_vsll_slo_vsll_vuc, test_slo_vull_slo_vull_vsc,
test_slo_vull_slo_vull_vuc, test_slo_vp_vp_vsc, test_slo_vp_vp_vuc,
test_slo_vssi_vssi_vsc, test_slo_vssi_vssi_vuc, test_slo_vusi_vusi_vsc,
test_slo_vusi_vusi_vuc, test_slo_vusi_vusi_vuc, test_slo_vf_vf_vsc,
test_slo_vf_vf_vuc, test_cmpb_float): Add tests.

Backport from trunk r257253.

2018-01-31  Will Schmidt  <will_schmidt@vnet.ibm.com>

* gcc.target/powerpc/altivec-13.c: Remove VSX-requiring built-ins.
* gcc.target/powerpc/vsx-13.c: New.

Backport from trunk r258137.

2018-03-02  Will Schmidt  <will_schmidt@vnet.ibm.com>

* gcc.target/powerpc/altivec-7-be.c: Remove VSX content, allow
32-bit target.
* gcc.target/powerpc/altivec-7.h: Remove VSX content.
* gcc.target/powerpc/vsx-7-be.c: New test (VSX content).
* gcc.target/powerpc/vsx-7.h: New include (VSX content).
* gcc.target/powerpc/altivec-7-le.c: Add vsx-7.h include.

From-SVN: r270073

6 years agoDaily bump.
GCC Administrator [Tue, 2 Apr 2019 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r270070

6 years agoDaily bump.
GCC Administrator [Mon, 1 Apr 2019 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r270049

6 years agobackport: re PR fortran/83515 (ICE: Invalid expression in gfc_element_size)
Harald Anlauf [Sun, 31 Mar 2019 19:21:37 +0000 (19:21 +0000)] 
backport: re PR fortran/83515 (ICE: Invalid expression in gfc_element_size)

2019-03-31  Harald Anlauf  <anlauf@gmx.de>

Backport from trunk
PR fortran/83515
PR fortran/85797
* trans-types.c (gfc_typenode_for_spec): Handle conversion for
procedure pointers.
* target-memory.c (gfc_element_size): Handle size determination
for procedure pointers.

PR fortran/83515
PR fortran/85797
* gfortran.dg/pr85797.f90: New test.

From-SVN: r270047

6 years agoDaily bump.
GCC Administrator [Sun, 31 Mar 2019 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r270039

6 years agoDaily bump.
GCC Administrator [Sat, 30 Mar 2019 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r270027

6 years agoDaily bump.
GCC Administrator [Fri, 29 Mar 2019 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r270010

6 years agoBackport r265786
Martin Liska [Thu, 28 Mar 2019 08:53:49 +0000 (09:53 +0100)] 
Backport r265786

2019-03-28  Martin Liska  <mliska@suse.cz>

Backport from mainline
2018-11-05  Martin Liska  <mliska@suse.cz>

PR web/87829
* doc/invoke.texi: Remove options that are
not disabled with -Os.

From-SVN: r269987

6 years agoDaily bump.
GCC Administrator [Thu, 28 Mar 2019 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269981

6 years agoDaily bump.
GCC Administrator [Wed, 27 Mar 2019 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269956

6 years agobackport: [multiple changes]
Richard Biener [Tue, 26 Mar 2019 13:18:23 +0000 (13:18 +0000)] 
backport: [multiple changes]

2019-02-26  Richard Biener  <rguenther@suse.de>

Backport from mainline
2019-02-12  Richard Biener  <rguenther@suse.de>

PR tree-optimization/89253
* tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
duplicate the loop.

* gfortran.dg/pr89253.f: New testcase.

2019-02-08  Richard Biener  <rguenther@suse.de>

PR middle-end/89223
* tree-data-ref.c (initialize_matrix_A): Fail if constant
doesn't fit in HWI.
(analyze_subscript_affine_affine): Handle failure from
initialize_matrix_A.

* gcc.dg/torture/pr89223.c: New testcase.

2019-01-28  Richard Biener  <rguenther@suse.de>

PR tree-optimization/88739
* tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
BIT_FIELD_REFs of non-mode-precision integral operands.

* gcc.c-torture/execute/pr88739.c: New test.

From-SVN: r269942

6 years agobackport: [multiple changes]
Richard Biener [Tue, 26 Mar 2019 11:18:26 +0000 (11:18 +0000)] 
backport: [multiple changes]

2019-03-26  Richard Biener  <rguenther@suse.de>

Backport from mainline
2019-01-08  Richard Biener  <rguenther@suse.de>

PR tree-optimization/86554
* tree-ssa-sccvn.c (visit_nary_op): When value-numbering to
expressions with different overflow behavior make sure there's an
available expression on the path.

* gcc.dg/torture/pr86554-1.c: New testcase.
* gcc.dg/torture/pr86554-2.c: Likewise.

2018-11-20  Richard Biener  <rguenther@suse.de>

PR tree-optimization/88105
* tree-ssa-dom.c (pass_dominator::execute): Do not walk
backedges.

* gcc.dg/gomp/pr88105.c: New testcase.

2018-03-08  Richard Biener  <rguenther@suse.de>

PR middle-end/84552
* tree-scalar-evolution.c: Include tree-into-ssa.h.
(follow_copies_to_constant): Do not follow SSA names registered
for update.

* gcc.dg/graphite/pr84552.c: New testcase.

From-SVN: r269939

6 years agoDaily bump.
GCC Administrator [Tue, 26 Mar 2019 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269929

6 years agore PR fortran/71861 ([F03] ICE in write_symbol(): bad module symbol)
Janus Weil [Mon, 25 Mar 2019 19:58:04 +0000 (20:58 +0100)] 
re PR fortran/71861 ([F03] ICE in write_symbol(): bad module symbol)

fix PR 71861

2019-03-25  Janus Weil  <janus@gcc.gnu.org>

PR fortran/71861
* symbol.c (check_conflict): ABSTRACT attribute conflicts with
INTRINSIC attribute.

2019-03-25  Janus Weil  <janus@gcc.gnu.org>

PR fortran/71861
* gfortran.dg/interface_abstract_5.f90: New test case.

From-SVN: r269922

6 years agoDaily bump.
GCC Administrator [Mon, 25 Mar 2019 00:16:24 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269903

6 years agoDaily bump.
GCC Administrator [Sun, 24 Mar 2019 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269892

6 years agore PR fortran/68009 (prototype for gfortran_runtime_error with inline matmul)
Thomas Koenig [Sat, 23 Mar 2019 16:01:57 +0000 (16:01 +0000)] 
re PR fortran/68009 (prototype for gfortran_runtime_error with inline matmul)

2019-03-23  Thomas Koenig  <tkoeng@gcc.gnu.org>

    PR fortran/68009
    Backport from trunk
    * iresolve.c: Include trans.h.
    (gfc_resolve_fe_runtine_error): Set backend_decl on
    resolved_sym.

From-SVN: r269890

6 years agoDaily bump.
GCC Administrator [Sat, 23 Mar 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269883

6 years agoDaily bump.
GCC Administrator [Fri, 22 Mar 2019 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269864

6 years ago[testsuite] Fix 'dg-compile-aux-modules' diagnostic
Thomas Schwinge [Thu, 21 Mar 2019 19:31:30 +0000 (20:31 +0100)] 
[testsuite] Fix 'dg-compile-aux-modules' diagnostic

gcc/testsuite/
PR fortran/56408
* gcc.target/powerpc/ppc-fortran/ppc-fortran.exp
(dg-compile-aux-modules): Fix diagnostic.
* gfortran.dg/coarray/caf.exp (dg-compile-aux-modules): Likewise.
* gfortran.dg/dg.exp (dg-compile-aux-modules): Likewise.

trunk r269851

From-SVN: r269853

6 years ago[testsuite, Fortran] Apply DejaGnu 1.4.4 work-around also to 'gfortran.dg/coarray...
Thomas Schwinge [Thu, 21 Mar 2019 19:17:12 +0000 (20:17 +0100)] 
[testsuite, Fortran] Apply DejaGnu 1.4.4 work-around also to 'gfortran.dg/coarray/caf.exp:dg-compile-aux-modules'

See trunk r215293.  This unifies all 'dg-compile-aux-modules' instances.

gcc/testsuite/
PR fortran/56408
* gfortran.dg/coarray/caf.exp (dg-compile-aux-modules): Workaround
missing nexted dg-test call support in dejaGNU 1.4.4.

trunk r269848

From-SVN: r269850

6 years ago[testsuite, Fortran] Consistently set 'DEFAULT_FFLAGS'
Thomas Schwinge [Thu, 21 Mar 2019 18:57:56 +0000 (19:57 +0100)] 
[testsuite, Fortran] Consistently set 'DEFAULT_FFLAGS'

In the same 'runtest' instance, 'global' variables persist from one '*.exp'
file to another.

All other '*.exp' files are using " -pedantic-errors" instead of the empty
string as the default for 'DEFAULT_FFLAGS'.  Thus this setting of
'DEFAULT_FFLAGS' is not idempotent, depends on whether
'gfortran.dg/ieee/ieee.exp', or an other defining '*.exp' file is executed
first.

gcc/testsuite/
PR fortran/29383
* gfortran.dg/ieee/ieee.exp (DEFAULT_FFLAGS): Set the same as in
other '*.exp' files.

trunk r269845

From-SVN: r269847

6 years agors6000.c (rs6000_analyze_swaps): Rebuild ud- and du-chains between phases.
Bill Schmidt [Thu, 21 Mar 2019 17:13:55 +0000 (17:13 +0000)] 
rs6000.c (rs6000_analyze_swaps): Rebuild ud- and du-chains between phases.

2019-03-21  Bill Schmidt  <wschmidt@linux.ibm.com>

* config/rs6000/rs6000.c (rs6000_analyze_swaps): Rebuild
ud- and du-chains between phases.

From-SVN: r269843

6 years agobackport: re PR tree-optimization/89505 (LibreOffice miscompilation starting with...
Matthias Klose [Thu, 21 Mar 2019 12:28:26 +0000 (12:28 +0000)] 
backport: re PR tree-optimization/89505 (LibreOffice miscompilation starting with r260383)

2019-03-21  Matthias Klose  <doko@ubuntu.com>

        Backport from mainline
        2019-02-26  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/89505
        * tree-ssa-structalias.c (compute_dependence_clique): Make sure
        to handle restrict pointed-to vars with multiple subvars
        correctly.

2019-03-21  Matthias Klose  <doko@ubuntu.com>

        Backport from mainline
        2019-02-26  Richard Biener  <rguenther@suse.de>

        PR tree-optimization/89505
        * gcc.dg/torture/pr89505.c: New testcase.

From-SVN: r269836

6 years agoDaily bump.
GCC Administrator [Thu, 21 Mar 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269829

6 years agoDaily bump.
GCC Administrator [Wed, 20 Mar 2019 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269815

6 years agoDaily bump.
GCC Administrator [Tue, 19 Mar 2019 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269786

6 years agoDaily bump.
GCC Administrator [Mon, 18 Mar 2019 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269747

6 years agore PR fortran/84394 (compiler error when using modules with derived types in block...
Thomas Koenig [Sun, 17 Mar 2019 12:54:29 +0000 (12:54 +0000)] 
re PR fortran/84394 (compiler error when using modules with derived types in block data subprograms)

2019-03-17  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/84394
Backport from trunk
* symbol.c (gfc_add_subroutine): If we are encountering a
subrtoutine within a BLOCK DATA and the name starts with an
underscore, do not check.

2019-03-17  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/84394
Backport from trunk
* gfortran.dg/blockdata_11.f90: New test.

From-SVN: r269741

6 years agox32: Add addr32 prefix to VSIB address
H.J. Lu [Sun, 17 Mar 2019 09:27:56 +0000 (09:27 +0000)] 
x32: Add addr32 prefix to VSIB address

32-bit indices in VSIB address are sign-extended to 64 bits.  In x32,
when 32-bit indices are used as addresses, like in

vgatherdps %ymm7, 0(,%ymm9,1), %ymm6

32-bit indices, 0xf7fa3010, is sign-extended to 0xfffffffff7fa3010 which
is invalid address.  Add addr32 prefix to UNSPEC_VSIBADDR instructions
for x32 if there is no base register nor symbol.

This fixes 175.vpr and 254.gap in SPEC CPU 2000 on x32 with

-Ofast -funroll-loops -march=haswell

gcc/

Backport from mainline
2019-03-14  H.J. Lu  <hongjiu.lu@intel.com>

PR target/89523
* config/i386/i386.c (ix86_print_operand): Handle 'M' to add
addr32 prefix to VSIB address for X32.
* config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
"%M2" to opcode.
(*avx512pf_gatherpf<mode>df_mask): Likewise.
(*avx512pf_scatterpf<mode>sf_mask): Likewise.
(*avx512pf_scatterpf<mode>df_mask): Likewise.
(*avx2_gathersi<mode>): Prepend "%M3" to opcode.
(*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
(*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
(*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
(*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
(*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
(*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
(*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
(*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
(*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
(*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
(*avx512f_scatterdi<mode>): Likewise.

gcc/testsuite/

Backport from mainline
2019-03-14  H.J. Lu  <hongjiu.lu@intel.com>

PR target/89523
* gcc.target/i386/pr89523-1a.c: New test.
* gcc.target/i386/pr89523-1b.c: Likewise.
* gcc.target/i386/pr89523-2.c: Likewise.
* gcc.target/i386/pr89523-3.c: Likewise.
* gcc.target/i386/pr89523-4.c: Likewise.
* gcc.target/i386/pr89523-5.c: Likewise.
* gcc.target/i386/pr89523-6.c: Likewise.
* gcc.target/i386/pr89523-7.c: Likewise.
* gcc.target/i386/pr89523-8.c: Likewise.
* gcc.target/i386/pr89523-9.c: Likewise.

From-SVN: r269739

6 years agoDaily bump.
GCC Administrator [Sun, 17 Mar 2019 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269735

6 years agore PR fortran/66089 (elemental dependency mishandling when class array are involved)
Thomas Koenig [Sat, 16 Mar 2019 14:03:00 +0000 (14:03 +0000)] 
re PR fortran/66089 (elemental dependency mishandling when class array are involved)

2019-03-16  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/66089
Backport from trunk
* trans-array.c (gfc_scalar_elemental_arg_saved_as_reference):
Return false if a scalar tempoary is needed.
(gfc_walk_variable_expr): Fix up class refs.

2019-03-16  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/66089
Backport from trunk
* gfortran.dg/dependency_53.f90: New test.
* gfortran.dg/assumed_type_2.f90: Adapted tree dumps.
* gfortran.dg/no_arg_check_2.f90: Likewise.

From-SVN: r269725

6 years agore PR fortran/66695 ([F03] ICE with binding-name equal to the name of a use-associate...
Thomas Koenig [Sat, 16 Mar 2019 13:24:40 +0000 (13:24 +0000)] 
re PR fortran/66695 ([F03] ICE with binding-name equal to the name of a use-associated procedure)

2019-03-16  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/66695
PR fortran/77746
PR fortran/79485
Backport from trunk
* gfortran.h (gfc_symbol): Add bind_c component.
(gfc_get_gsymbol): Add argument bind_c.
* decl.c (add_global_entry): Add bind_c argument to
gfc_get_symbol.
* parse.c (parse_block_data): Likewise.
(parse_module): Likewise.
(add_global_procedure): Likewise.
(add_global_program): Likewise.
* resolve.c (resolve_common_blocks): Likewise.
(resolve_global_procedure): Likewise.
(gfc_verify_binding_labels): Likewise.
* symbol.c (gfc_get_gsymbol): Add argument bind_c. Set bind_c
in gsym.
* trans-decl.c (gfc_get_module_backend_decl): Add bind_c argument
to gfc_get_symbol.
(gfc_get_extern_function_decl): If the sym has a binding label
and it cannot be found in the global symbol tabel, it is the wrong
one and vice versa.

2019-03-16 Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/66695
PR fortran/77746
PR fortran/79485
Backport from trunk
* gfortran.dg/binding_label_tests_30.f90: New test.
* gfortran.dg/binding_label_tests_31.f90: New test.
* gfortran.dg/binding_label_tests_32.f90: New test.
* gfortran.dg/binding_label_tests_33.f90: New test.

From-SVN: r269723

6 years agoDaily bump.
GCC Administrator [Sat, 16 Mar 2019 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269718

6 years agoDaily bump.
GCC Administrator [Fri, 15 Mar 2019 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269696

6 years agoZero local estimated benefit for cloning extern inline function
Martin Jambor [Thu, 14 Mar 2019 16:54:43 +0000 (17:54 +0100)] 
Zero local estimated benefit for cloning extern inline function

2019-03-14  Martin Jambor  <mjambor@suse.cz>

Backport from mainline
2019-03-07  Martin Jambor  <mjambor@suse.cz>

PR lto/87525
* ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
for extern inline functions.

testsuite/
* gcc.dg/ipa/ipcp-5.c: New test.

From-SVN: r269688

6 years agobackport: re PR target/84272 (AddressSanitizer: heap-use-after-free ../../gcc/config...
Richard Biener [Thu, 14 Mar 2019 09:18:07 +0000 (09:18 +0000)] 
backport: re PR target/84272 (AddressSanitizer: heap-use-after-free ../../gcc/config/aarch64/cortex-a57-fma-steering.c:519 in fma_node::get_parity())

2019-03-14  Richard Biener  <rguenther@suse.de>

Backport from mainline
2018-02-16  Jakub Jelinek  <jakub@redhat.com>

PR target/84272
* config/aarch64/cortex-a57-fma-steering.c (fma_forest::merge_forest):
Use ++iter rather than iter++ for std::list iterators.
(func_fma_steering::dfs): Likewise.  Don't delete nodes right away,
defer deleting them until all nodes in the forest are processed.  Do
free even leaf nodes.  Change to_process into auto_vec.

* g++.dg/opt/pr84272.C: New test.

From-SVN: r269676

6 years agoDaily bump.
GCC Administrator [Thu, 14 Mar 2019 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269668

6 years agore PR fortran/87673 (Errors caused by using function for character length in allocate...
Thomas Koenig [Wed, 13 Mar 2019 22:15:33 +0000 (22:15 +0000)] 
re PR fortran/87673 (Errors caused by using function for character length in allocate with typespec)

2019-03-13  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/87673
Backport from trunk
* match.c (gfc_match_type_spec): Remove call to
gfc_resolve_expr for character length.

2019-03-13  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/87673
Backport from trunk
* gfortran.dg/charlen_17.f90: New test.

From-SVN: r269666

6 years agoBackport of r269499 and related testism fix r269596.
Andre Vieira [Wed, 13 Mar 2019 11:46:56 +0000 (11:46 +0000)] 
Backport of r269499 and related testism fix r269596.

gcc/ChangeLog:
2019-03-13  Andre Vieira  <andre.simoesdiasvieira@arm.com>

Backport from mainline
2019-03-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>

* config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
requirement.

gcc/testsuite/ChangeLog:
2019-03-13  Andre Vieira  <andre.simoesdiasvieira@arm.com>

Backport from mainline
2019-03-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>

* gcc.target/arm/f16_f64_conv_no_dp.c: New test.

Backport from mainline
2019-03-11  Christophe Lyon  <christophe.lyon@linaro.org>

* gcc.target/arm/f16_f64_conv_no_dp.c: Add arm_fp16_ok effective
target.

From-SVN: r269647

6 years agoDaily bump.
GCC Administrator [Wed, 13 Mar 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269629

6 years agoDaily bump.
GCC Administrator [Tue, 12 Mar 2019 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269599

6 years agoBackport r268981
Martin Liska [Mon, 11 Mar 2019 11:18:22 +0000 (12:18 +0100)] 
Backport r268981

2019-03-11  Martin Liska  <mliska@suse.cz>

Backport from mainline
2019-02-18  Martin Liska  <mliska@suse.cz>

PR c++/89383
* line-map.c (linemap_line_start): Use 1UL in order
to not overflow.

From-SVN: r269577

6 years agoBackport r268789
Martin Liska [Mon, 11 Mar 2019 11:18:08 +0000 (12:18 +0100)] 
Backport r268789

2019-03-11  Martin Liska  <mliska@suse.cz>

Backport from mainline
2019-02-11  David Malcolm  <dmalcolm@redhat.com>

PR lto/88147
* input.c (selftest::test_line_offset_overflow): New selftest.
(selftest::input_c_tests): Call it.
2019-03-11  Martin Liska  <mliska@suse.cz>

Backport from mainline
2019-02-11  Martin Liska  <mliska@suse.cz>

PR lto/88147
* line-map.c (linemap_line_start): Don't reuse the existing line
map if the line offset is sufficiently large to cause overflow
when computing location_t values.

From-SVN: r269576

6 years agoDaily bump.
GCC Administrator [Mon, 11 Mar 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269563

6 years agore PR fortran/71544 (gfortran compiler optimization bug when dealing with c-style...
Thomas Koenig [Sun, 10 Mar 2019 11:26:25 +0000 (11:26 +0000)] 
re PR fortran/71544 (gfortran compiler optimization bug when dealing with c-style pointers)

2019-03-10  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/71544
Backport from trunk
* trans-types.c (gfc_typenode_for_spec) Set ts->is_c_interop of
C_PTR and C_FUNPTR.
(create_fn_spec): Mark argument as escaping if ts->is_c_interop is set.

2019-03-10  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/71544
Backport from trunk
* gfortran.dg/c_ptr_tests_19.f90: New test.

From-SVN: r269552

6 years agore PR fortran/87734 (ICE in is_illegal_recursion check for character len= parameter)
Thomas Koenig [Sun, 10 Mar 2019 11:09:30 +0000 (11:09 +0000)] 
re PR fortran/87734 (ICE in is_illegal_recursion check for character len= parameter)

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

PR fortran/87734
Backort from trunk
* symbol.c (gfc_add_procedure): Only throw an error if the
procedure has not been declared either PUBLIC or PRIVATE.
* resolve.c (is_illegal_recursion): Remove an assert().

2019-03-10  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/87734
Backport from trunk
* gfortran.dg/public_private_module_10.f90: New test.

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

6 years agobackport: re PR c++/89585 (GCC 8.3: asm volatile no longer accepted at file scope)
Matthias Klose [Sun, 10 Mar 2019 07:25:13 +0000 (07:25 +0000)] 
backport: re PR c++/89585 (GCC 8.3: asm volatile no longer accepted at file scope)

gcc/cp/

2019-04-10  Matthias Klose  <doko@ubuntu.com>

Backport from the gcc-8 branch
2019-03-07  Jakub Jelinek  <jakub@redhat.com>

PR c++/89585
* parser.c (cp_parser_asm_definition): Parse asm qualifiers even
at toplevel, but diagnose them.

gcc/testsuite/

2019-04-10  Matthias Klose  <doko@ubuntu.com>

Backport from the gcc-8 branch
2019-03-07  Jakub Jelinek  <jakub@redhat.com>

PR c++/89585
* g++.dg/asm-qual-3.C: Adjust expected diagnostics.

From-SVN: r269546

6 years agoDaily bump.
GCC Administrator [Sun, 10 Mar 2019 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269543

6 years agoDaily bump.
GCC Administrator [Sat, 9 Mar 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269518

6 years agoDaily bump.
GCC Administrator [Fri, 8 Mar 2019 00:16:21 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269474

6 years agobackport r268834 from mainline to gcc-7-branch
Xiong Hu Luo [Thu, 7 Mar 2019 01:54:46 +0000 (01:54 +0000)] 
backport r268834 from mainline to gcc-7-branch

Backport r268834 of "Add support for the vec_sbox_be, vec_cipher_be etc."
from mainline to gcc-7-branch.

gcc/ChangeLog:
2019-03-07  Xiong Hu Luo  <luoxhu@linux.ibm.com>

Backport of r268834 from mainline to gcc-7-branch.
2019-02-13  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>

* config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
* config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
(crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
* config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
(VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
New BU_CRYPTO_2.
* config/rs6000/rs6000.c (builtin_function_type)
<CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
* doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
vec_ncipher_be, vec_ncipherlast_be): New builtin functions.

gcc/testsuite/ChangeLog:
2019-03-07  Xiong Hu Luo  <luoxhu@linux.ibm.com>

Backport of r268834 from mainline to gcc-7-branch.
2019-01-23  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>

* gcc.target/powerpc/crypto-builtin-1.c
(crypto1_be, crypto2_be, crypto3_be, crypto4_be, crypto5_be):
New testcases.

From-SVN: r269450

6 years agoDaily bump.
GCC Administrator [Thu, 7 Mar 2019 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269446

6 years agore PR fortran/72714 ([Coarray] ICE in gfc_array_init_size, at fortran/trans-array...
Thomas Koenig [Wed, 6 Mar 2019 20:28:22 +0000 (20:28 +0000)] 
re PR fortran/72714 ([Coarray] ICE in gfc_array_init_size, at fortran/trans-array.c:5235)

2019-03-06  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/72714
Backport from trunk
* resolve.c (resolve_allocate_expr): Add some tests for coarrays.

2019-03-06  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/72714
Backport from trunk
* gfortran.dg/coarray_allocate_11.f90: New test.

From-SVN: r269441

6 years agoDaily bump.
GCC Administrator [Wed, 6 Mar 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269407

6 years agoDaily bump.
GCC Administrator [Tue, 5 Mar 2019 00:16:18 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269379

6 years agoDaily bump.
GCC Administrator [Mon, 4 Mar 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269358

6 years agobackport: re PR fortran/77583 (ICE in pp_quoted_string, at pretty-print.c:966)
Harald Anlauf [Sun, 3 Mar 2019 20:36:12 +0000 (20:36 +0000)] 
backport: re PR fortran/77583 (ICE in pp_quoted_string, at pretty-print.c:966)

2019-03-03  Harald Anlauf  <anlauf@gmx.de>
    Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk
PR fortran/77583
* symbol.c (check_conflict): Check for valid procedure name
passed to error reporting routine.

PR fortran/77583
* gfortran.dg/pr77583.f90: New test.

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

6 years agore PR fortran/87689 (PowerPC64 ELFv2 function parameter passing violation)
Thomas Koenig [Sun, 3 Mar 2019 09:20:09 +0000 (09:20 +0000)] 
re PR fortran/87689 (PowerPC64 ELFv2 function parameter passing violation)

2019-03-03  Thomas Koenig  <tkoenig@gcc.gnu.org>

    PR fortran/87689
    Backport from trunk
    * trans-decl.c (gfc_get_extern_function_decl): Add argument
    actual_args and pass it through to gfc_get_function_type.
    * trans-expr.c (conv_function_val): Add argument actual_args
    and pass it on to gfc_get_extern_function_decl.
    (conv_procedure_call): Pass actual arguments to conv_function_val.
    * trans-types.c (get_formal_from_actual_arglist): New function.
    (gfc_get_function_type): Add argument actual_args.  Generate
    formal args from actual args if necessary.
    * trans-types.h (gfc_get_function_type): Add optional argument.
    * trans.h (gfc_get_extern_function_decl): Add optional argument.

2019-03-03  Thomas Koenig  <tkoenig@gcc.gnu.org>

    PR fortran/87689
    Backport from trunk
    * gfortran.dg/lto/20091028-1_0.f90: Add -Wno-lto-type-mismatch to
    options.
    * gfortran.dg/lto/20091028-2_0.f90: Likewise.
    * gfortran.dg/lto/pr87689_0.f: New file.
    * gfortran.dg/lto/pr87689_1.f: New file.
    * gfortran.dg/altreturn_9_0.f90: New file.
    * gfortran.dg/altreturn_9_1.f90: New file.

From-SVN: r269350

6 years agoDaily bump.
GCC Administrator [Sun, 3 Mar 2019 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269345

6 years agoDaily bump.
GCC Administrator [Sat, 2 Mar 2019 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269334

6 years agoDaily bump.
GCC Administrator [Fri, 1 Mar 2019 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269295

6 years agoDaily bump.
GCC Administrator [Thu, 28 Feb 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269268

6 years agore PR target/89397 (ICE in build_call_expr_loc_array at gcc/tree.c:11563 since r229082)
Uros Bizjak [Wed, 27 Feb 2019 19:33:15 +0000 (20:33 +0100)] 
re PR target/89397 (ICE in build_call_expr_loc_array at gcc/tree.c:11563 since r229082)

PR target/89397
* config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
TARGET_SSE in addition to TARGET_SSE_MATH.

(ix86_excess_precision): Ditto.
(ix86_float_exceptions_rounding_supported_p): Ditto.
(use_rsqrt_p): Ditto.
* config/i386/sse.md (rsqrt<mode>2): Ditto.

From-SVN: r269263

6 years agoDaily bump.
GCC Administrator [Wed, 27 Feb 2019 00:16:22 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269237

6 years agore PR ada/81956 (call to null procedure not optimized away)
Eric Botcazou [Tue, 26 Feb 2019 08:12:21 +0000 (08:12 +0000)] 
re PR ada/81956 (call to null procedure not optimized away)

PR ada/81956
Backport from mainline
2017-09-06  Ed Schonberg  <schonberg@adacore.com>

* exp_ch6.adb (Expand_Call_Helper): Do not optimize calls to
null procedures when GNAT coverage is used, so that their (empty)
bodies are properly covered.

2017-09-06  Ed Schonberg  <schonberg@adacore.com>

* exp_ch6.adb (Expand_Call_Helper): Replace call to null
procedure by a single null statement, after evaluating the
actuals that require it.

From-SVN: r269205

6 years agoDaily bump.
GCC Administrator [Tue, 26 Feb 2019 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269199

6 years agoDaily bump.
GCC Administrator [Mon, 25 Feb 2019 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269181

6 years agoDaily bump.
GCC Administrator [Sun, 24 Feb 2019 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269171

6 years agobackport: re PR fortran/88117 (ICE in gimplify_var_or_parm_decl, at gimplify.c:2697)
Paul Thomas [Sat, 23 Feb 2019 18:44:54 +0000 (18:44 +0000)] 
backport: re PR fortran/88117 (ICE in gimplify_var_or_parm_decl, at gimplify.c:2697)

2019-02-23  Paul Thomas  <pault@gcc.gnu.org>

Backport from trunk
PR fortran/88117
* resolve.c (deferred_op_assign): Return if the lhs expression
has the pointer attribute.

2019-02-23  Paul Thomas  <pault@gcc.gnu.org>

Backport from trunk
PR fortran/88117
* gfortran.dg/deferred_character_32.f90 : New test

From-SVN: r269163

6 years agore PR fortran/71066 (ICE in set_loop_bounds, at fortran/trans-array.c:4680)
Thomas Koenig [Sat, 23 Feb 2019 11:49:47 +0000 (11:49 +0000)] 
re PR fortran/71066 (ICE in set_loop_bounds, at fortran/trans-array.c:4680)

2019-02-23  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/71066
Backport from trunk
* trans-decl.c (generate_coarray_sym_init):  For an array
constructor in a DATA statement of a coarray variable, set the
rank to 1 to avoid confusion later on.  If the constructor
contains only one value, use that for initiailizig.

2019-02-23  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/71066
Backport from trunk
* gfortran.dg/coarray_data_1.f90: New test.

From-SVN: r269155

6 years agore PR ada/89349 (segfault when building GCC 7 & 8 branch with GCC master)
Eric Botcazou [Sat, 23 Feb 2019 10:04:41 +0000 (10:04 +0000)] 
re PR ada/89349 (segfault when building GCC 7 & 8 branch with GCC master)

PR ada/89349
Backport from mainline
2018-05-25  Arnaud Charlet  <charlet@adacore.com>

* osint.ads (Unknown_Attributes): No longer pretend this is a constant.
(No_File_Info_Cache): Initialize separately.
* osint.adb (No_File_Info_Cache): Update initializer.

From-SVN: r269154

6 years agoPR libstdc++/89446 fix null pointer dereference in char_traits
Jonathan Wakely [Sat, 23 Feb 2019 01:01:56 +0000 (01:01 +0000)] 
PR libstdc++/89446 fix null pointer dereference in char_traits

PR libstdc++/89446
* include/bits/char_traits.h (__constant_char_array): Check index is
in range before dereferencing.
* testsuite/21_strings/basic_string_view/operators/char/89446.cc:
New test.

From-SVN: r269143

6 years agoDaily bump.
GCC Administrator [Sat, 23 Feb 2019 00:16:18 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269140

6 years agoDaily bump.
GCC Administrator [Fri, 22 Feb 2019 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269083

6 years agoDaily bump.
GCC Administrator [Thu, 21 Feb 2019 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269060

6 years agoDaily bump.
GCC Administrator [Wed, 20 Feb 2019 00:16:31 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269029

6 years agoDaily bump.
GCC Administrator [Tue, 19 Feb 2019 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r269000

6 years agoDaily bump.
GCC Administrator [Mon, 18 Feb 2019 00:16:47 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268975

6 years agoDaily bump.
GCC Administrator [Sun, 17 Feb 2019 00:16:19 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268965

6 years agoDaily bump.
GCC Administrator [Sat, 16 Feb 2019 00:16:22 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268953

6 years agoBackport r268873
Martin Liska [Fri, 15 Feb 2019 10:59:02 +0000 (11:59 +0100)] 
Backport r268873

2019-02-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2019-02-14  Martin Liska  <mliska@suse.cz>

PR rtl-optimization/89242
* dce.c (delete_unmarked_insns): Call free_dominance_info we
process a transformation.
2019-02-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2019-02-14  Martin Liska  <mliska@suse.cz>

PR rtl-optimization/89242
* g++.dg/pr89242.C: New test.

From-SVN: r268938

6 years agoBackport r268762
Martin Liska [Fri, 15 Feb 2019 10:58:49 +0000 (11:58 +0100)] 
Backport r268762

2019-02-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2019-02-11  Martin Liska  <mliska@suse.cz>

PR ipa/89009
* ipa-cp.c (build_toporder_info): Remove usage of a param.
* ipa-inline.c (inline_small_functions): Likewise.
* ipa-pure-const.c (propagate_pure_const): Likewise.
(propagate_nothrow): Likewise.
* ipa-reference.c (propagate): Likewise.
* ipa-utils.c (struct searchc_env): Remove unused field.
(searchc): Always search across AVAIL_INTERPOSABLE.
(ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
the only called IPA pure const can properly not propagate
across interposable boundary.
* ipa-utils.h (ipa_reduced_postorder): Remove param.
2019-02-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2019-02-11  Martin Liska  <mliska@suse.cz>

PR ipa/89009
* g++.dg/ipa/pr89009.C: New test.

From-SVN: r268937

6 years ago* gcc.target/sparc/struct-ret-check-1.c: Add -fno-pie option.
Eric Botcazou [Fri, 15 Feb 2019 10:56:13 +0000 (10:56 +0000)] 
* gcc.target/sparc/struct-ret-check-1.c: Add -fno-pie option.

From-SVN: r268936

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

From-SVN: r268918

6 years agoDaily bump.
GCC Administrator [Thu, 14 Feb 2019 00:16:23 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268857

6 years agoDaily bump.
GCC Administrator [Wed, 13 Feb 2019 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268831

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

From-SVN: r268786

6 years agoARM: fix -masm-syntax-unified (PR88648)
Stefan Agner [Mon, 11 Feb 2019 09:31:13 +0000 (10:31 +0100)] 
ARM: fix -masm-syntax-unified (PR88648)

Backport from mainline.
2019-01-10  Stefan Agner  <stefan@agner.ch>

PR target/88648
* config/arm/arm.c (arm_option_override_internal): Force
opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.

* gcc.target/arm/pr88648-asm-syntax-unified.c: Add test to
check if -masm-syntax-unified gets applied properly.

From-SVN: r268765

6 years agoDaily bump.
GCC Administrator [Mon, 11 Feb 2019 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268756

6 years agobackport: re PR fortran/89077 (ICE using * as len specifier for character parameter)
Harald Anlauf [Sun, 10 Feb 2019 20:05:34 +0000 (20:05 +0000)] 
backport: re PR fortran/89077 (ICE using * as len specifier for character parameter)

2019-02-10  Harald Anlauf  <anlauf@gmx.de>

Backport from trunk
PR fortran/89077
* decl.c (add_init_expr_to_sym): Copy length of string initializer
to declared symbol.

PR fortran/89077
* gfortran.dg/pr89077.f90: New test.

From-SVN: r268753

6 years agore PR fortran/71723 ([F08] ICE on invalid pointer initialization)
Thomas Koenig [Sun, 10 Feb 2019 18:41:03 +0000 (18:41 +0000)] 
re PR fortran/71723 ([F08] ICE on invalid pointer initialization)

2019-02-10  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/71723
Backport from trunk
* expr.c (gfc_check_assign): Add argument is_init_expr.  If we are
looking at an init expression, issue error if the target is not a
TARGET and we are not looking at a procedure pointer.
* gfortran.h (gfc_check_assign): Add optional argument
is_init_expr.

2019-02-10  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/71723
Backport from trunk
* gfortran.dg/pointer_init_2.f90: Adjust error messages.
* gfortran.dg/pointer_init_6.f90: Likewise.
* gfortran.dg/pointer_init_9.f90: New test.

From-SVN: r268751

6 years agoDaily bump.
GCC Administrator [Sun, 10 Feb 2019 00:16:25 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268733

6 years agore PR fortran/71860 ([OOP] ICE on pointing to null(mold), verify_gimple failed)
Thomas Koenig [Sat, 9 Feb 2019 20:09:56 +0000 (20:09 +0000)] 
re PR fortran/71860 ([OOP] ICE on pointing to null(mold), verify_gimple failed)

2019-02-09  Thomas Koenig  <tkoenig@gcc.gnu.org>

    PR fortran/71860
    Backport from trunk
    * gfortran.dg/null_10.f90: New test.

From-SVN: r268731

6 years ago[RS6000] Correct save_reg_p
Alan Modra [Sat, 9 Feb 2019 12:44:02 +0000 (23:14 +1030)] 
[RS6000] Correct save_reg_p

PR target/88343
* config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Match
logic in rs6000_emit_prologue emitting pic_offset_table setup.

From-SVN: r268722

6 years agoDaily bump.
GCC Administrator [Sat, 9 Feb 2019 00:16:21 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268710

6 years agoFix function name
Eric Botcazou [Fri, 8 Feb 2019 11:22:53 +0000 (11:22 +0000)] 
Fix function name

From-SVN: r268677

6 years agotrans.c (Regular_Loop_to_gnu): Replace tests on individual flag_unswitch_loops and...
Eric Botcazou [Fri, 8 Feb 2019 11:08:07 +0000 (11:08 +0000)] 
trans.c (Regular_Loop_to_gnu): Replace tests on individual flag_unswitch_loops and flag_tree_loop_vectorize...

* gcc-interface/trans.c (Regular_Loop_to_gnu): Replace tests on
individual flag_unswitch_loops and flag_tree_loop_vectorize switches
with test on global optimize switch.
(Raise_Error_to_gnu): Likewise.

From-SVN: r268673

6 years agobackport: re PR target/85755 (PowerPC Gcc's -mupdate produces inefficient code on...
Eric Botcazou [Fri, 8 Feb 2019 10:37:15 +0000 (10:37 +0000)] 
backport: re PR target/85755 (PowerPC Gcc's -mupdate produces inefficient code on power8/power9 machines)

Backport from mainline
2018-06-11  Segher Boessenkool  <segher@kernel.crashing.org>

PR target/85755
* config/rs6000/rs6000.md (*movdi_internal32): Put constraint modifiers
on the correct operand.
(*movdi_internal64): Ditto.

From-SVN: r268670