]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
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

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

From-SVN: r268660

6 years ago* s-linux-sparc.ads (ETIMEDOUT): Set to correct value.
Eric Botcazou [Thu, 7 Feb 2019 16:29:48 +0000 (16:29 +0000)] 
* s-linux-sparc.ads (ETIMEDOUT): Set to correct value.

From-SVN: r268654

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

From-SVN: r268599

6 years agobackport: decl.c (annotate_value): Tidy up.
Eric Botcazou [Wed, 6 Feb 2019 23:28:34 +0000 (23:28 +0000)] 
backport: decl.c (annotate_value): Tidy up.

Backport from mainline
2017-09-05  Eric Botcazou  <ebotcazou@adacore.com>

* gcc-interface/decl.c (annotate_value): Tidy up.
<INTEGER_CST>: Set TCODE instead of recursing.
<COMPONENT_REF>: Set TCODE instead of calling Create_Node manually.
<MULT_EXPR, PLUS_EXPR>: Fold conversions into inner operations.
<BIT_AND_EXPR>: Adjust.
<CALL_EXPR>: Do not fall through.

From-SVN: r268598

6 years agobackport: rs6000-c.c (altivec-resolve_overloaded_builtin): Change handling of ALTIVEC...
Kelvin Nilsen [Wed, 6 Feb 2019 21:35:44 +0000 (21:35 +0000)] 
backport: rs6000-c.c (altivec-resolve_overloaded_builtin): Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT.

gcc/ChangeLog:

2019-02-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>

Backport from mainline.
2019-01-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
* config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT.  Coerce result to
type of vector element when vec_extract is implemented by direct
move.

gcc/testsuite/ChangeLog:

2019-02-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>

2019-02-05  Kelvin Nilsen  <kelvin@gcc.gnu.org>
* gcc.target/powerpc/vec-extract-slong-1.c: Require p8 execution
hardware.
* gcc.target/powerpc/vec-extract-schar-1.c: Likewise.
* gcc.target/powerpc/vec-extract-sint128-1.c: Likewise.
* gcc.target/powerpc/vec-extract-sshort-1.c: Likewise.
* gcc.target/powerpc/vec-extract-ulong-1.c: Likewise.
* gcc.target/powerpc/vec-extract-uchar-1.c: Likewise.
* gcc.target/powerpc/vec-extract-sint-1.c: Likewise.
* gcc.target/powerpc/vec-extract-uint128-1.c: Likewise.
* gcc.target/powerpc/vec-extract-ushort-1.c: Likewise.
* gcc.target/powerpc/vec-extract-uint-1.c: Likewise.

Backport from mainline.
2019-01-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
* gcc.target/powerpc/vec-extract-schar-1.c: New test.
* gcc.target/powerpc/vec-extract-sint-1.c: New test.
* gcc.target/powerpc/vec-extract-sint128-1.c: New test.
* gcc.target/powerpc/vec-extract-slong-1.c: New test.
* gcc.target/powerpc/vec-extract-sshort-1.c: New test.
* gcc.target/powerpc/vec-extract-uchar-1.c: New test.
* gcc.target/powerpc/vec-extract-uint-1.c: New test.
* gcc.target/powerpc/vec-extract-uint128-1.c: New test.
* gcc.target/powerpc/vec-extract-ulong-1.c: New test.
* gcc.target/powerpc/vec-extract-ushort-1.c: New test.

From-SVN: r268596

6 years agoi386.c (ix86_expand_prologue): Emit a memory blockage after restoring registers saved...
Eric Botcazou [Wed, 6 Feb 2019 21:10:19 +0000 (21:10 +0000)] 
i386.c (ix86_expand_prologue): Emit a memory blockage after restoring registers saved to allocate the frame on...

* config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
after restoring registers saved to allocate the frame on Windows.

From-SVN: r268595

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

From-SVN: r268568

6 years agore PR fortran/67679 (-Wunitialized reports on compiler-generated variables)
Thomas Koenig [Tue, 5 Feb 2019 21:23:07 +0000 (21:23 +0000)] 
re PR fortran/67679 (-Wunitialized reports on compiler-generated variables)

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

PR fortran/67679
Backport from trunk
* trans-array.c (gfc_array_allocate):  For setting the bounds on
the new array, add a condition for a not previously allocated
variable.

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

PR fortran/67679
Backport from trunk
* gfortran.dg/warn_undefined_1.f90: New test.
* gfortran.dg/coarray_lock_7.f90: Fix patterns in test.

From-SVN: r268560

