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

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

From-SVN: r268223

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

From-SVN: r268172

6 years agore PR target/88938 (ICE in extract_insn, at recog.c:2304)
Uros Bizjak [Tue, 22 Jan 2019 16:35:53 +0000 (17:35 +0100)] 
re PR target/88938 (ICE in extract_insn, at recog.c:2304)

PR target/88938
* config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
case IX86_BUILTIN_BEXTRI64]: Sanitize operands.

testsuite/ChangeLog:

PR target/88938
* gcc.target/i386/pr88938.c: New test.

From-SVN: r268157

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

From-SVN: r268132

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

From-SVN: r268108

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

From-SVN: r268099

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

From-SVN: r268087

6 years agoalpha.c (alpha_gimplify_va_arg): Handle split indirect COMPLEX_TYPE arguments.
Uros Bizjak [Fri, 18 Jan 2019 16:46:47 +0000 (17:46 +0100)] 
alpha.c (alpha_gimplify_va_arg): Handle split indirect COMPLEX_TYPE arguments.

* config/alpha/alpha.c (alpha_gimplify_va_arg):
Handle split indirect COMPLEX_TYPE arguments.

From-SVN: r268081

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

From-SVN: r268051

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

From-SVN: r267997

6 years agoFix diagnostics for never-defined inline and nested functions (PR c/88720, PR c/88726).
Joseph Myers [Wed, 16 Jan 2019 21:40:33 +0000 (21:40 +0000)] 
Fix diagnostics for never-defined inline and nested functions (PR c/88720, PR c/88726).

Bugs 88720 and 88726 report issues where a function is declared inline
in an inner scope, resulting in spurious diagnostics about it being
declared but never defined when that scope is left (possibly in some
cases also wrongly referring to the function as a nested function).
These are regressions that were introduced with the support for C99
inline semantics in 4.3 (they don't appear with 4.2; it's possible
some aspects of the bugs might have been introduced later than 4.3).

For the case of functions being wrongly referred to as nested,
DECL_EXTERNAL was not the right condition for a function being
non-nested; TREE_PUBLIC is appropriate for the case of non-nested
functions with external linkage, while !b->nested means this is the
outermost scope in which the function was declared and so avoids
catching the case of a file-scope static being redeclared inline
inside a function.

For the non-nested, external-linkage case, the code attempts to avoid
duplicate diagnostics by diagnosing only when scope != external_scope,
but actually scope == external_scope is more appropriate, as it's only
when the file and external scopes are popped that the code can
actually tell whether a function ended up being defined, and all such
functions will appear in the (GCC-internal) external scope.

Bootstrapped with no regressions on x86_64-pc-linux-gnu.

gcc/c:
Backport from mainline
2019-01-07  Joseph Myers  <joseph@codesourcery.com>

PR c/88720
PR c/88726
* c-decl.c (pop_scope): Use TREE_PUBLIC and b->nested to determine
whether a function is nested, not DECL_EXTERNAL.  Diagnose inline
functions declared but never defined only for external scope, not
for other scopes.

gcc/testsuite:
Backport from mainline
2019-01-07  Joseph Myers  <joseph@codesourcery.com>

PR c/88720
PR c/88726
* gcc.dg/inline-40.c, gcc.dg/inline-41.c: New tests.

From-SVN: r267987

6 years ago[PR 88214] Check that an argument is a pointer
Martin Jambor [Wed, 16 Jan 2019 15:41:07 +0000 (16:41 +0100)] 
[PR 88214] Check that an argument is a pointer

2019-01-16  Martin Jambor  <mjambor@suse.cz>

Backported from mainline
2018-12-10  Martin Jambor  <mjambor@suse.cz>

PR ipa/88214
* ipa-prop.c (determine_locally_known_aggregate_parts): Make sure
we check pointers against pointers.

testsuite/
* gcc.dg/ipa/pr88214.c: New test.

From-SVN: r267975

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

From-SVN: r267959

6 years agore PR fortran/81849 (Size of automatic array argument specified by host-associated...
Steven G. Kargl [Tue, 15 Jan 2019 20:53:13 +0000 (20:53 +0000)] 
re PR fortran/81849 (Size of automatic array argument specified by host-associated  variable.)

2019-01-15  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/81849
* resolve.c (resolve_symbol): Host associated varaibles can appear
in the specification statement of a RESULT array.

2019-01-15  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/81849
* gfortran.dg/pr81849.f90: New test.

From-SVN: r267952

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

From-SVN: r267927

6 years agore PR libfortran/88776 (Namelist read from stdin: loss of data)
Jerry DeLisle [Mon, 14 Jan 2019 01:12:27 +0000 (01:12 +0000)] 
re PR libfortran/88776 (Namelist read from stdin: loss of data)

2019-01-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/88776
* io/list_read.c (namelist_read): Use nml_err_ret path on read error
not based on stdin_unit.
* io/open.c (newunit): Free format buffer if the unit specified is for
stdin, stdout, or stderr.

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

From-SVN: r267911

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

From-SVN: r267907

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

From-SVN: r267899

6 years agore PR fortran/35031 (ELEMENTAL procedure with BIND(C))
Steven G. Kargl [Sat, 12 Jan 2019 00:33:01 +0000 (00:33 +0000)] 
re PR fortran/35031 (ELEMENTAL procedure with BIND(C))

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

PR fortran/35031
* decl.c (gfc_match_entry): Check for F2018:C1546.  Fix nearby
mis-indentation.

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

PR fortran/35031
* gfortran.dg/pr35031.f90: new test.

From-SVN: r267874

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

From-SVN: r267870

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

From-SVN: r267826

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

From-SVN: r267790