6 years agoS/390: Remove load and test fp splitter
Andreas Krebbel [Tue, 5 Feb 2019 17:19:26 +0000 (17:19 +0000)] 
S/390: Remove load and test fp splitter

gcc/ChangeLog:

2019-02-05  Andreas Krebbel  <krebbel@linux.ibm.com>

Backport from mainline
2019-02-05  Andreas Krebbel  <krebbel@linux.ibm.com>

PR target/88856
* config/s390/s390.md: Remove load and test FP splitter.

From-SVN: r268552

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

From-SVN: r268526

6 years agobackport: [multiple changes]
Bill Schmidt [Mon, 4 Feb 2019 16:48:30 +0000 (16:48 +0000)] 
backport: [multiple changes]

2019-02-04  Bill Schmidt  <wshmidt@linux.ibm.com>

PR target/87064
Backport from mainline

2019-01-30  Bill Schmidt  <wschmidt@linux.ibm.com>

PR target/87064
* config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
Disable for little-endian.

2019-01-22  Jakub Jelinek  <jakub@redhat.com>

PR target/87064
* config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
Disable for little endian.

From-SVN: r268524

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

From-SVN: r268505

6 years agobackport: re PR fortran/88393 ([OOP] Segfault with type-bound assignment)
Paul Thomas [Sun, 3 Feb 2019 18:23:25 +0000 (18:23 +0000)] 
backport: re PR fortran/88393 ([OOP] Segfault with type-bound assignment)

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

Backport from trunk
PR fortran/88393
* trans-expr.c (gfc_conv_procedure_call): For derived entities,
passed in parentheses to class formals, invert the order of
copying allocatable components to taking the _data of the
class expression.

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

Backport from trunk
PR fortran/88393
* gfortran.dg/alloc_comp_assign_16.f03 : New test.

From-SVN: r268501

6 years agore PR fortran/88678 (Many gfortran.dg/ieee/ieee_X.f90 test cases fail starting with...
Uros Bizjak [Sun, 3 Feb 2019 16:21:06 +0000 (17:21 +0100)] 
re PR fortran/88678 (Many gfortran.dg/ieee/ieee_X.f90 test cases fail starting with r267465)

2019-02-03  Uroš Bizjak  <ubizjak@gmail.com>

PR libfortran/88678
Revert:
2016-11-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>

PR libfortran/78314
* config/fpu-glibc.h (support_fpu_trap): Use feenableexcept.

2019-02-03  Uroš Bizjak  <ubizjak@gmail.com>

PR libfortran/88678
* config/fpu-glibc.h (set_fpu_trap_exceptions): Clear stalled
exception flags before changing trap mode.  Optimize to call
feenableexcept and fedisableexcept only once.

From-SVN: r268493

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

From-SVN: r268481

6 years agore PR fortran/88298 (Bogus conversion warning for CSHIFT with -fno-range-check -m64)
Thomas Koenig [Sat, 2 Feb 2019 17:07:40 +0000 (17:07 +0000)] 
re PR fortran/88298 (Bogus conversion warning for CSHIFT with -fno-range-check -m64)

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

PR fortran/88298
Backport from trunk
* arith.c (gfc_int2int): Do not warn if src->do_not_warn is set.
* gfortran.h (gfc_expr): Add flag do_not_warn.
* intrinsic.c (gfc_convert_type_warn): Set expr->do_not_warn if
no warning is desired.

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

PR fortran/88298
Backport from trunk
* gfortran.dg/warn_conversion_10.f90: New test.

From-SVN: r268479

6 years agore PR fortran/57048 (Handling of C_PTR and C_FUNPTR leads to reject valid)
Thomas Koenig [Sat, 2 Feb 2019 16:57:39 +0000 (16:57 +0000)] 
re PR fortran/57048 (Handling of C_PTR and C_FUNPTR leads to reject valid)

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

PR fortran/57048
Backport from trunk
* interface.c (gfc_compare_types): If a derived type and an
integer both have a derived type, and they are identical,
this is a C binding type and compares equal.

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

PR fortran/57048
Backport from trunk
* gfortran.dg/c_funptr_1.f90: New file.
* gfortran.dg/c_funptr_1_mod.f90: New file.

From-SVN: r268478

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

From-SVN: r268467

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

From-SVN: r268435

6 years agobackport: re PR middle-end/89008 (O2 and O1 results differ for simple test)
Bill Schmidt [Thu, 31 Jan 2019 21:55:45 +0000 (21:55 +0000)] 
backport: re PR middle-end/89008 (O2 and O1 results differ for simple test)

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

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

PR tree-optimization/89008
* gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
process anything of the form X * 0.

From-SVN: r268431

6 years agobackport: [multiple changes]
Richard Biener [Thu, 31 Jan 2019 12:05:19 +0000 (12:05 +0000)] 
backport: [multiple changes]

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

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

PR rtl-optimization/89115
* lra.c (lra_rtx_hash): Properly hash CONST_INT values.

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

PR rtl-optimization/89115
* opts.c (default_options_optimization): Reduce
PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
to the default.

From-SVN: r268418

6 years agoDaily bump.
GCC Administrator [Thu, 31 Jan 2019 00:16:17 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268408

6 years agopr68318_1.f90: Fix a dg directive.
Manfred Schwarb [Wed, 30 Jan 2019 15:07:38 +0000 (16:07 +0100)] 
pr68318_1.f90: Fix a dg directive.

2019-01-30  Manfred Schwarb  <manfred99@gmx.ch>

* gfortran.dg/pr68318_1.f90: Fix a dg directive.

From-SVN: r268393

6 years agobackport: [multiple changes]
Kewen Lin [Wed, 30 Jan 2019 08:18:05 +0000 (08:18 +0000)] 
backport: [multiple changes]

2019-01-30  Kewen Lin  <linkw@gcc.gnu.org>
    Backport from mainline.
    gcc/

        2019-01-17  Kewen Lin  <linkw@gcc.gnu.org>
        * doc/extend.texi: Add four new prototypes for vec_ld and seven new
        prototypes for vec_st.
        * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
        for scalar address type variants of altivec_vec_ld/altivec_vec_st,
        mainly on signed/unsigned long long and double.

    gcc/testsuite/

        2019-01-20  Kewen Lin  <linkw@gcc.gnu.org>
        * gcc.target/powerpc/altivec_vld_vst_addr.c: Remove, split into
        altivec_vld_vst_addr-1.c and altivec_vld_vst_addr-2.c.
        * gcc.target/powerpc/altivec_vld_vst_addr-1.c: New test.
        * gcc.target/powerpc/altivec_vld_vst_addr-2.c: Ditto.

        2019-01-17  Kewen Lin  <linkw@gcc.gnu.org>
        * gcc.target/powerpc/altivec_vld_vst_addr.c: New test.

From-SVN: r268383

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

From-SVN: r268373

6 years agoDaily bump.
GCC Administrator [Tue, 29 Jan 2019 00:16:20 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268351

6 years agoDaily bump.
GCC Administrator [Mon, 28 Jan 2019 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268328

6 years agore PR fortran/70696 ([Coarray] ICE on EVENT POST of host-associated EVENT_TYPE coarray)
Uros Bizjak [Sun, 27 Jan 2019 20:53:30 +0000 (21:53 +0100)] 
re PR fortran/70696 ([Coarray] ICE on EVENT POST of host-associated EVENT_TYPE coarray)

PR fortran/70696
* gfortran.dg/coarray/event_3.f0: Add save attribue to x.

From-SVN: r268327

6 years agoBackport PRs 56386, 58906, 77385, 80260, 82077
Paul Thomas [Sun, 27 Jan 2019 18:53:47 +0000 (18:53 +0000)] 
Backport PRs 56386, 58906, 77385, 80260, 82077

2019-01-27  Paul Thomas  <pault@gcc.gnu.org>

Backport from trunk
PR fortran/56386
PR fortran/58906
PR fortran/77385
PR fortran/80260
PR fortran/82077
* resolve.c (resolve_variable): Fix up expressions with array
associate names, where the parser did not detect that this is
array and there was no array part_ref in the expression.
* trans-expr.c (gfc_find_and_cut_at_last_class_ref): base_expr
should be a copy of e and not the initialization expr.

2019-01-27  Paul Thomas  <pault@gcc.gnu.org>

Backport from trunk
PR fortran/56386
PR fortran/58906
PR fortran/77385
* gfortran.dg/associate_44.f90 : New test.

PR fortran/80260
* gfortran.dg/select_type_45.f90 : New test.

PR fortran/82077
* gfortran.dg/select_type_46.f90 : New test.

From-SVN: r268317

6 years agodecl.c (array_type_has_nonaliased_component): Return the same value for every dimensi...
Eric Botcazou [Sun, 27 Jan 2019 18:16:23 +0000 (18:16 +0000)] 
decl.c (array_type_has_nonaliased_component): Return the same value for every dimension of a multidimensional array type.

* gcc-interface/decl.c (array_type_has_nonaliased_component): Return
the same value for every dimension of a multidimensional array type.

From-SVN: r268316

6 years agore PR rtl-optimization/88948 (ICE in elimination_costs_in_insn, at reload1.c:3640...
Uros Bizjak [Sun, 27 Jan 2019 17:42:58 +0000 (18:42 +0100)] 
re PR rtl-optimization/88948 (ICE in elimination_costs_in_insn, at reload1.c:3640 since r264148)

PR target/88948
* rtl.h (prepare_copy_insn): New prototype.
* gcse.c (prepare_copy_insn): New function, split out from
process_insert_insn.
(process_insert_insn): Use prepare_copy_insn.
* store-motion.c (replace_store_insn): Use prepare_copy_insn
instead of gen_move_insn.

testsuite/ChangeLog:

PR target/88948
* gcc.target/i386/pr88948.c: New test.

From-SVN: r268312

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

From-SVN: r268306

6 years agotrans.c (gnat_to_gnu): Use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT for the size...
Eric Botcazou [Sat, 26 Jan 2019 16:03:42 +0000 (16:03 +0000)] 
trans.c (gnat_to_gnu): Use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT for the size to be assigned by a...

* gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Use
DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT for the size to be assigned
by a call to memset if the LHS is a DECL.

From-SVN: r268298

6 years agore PR fortran/85579 (accepts invalid fortran test case gfortran.dg/pr51434.f90)
Dominique d'Humieres [Sat, 26 Jan 2019 15:25:45 +0000 (16:25 +0100)] 
re PR fortran/85579 (accepts invalid fortran test case gfortran.dg/pr51434.f90)

2019-01-26  Dominique d'Humieres  <dominiq@gcc.gnu.org>

PR fortran/85579
* gfortran.dg/pr51434.f90: Fix the TRANSFER argument.

From-SVN: r268295

6 years ago2019-01-26 Manfred Schwarb <manfred99@gmx.ch>
Manfred Schwarb [Sat, 26 Jan 2019 15:09:52 +0000 (16:09 +0100)] 
2019-01-26  Manfred Schwarb  <manfred99@gmx.ch>

* gfortran.dg/array_function_5.f90
* gfortran.dg/class_66.f90
* gfortran.dg/dec_structure_12.f90
* gfortran.dg/dec_structure_14.f90
* gfortran.dg/dec_structure_15.f90
* gfortran.dg/extends_11.f03
* gfortran.dg/pr58968.f
* gfortran.dg/pr78259.f90
* gfortran.dg/debug/pr35154-stabs.f

From-SVN: r268294

6 years agotrans.c (struct loop_info_d): Remove artificial field.
Eric Botcazou [Sat, 26 Jan 2019 12:03:12 +0000 (12:03 +0000)] 
trans.c (struct loop_info_d): Remove artificial field.

* gcc-interface/trans.c (struct loop_info_d): Remove artificial field.
(Loop_Statement_to_gnu): Do not set it.

From-SVN: r268292

6 years agodecl.c (annotate_value): Use test on the sign bit instead of on the sign of the value.
Eric Botcazou [Sat, 26 Jan 2019 11:36:05 +0000 (11:36 +0000)] 
decl.c (annotate_value): Use test on the sign bit instead of on the sign of the value.

* gcc-interface/decl.c (annotate_value) <INTEGER_CST>: Use test on
the sign bit instead of on the sign of the value.
<PLUS_EXPR>: Turn addition of negative constant into subtraction.
<BIT_AND_EXPR>: Simplify.

From-SVN: r268288

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

From-SVN: r268282

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

From-SVN: r268254

6 years agore PR target/88998 (bad codegen with mmx instructions for unordered_map)
Uros Bizjak [Thu, 24 Jan 2019 19:14:58 +0000 (20:14 +0100)] 
re PR target/88998 (bad codegen with mmx instructions for unordered_map)

PR target/88998
* config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
Disparage MMX alternative.
(sse2_cvtpd2pi): Ditto.
(sse2_cvttpd2pi): Ditto.

testsuite/ChangeLog:

PR target/88998
* g++.dg/pr88998.c: New test.

From-SVN: r268244

6 years agobackport: re PR middle-end/89008 (O2 and O1 results differ for simple test)
Richard Biener [Thu, 24 Jan 2019 11:07:19 +0000 (11:07 +0000)] 
backport: re PR middle-end/89008 (O2 and O1 results differ for simple test)

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

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

PR tree-optimization/89008
* tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
not leave another stray operand.

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

From-SVN: r268235