]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
7 years agoRemove unused <exception> header from <utility>
Jonathan Wakely [Tue, 19 Jun 2018 17:32:50 +0000 (18:32 +0100)] 
Remove unused <exception> header from <utility>

This header was needed for the declaration of std::terminate but the
calls to it were removed in r242401.

* include/std/utility: Remove unused <exception> header.

From-SVN: r261752

7 years agogimplify.c (gimplify_init_constructor): Really never clear for an incomplete construc...
Eric Botcazou [Tue, 19 Jun 2018 09:46:40 +0000 (09:46 +0000)] 
gimplify.c (gimplify_init_constructor): Really never clear for an incomplete constructor if CONSTRUCTOR_NO_CLEARING is set.

* gimplify.c (gimplify_init_constructor): Really never clear for an
incomplete constructor if CONSTRUCTOR_NO_CLEARING is set.

From-SVN: r261737

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

From-SVN: r261722

7 years agoPR middle-end/82063 - issues with arguments enabled by -Wall
Martin Sebor [Tue, 19 Jun 2018 00:02:30 +0000 (00:02 +0000)] 
PR middle-end/82063 - issues with arguments enabled by -Wall

gcc/ChangeLog:
        PR middle-end/82063
        * calls.c (alloc_max_size): Correct a logic error/typo.
        Treat excessive arguments as infinite.  Warn for invalid arguments.
        * doc/invoke.texi (-Walloc-size-larger-than): Update.

gcc/testsuite/ChangeLog:
        PR middle-end/82063
        * gcc.dg/Walloc-size-larger-than-1.c: New test.
        * gcc.dg/Walloc-size-larger-than-10.c: New test.
        * gcc.dg/Walloc-size-larger-than-11.c: New test.
        * gcc.dg/Walloc-size-larger-than-12.c: New test.
        * gcc.dg/Walloc-size-larger-than-13.c: New test.
        * gcc.dg/Walloc-size-larger-than-14.c: New test.
        * gcc.dg/Walloc-size-larger-than-15.c: New test.
        * gcc.dg/Walloc-size-larger-than-16.c: New test.
        * gcc.dg/Walloc-size-larger-than-2.c: New test.
        * gcc.dg/Walloc-size-larger-than-3.c: New test.
        * gcc.dg/Walloc-size-larger-than-4.c: New test.
        * gcc.dg/Walloc-size-larger-than-5.c: New test.
        * gcc.dg/Walloc-size-larger-than-6.c: New test.
        * gcc.dg/Walloc-size-larger-than-7.c: New test.
        * gcc.dg/Walloc-size-larger-than-8.c: New test.
        * gcc.dg/Walloc-size-larger-than-9.c: New test.
        * gcc.dg/Walloc-size-larger-than.c: New test.

From-SVN: r261720

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

From-SVN: r261693

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

From-SVN: r261684

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

From-SVN: r261672

7 years agoPR libstdc++/86169 unshare COW string when non-const data() called
Jonathan Wakely [Fri, 15 Jun 2018 19:19:04 +0000 (20:19 +0100)] 
PR libstdc++/86169 unshare COW string when non-const data() called

PR libstdc++/86169
* include/bits/basic_string.h [!_GLIBCXX_USE_CXX11_ABI]
(basic_string::data()): Unshare string.
* testsuite/21_strings/basic_string/operations/data/char/86169.cc:
New.

From-SVN: r261646

7 years agoOnly define __cpp_lib_constexpr_char_traits for C++17
Jonathan Wakely [Fri, 15 Jun 2018 16:42:57 +0000 (17:42 +0100)] 
Only define __cpp_lib_constexpr_char_traits for C++17

* include/bits/char_traits.h (__cpp_lib_constexpr_char_traits): Only
define for C++17 and above.

From-SVN: r261637

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

From-SVN: r261615

7 years agoRTEMS: Prefer int for int32_t
Sebastian Huber [Thu, 14 Jun 2018 05:19:35 +0000 (05:19 +0000)] 
RTEMS: Prefer int for int32_t

Common systems like glibc and FreeBSD define int32_t to int.  This means
a lot of third party code works well in these cases:

  #include <stdint.h>

  void f(int32_t);

  void f(int);

  void g(int32_t *);

  void h(void)
  {
    int i;
    g(&i);
  }

On RTEMS you got however in C

  test.c:5:6: error: conflicting types for 'f'
    void f(int);
        ^
  test.c:3:6: note: previous declaration of 'f' was here
    void f(int32_t);
        ^
  test.c: In function 'h':
  test.c:12:4: warning: passing argument 1 of 'g' from incompatible
  pointer type [-Wincompatible-pointer-types]
    g(&i);
      ^
  test.c:7:6: note: expected 'int32_t * {aka long int *}' but argument
  is of type 'int *' void g(int32_t *);

and C++

  test.c: In function 'void h()':
  test.c:12:4: error: invalid conversion from 'int*' to 'int32_t* {aka
  long int*}' [-fpermissive]
    g(&i);
      ^~
  test.c:7:6: note:   initializing argument 1 of 'void g(int32_t*)'
    void g(int32_t *);
      ^

This was due to a Newlib speciality which uses long for int32_t if long
is a 32-bit type.  To ease the use of third party software in RTEMS we
override this Newlib option now and use int for int32_t if int is a
32-bit type.

gcc/
* config/rtems.h (STDINT_LONG32): Define.

From-SVN: r261584

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

From-SVN: r261578

7 years agore PR fortran/86110 (ICE in gfc_resolve_character_array_constructor, at fortran/array...
Steven G. Kargl [Wed, 13 Jun 2018 22:40:46 +0000 (22:40 +0000)] 
re PR fortran/86110 (ICE in gfc_resolve_character_array_constructor, at fortran/array.c:2044)

2018-06-13  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/86110
* array.c (gfc_resolve_character_array_constructor): Avoid NULL
pointer dereference.

2018-06-13  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/86110
* gfortran.dg/pr86110.f90: New test.

From-SVN: r261575

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

From-SVN: r261533

7 years agoPR c++/85815 - reference to member of enclosing template.
Jason Merrill [Tue, 12 Jun 2018 19:53:10 +0000 (15:53 -0400)] 
PR c++/85815 - reference to member of enclosing template.

* parser.c (cp_parser_postfix_dot_deref_expression): Check
currently_open_class.

From-SVN: r261524

7 years agoPR c++/86060 - ICE on range for with -std=c++98.
Jason Merrill [Tue, 12 Jun 2018 19:53:02 +0000 (15:53 -0400)] 
PR c++/86060 - ICE on range for with -std=c++98.

* parser.c (cp_parser_init_statement): Don't clobber *decl after
pedwarn.

From-SVN: r261523

7 years agore PR fortran/44491 (Diagnostic just shows "<During initialization>" instead of a...
Steven G. Kargl [Tue, 12 Jun 2018 18:28:25 +0000 (18:28 +0000)] 
re PR fortran/44491 (Diagnostic just shows "<During initialization>" instead of a locus)

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

PR fortran/44491
* expr.c (gfc_check_assign): Select non-NULL locus.

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

PR fortran/44491
* gfortran.dg/pr44491.f90: New testcase

From-SVN: r261520

7 years agoada-tree.h (TYPE_RETURN_BY_DIRECT_REF_P): Change from using TYPE_LANG_FLAG_4 to using...
Eric Botcazou [Tue, 12 Jun 2018 10:35:05 +0000 (10:35 +0000)] 
ada-tree.h (TYPE_RETURN_BY_DIRECT_REF_P): Change from using TYPE_LANG_FLAG_4 to using TYPE_LANG_FLAG_0.

* gcc-interface/ada-tree.h (TYPE_RETURN_BY_DIRECT_REF_P): Change from
using TYPE_LANG_FLAG_4 to using TYPE_LANG_FLAG_0.
(TYPE_ALIGN_OK): Move around.
(TYPE_PADDING_FOR_COMPONENT): Remove superfluous parentheses.
* gcc-interface/decl.c (change_qualified_type): Move to...
(gnat_to_gnu_entity): Adjust comment.
* gcc-interface/gigi.h (change_qualified_type): ...here; make inline.
(ceil_pow2): Use ceil_log2.
* gcc-interface/utils.c (finish_subprog_decl): Add couple of comments
and do not set TREE_SIDE_EFFECTS.
(handle_noreturn_attribute): Use change_qualified_type.

From-SVN: r261488

7 years agodecl.c (gnat_to_gnu_entity): Do not get the expression of a dispatch table that is...
Eric Botcazou [Tue, 12 Jun 2018 10:20:02 +0000 (10:20 +0000)] 
decl.c (gnat_to_gnu_entity): Do not get the expression of a dispatch table that is not being defined.

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Do not get
the expression of a dispatch table that is not being defined.
<E_Record_Subtype>: Remove obsolete kludge.

From-SVN: r261485

7 years agoBackpor from mainline
Eric Botcazou [Tue, 12 Jun 2018 10:09:20 +0000 (10:09 +0000)] 
Backpor from mainline
2018-06-02  Eric Botcazou  <ebotcazou@adacore.com>

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: If this is
not a definition, retrieve the expression only if it's a compile-time
known value if we are just annotating types.

* gcc-interface/utils.c (convert): Do not try to upcast properly for a
conversion between tagged types in type_annotate_only mode.

From-SVN: r261482

7 years agobackport: decl.c (gnat_to_gnu_entity): Reuse the existing fields of a dummy fat point...
Eric Botcazou [Tue, 12 Jun 2018 09:31:48 +0000 (09:31 +0000)] 
backport: decl.c (gnat_to_gnu_entity): Reuse the existing fields of a dummy fat pointer type, if any.

Backport from mainline
2018-06-11  Eric Botcazou  <ebotcazou@adacore.com>

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Reuse the
existing fields of a dummy fat pointer type, if any.  Clear the
TYPE_DECL_SUPPRESS_DEBUG on the fat pointer type after completing it.

From-SVN: r261478

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

From-SVN: r261470

7 years agobackport: re PR target/85755 (PowerPC Gcc's -mupdate produces inefficient code on...
Peter Bergner [Mon, 11 Jun 2018 18:25:37 +0000 (13:25 -0500)] 
backport: re PR target/85755 (PowerPC Gcc's -mupdate produces inefficient code on power8/power9 machines)

gcc/
Backport from mainline
2018-06-08  Peter Bergner  <bergner@vnet.ibm.com>

PR target/85755
* config/rs6000/rs6000.c (mem_operand_gpr): Enable PRE_INC and PRE_DEC
addresses.

gcc/testsuite/
Backport from mainline
2018-06-08  Peter Bergner  <bergner@vnet.ibm.com>

PR target/85755
* gcc.target/powerpc/pr85755.c: New test.

From-SVN: r261442

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

From-SVN: r261391

7 years agoAdd ChangeLog entry
Jerry DeLisle [Sun, 10 Jun 2018 03:10:09 +0000 (03:10 +0000)] 
Add ChangeLog entry

From-SVN: r261385

7 years agobackport: re PR libfortran/86070 (gfortran.dg/fmt_zero_digits.f90 segmentation fault...
Jerry DeLisle [Sun, 10 Jun 2018 03:10:00 +0000 (03:10 +0000)] 
backport: re PR libfortran/86070 (gfortran.dg/fmt_zero_digits.f90 segmentation fault starting with r261077)

2018-06-09  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

Backport from trunk.
PR libgfortran/86070
* io/write_float.def (build_float_string): Initialize *len.

From-SVN: r261384

7 years agoDaily bump.
GCC Administrator [Sun, 10 Jun 2018 00:17:03 +0000 (00:17 +0000)] 
Daily bump.

From-SVN: r261379

7 years agore PR fortran/38351 (Poor error message for rank mismatch in operator args)
Steven G. Kargl [Sat, 9 Jun 2018 21:54:45 +0000 (21:54 +0000)] 
re PR fortran/38351 (Poor error message for rank mismatch in operator args)

2018-06-09  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/38351
* resolve.c (resolve_operator): Provide better error message for
derived type entity used in an binary intrinsic numeric operator.

2018-06-09  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/38351
* gfortran.dg/pr38351.f90: New test.
* gfortran.dg/typebound_operator_4.f03: Adjust for new error message.

From-SVN: r261376

7 years agore PR fortran/63514 (functions containing volatile are considered pure)
Steven G. Kargl [Sat, 9 Jun 2018 20:10:34 +0000 (20:10 +0000)] 
re PR fortran/63514 (functions containing volatile are considered pure)

2018-06-09  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/63514
* symbol.c (gfc_add_volatile): Enforce F2008:C1282 and F2018:C1588.

2018-06-09  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/63514
* gfortran.dg/pr63514.f90: New test.

From-SVN: r261375

7 years agore PR fortran/78278 (ICE in gfc_wide_memset, at fortran/scanner.c:153)
Steven G. Kargl [Sat, 9 Jun 2018 19:57:29 +0000 (19:57 +0000)] 
re PR fortran/78278 (ICE in gfc_wide_memset, at fortran/scanner.c:153)

2018-06-09  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/78278
* data.c (gfc_assign_data_value): Re-arrange code to allow for
an error for double initialization of CHARACTER entities.

2018-06-09  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/78278
* gfortran.dg/data_bounds_1.f90: Add -std=gnu option.
* gfortran.dg/data_char_1.f90: Ditto.
* gfortran.dg/pr78571.f90: Ditto.
* gfortran.dg/pr78278.f90: New test.

From-SVN: r261374

7 years agore PR fortran/86059 (ICE in reduce_binary_ac, at fortran/arith.c:1308 (and others))
Steven G. Kargl [Sat, 9 Jun 2018 18:54:56 +0000 (18:54 +0000)] 
re PR fortran/86059 (ICE in reduce_binary_ac, at fortran/arith.c:1308 (and others))

2018-06-09  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/86059
* array.c (match_array_cons_element): NULL() cannot be in an
array constructor.

2018-06-09  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/86059
* gfortran.dg/associate_30.f90: Remove code tested ...
* gfortran.dg/pr67803.f90: Ditto.
* gfortran.dg/pr67805.f90: Ditto.
* gfortran.dg/pr86059.f90: ... here.  New test.

From-SVN: r261373

7 years agore PR fortran/85138 (ICE with generic function)
Steven G. Kargl [Sat, 9 Jun 2018 18:29:40 +0000 (18:29 +0000)] 
re PR fortran/85138 (ICE with generic function)

2018-06-09  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/85138
PR fortran/85996
PR fortran/86051
* decl.c (gfc_match_char_spec): Use private namespace in attempt to
reduce a charlen to a constant.

2018-06-09  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/85138
PR fortran/85996
PR fortran/86051
* gfortran.dg/pr85138_1.f90: New test.
* gfortran.dg/pr85138_2.f90: Ditto.
* gfortran.dg/pr85996.f90: Ditto.

From-SVN: r261371

7 years agoDaily bump.
GCC Administrator [Sat, 9 Jun 2018 00:16:23 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r261355

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

From-SVN: r261301

7 years agore PR fortran/86045 (ICE in reduce_binary_ac, at fortran/arith.c:1308)
Steven G. Kargl [Thu, 7 Jun 2018 18:39:30 +0000 (18:39 +0000)] 
re PR fortran/86045 (ICE in reduce_binary_ac, at fortran/arith.c:1308)

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

PR fortran/86045
Backport from trunk.
* simplify.c (gfc_simplify_mod): Re-arrange code to test whether
'P' is zero and issue an error if it is.

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

PR fortran/86045
Backport from trunk.
* gfortran.dg/pr86045.f90: New test.

From-SVN: r261291

7 years agore PR fortran/85641 (ICE with string concatenate)
Thomas Koenig [Thu, 7 Jun 2018 18:13:33 +0000 (18:13 +0000)] 
re PR fortran/85641 (ICE with string concatenate)

2018-06-07  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/85641
Backport from trunk.
* frontend-passes.c (is_fe_temp): Add prototype.
(realloc_string_callback): Early return for frontend-generated
temporary.

2018-06-07  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/85641
Backport from trunk.
* gfortran.dg/realloc_on_assign_30.f90: New test.

From-SVN: r261289

7 years agobackport: re PR target/63177 (Powerpc no-vfa-vect-depend-2.c and no-vfa-vect-depend...
Peter Bergner [Thu, 7 Jun 2018 14:01:57 +0000 (09:01 -0500)] 
backport: re PR target/63177 (Powerpc no-vfa-vect-depend-2.c and no-vfa-vect-depend-3.c failures)

Backport from mainline
2018-06-06  Peter Bergner  <bergner@vnet.ibm.com>

PR target/63177
* /config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mpower9.
Don't handle -mcpu=power8 if -mpower9-vector is also used.

From-SVN: r261276

7 years agobackport: re PR sanitizer/84761 (AddressSanitizer is not compatible with glibc 2...
Richard Biener [Thu, 7 Jun 2018 11:56:25 +0000 (11:56 +0000)] 
backport: re PR sanitizer/84761 (AddressSanitizer is not compatible with glibc 2.27 on x86)

2018-06-07  Richard Biener  <rguenther@suse.de>

Backport from mainline
2018-03-19  Jakub Jelinek  <jakub@redhat.com>

PR sanitizer/84761
* sanitizer_common/sanitizer_linux_libcdep.cc (__GLIBC_PREREQ):
Define if not defined.
(DL_INTERNAL_FUNCTION): Don't define.
(InitTlsSize): For __i386__ if not compiled against glibc 2.27+
determine at runtime whether to use regparm(3), stdcall calling
convention for older glibcs or normal calling convention for
newer glibcs for call to _dl_get_tls_static_info.

From-SVN: r261272

7 years agobackport: [multiple changes]
Richard Biener [Thu, 7 Jun 2018 10:10:00 +0000 (10:10 +0000)] 
backport: [multiple changes]

2018-06-07  Richard Biener  <rguenther@suse.de>

Backport from mainline
2018-05-04  Richard Biener  <rguenther@suse.de>

PR middle-end/85588
* fold-const.c (negate_expr_p): Restrict negation of operand
zero of a division to when we know that can happen without
overflow.
(fold_negate_expr_1): Likewise.

* gcc.dg/torture/pr85588.c: New testcase.
* gcc.dg/torture/pr57656.c: Use dg-additional-options.

2018-05-02  Richard Biener  <rguenther@suse.de>

PR middle-end/85567
* gimplify.c (gimplify_save_expr): When in SSA form allow
SAVE_EXPRs to compute to SSA vars.

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

2018-05-02  Richard Biener  <rguenther@suse.de>

PR tree-optimization/85597
* tree-vect-stmts.c (vectorizable_operation): For ternary SLP
do not use split vect_get_vec_defs call but call vect_get_slp_defs
directly.

* gcc.dg/vect/pr85597.c: New testcase.

From-SVN: r261269

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

From-SVN: r261257

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

From-SVN: r261224

7 years agoS/390: Fix __builtin_tbeginc signature
Andreas Krebbel [Tue, 5 Jun 2018 08:21:57 +0000 (08:21 +0000)] 
S/390: Fix __builtin_tbeginc signature

The builtin was accidentally defined to have an integer return value.
Fixed with the attached patch.

gcc/ChangeLog:

2018-06-05  Andreas Krebbel  <krebbel@linux.ibm.com>

Backport from mainline
2018-06-05  Andreas Krebbel  <krebbel@linux.ibm.com>

* config/s390/s390-builtin-types.def: Add void function type.
* config/s390/s390-builtins.def: Use the function type for the
tbeginc builtin.

gcc/testsuite/ChangeLog:

2018-06-05  Andreas Krebbel  <krebbel@linux.ibm.com>

Backport from mainline
2018-06-05  Andreas Krebbel  <krebbel@linux.ibm.com>

* gcc.target/s390/htm-builtins-compile-4.c: New test.

From-SVN: r261190

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

From-SVN: r261178

7 years agore PR fortran/85981 (ICE in gfc_trans_string_copy, at fortran/trans-expr.c:6539)
Steven G. Kargl [Mon, 4 Jun 2018 17:09:01 +0000 (17:09 +0000)] 
re PR fortran/85981 (ICE in gfc_trans_string_copy, at fortran/trans-expr.c:6539)

2018-06-04  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/85981
* resolve.c (resolve_allocate_deallocate): Check errmsg is default
character kind.

2018-06-04  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/85981
* gfortran.dg/allocate_alloc_opt_14.f90: New test.
* gfortran.dg/allocate_alloc_opt_1.f90: Update error string.
* gfortran.dg/allocate_stat_2.f90: Ditto.
* gfortran.dg/deallocate_alloc_opt_1.f90: Ditto.

From-SVN: r261162

7 years agoDaily bump.
GCC Administrator [Mon, 4 Jun 2018 00:16:33 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r261134

7 years agoDaily bump.
GCC Administrator [Sun, 3 Jun 2018 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r261118

7 years agoAdd missing directive
Eric Botcazou [Sat, 2 Jun 2018 10:58:13 +0000 (10:58 +0000)] 
Add missing directive

From-SVN: r261111

7 years agoada-tree.h (TYPE_PADDING_FOR_COMPONENT): New macro.
Eric Botcazou [Sat, 2 Jun 2018 10:52:39 +0000 (10:52 +0000)] 
ada-tree.h (TYPE_PADDING_FOR_COMPONENT): New macro.

* gcc-interface/ada-tree.h (TYPE_PADDING_FOR_COMPONENT): New macro.
* gcc-interface/decl.c (gnat_to_gnu_component_type): Cache the padding
type built for an aliased component with variable size.

From-SVN: r261108

7 years agobackport: trans.c (Call_to_gnu): If this is a function call and there is no target...
Eric Botcazou [Sat, 2 Jun 2018 09:52:57 +0000 (09:52 +0000)] 
backport: trans.c (Call_to_gnu): If this is a function call and there is no target...

Backport from mainline
2018-05-31  Eric Botcazou  <ebotcazou@adacore.com>

* gcc-interface/trans.c (Call_to_gnu): If this is a function call and
there is no target, also create a temporary for the return value for
an allocator if the type is an unconstrained record type with default
discriminant.

From-SVN: r261104

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

From-SVN: r261094

7 years agobackport: re PR fortran/85840 (Memory leak in write.c)
Jerry DeLisle [Fri, 1 Jun 2018 18:34:09 +0000 (18:34 +0000)] 
backport: re PR fortran/85840 (Memory leak in write.c)

2018-06-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

Backport from trunk.
PR libgfortran/85840
* io/write.c (write_float_0, write_real, write_real_g0,
write_complex): Use separate local variables for the float
string length.

From-SVN: r261077

7 years agobackport: [multiple changes]
Bill Schmidt [Fri, 1 Jun 2018 12:57:16 +0000 (12:57 +0000)] 
backport: [multiple changes]

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

PR tree-optimization/85712
Backport from mainline:
2018-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>

PR tree-optimization/85712
* gimple-ssa-strength-reduction.c (struct slsr_cand_d): Add
first_interp field.
(alloc_cand_and_find_basis): Initialize first_interp field.
(slsr_process_mul): Modify first_interp field.
(slsr_process_add): Likewise.
(slsr_process_cast): Modify first_interp field for each new
interpretation.
(slsr_process_copy): Likewise.
(dump_candidate): Dump first_interp field.
(replace_mult_candidate): Process all interpretations, not just
subsequent ones.
(replace_rhs_if_not_dup): Likewise.
(replace_one_candidate): Likewise.

Backport from mainline:
2018-05-25  Bill Schmidt  <wschmidt@linux.ibm.com>

PR tree-optimization/85712
* gimple-ssa-strength-reduction.c (replace_one_candidate): Skip if
this candidate has already been replaced in-situ by a copy.

From-SVN: r261066

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

From-SVN: r261048

7 years agore PR sanitizer/86012 (libsanitizer build failure on sparc64-linux-gnu)
Matthias Klose [Thu, 31 May 2018 09:59:35 +0000 (09:59 +0000)] 
re PR sanitizer/86012 (libsanitizer build failure on sparc64-linux-gnu)

2018-05-31  Matthias Klose  <doko@ubuntu.com>

        PR sanitizer/86012
        * sanitizer_common/sanitizer_platform_limits_posix.cc: Define
        SIZEOF_STRUCT_USTAT for 32bit sparc.

From-SVN: r260992

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

From-SVN: r260986

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

From-SVN: r260910

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

From-SVN: r260854

7 years agoDaily bump.
GCC Administrator [Mon, 28 May 2018 00:16:25 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r260812

7 years agoDaily bump.
GCC Administrator [Sun, 27 May 2018 00:16:17 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r260799

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

From-SVN: r260787

7 years agore PR fortran/85543 (ICE in update_current_proc_array_outer_dependency, at fortran...
Steven G. Kargl [Fri, 25 May 2018 19:24:06 +0000 (19:24 +0000)] 
re PR fortran/85543 (ICE in update_current_proc_array_outer_dependency, at fortran/resolve.c:3060)

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

PR fortran/85543
Backport from trunk
* resolve.c (update_current_proc_array_outer_dependency): Avoid NULL
pointer dereference.

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

PR fortran/85543
Backport from trunk
* gfortran.dg/pr85543.f90: New test.

From-SVN: r260774

7 years agore PR fortran/85779 (ICE in gfc_typename, at fortran/misc.c:156)
Steven G. Kargl [Fri, 25 May 2018 19:13:50 +0000 (19:13 +0000)] 
re PR fortran/85779 (ICE in gfc_typename, at fortran/misc.c:156)

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

PR fortran/85779
Backport from trunk
* decl.c (gfc_match_derived_decl): Fix NULL point dereference.

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

PR fortran/85779
Backport from trunk
* gfortran.dg/pr85779_1.f90: New test.
* gfortran.dg/pr85779_2.f90: Ditto.
* gfortran.dg/pr85779_3.f90: Ditto.

From-SVN: r260773

7 years agore PR fortran/85780 (ICE in resolve_fl_procedure, at fortran/resolve.c:12504)
Steven G. Kargl [Fri, 25 May 2018 19:05:52 +0000 (19:05 +0000)] 
re PR fortran/85780 (ICE in resolve_fl_procedure, at fortran/resolve.c:12504)

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

PR fortran/85780
Backport from trunk
* resolve.c (resolve_fl_procedure): Avoid NULL dereference.

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

PR fortran/85780
Backport from trunk
* gfortran.dg/pr85780.f90: New test.

From-SVN: r260771

7 years agore PR fortran/85895 (ICE in gfc_conv_array_ref, at fortran/trans-array.c:3518)
Steven G. Kargl [Fri, 25 May 2018 18:57:04 +0000 (18:57 +0000)] 
re PR fortran/85895 (ICE in gfc_conv_array_ref, at fortran/trans-array.c:3518)

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

PR fortran/85895
Backport from trunk
* resolve.c (resolve_sync): Resolve expression before checking for
an error.

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

PR fortran/85895
Backport from trunk
* gfortran.dg/coarray_3.f90: Fix invalid testcase.
* gfortran.dg/pr85895.f90: New test.

From-SVN: r260770

7 years agore PR target/85903 (FAIL: gcc.target/i386/avx512dq-vcvtuqq2pd-2.c)
Uros Bizjak [Fri, 25 May 2018 13:38:13 +0000 (15:38 +0200)] 
re PR target/85903 (FAIL: gcc.target/i386/avx512dq-vcvtuqq2pd-2.c)

* config/i386/sse.md (cvtusi2<ssescalarmodesuffix>64<round_name>):
Add {q} suffix to insn mnemonic.

PR target/85903
* config/i386/sse.md (movdi_to_sse): Do not generate pseudo
when memory input operand is handled.

testsuite/ChangeLog:

* gcc.target/i386/avx512f-vcvtusi2sd64-1.c: Update scan string.
* gcc.target/i386/avx512f-vcvtusi2ss64-1.c: Ditto.

From-SVN: r260758

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

From-SVN: r260701

7 years agolibsanitizer: Use pre-computed size of struct ustat for Linux
H.J. Lu [Thu, 24 May 2018 20:21:54 +0000 (20:21 +0000)] 
libsanitizer: Use pre-computed size of struct ustat for Linux

Cherry-pick compiler-rt revision 333213:

<sys/ustat.h> has been removed from glibc 2.28 by:

commit cf2478d53ad7071e84c724a986b56fe17f4f4ca7
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Sun Mar 18 11:28:59 2018 +0800

    Deprecate ustat syscall interface

This patch uses pre-computed size of struct ustat for Linux.

PR sanitizer/85835
* sanitizer_common/sanitizer_platform_limits_posix.cc: Don't
include <sys/ustat.h> for Linux.
(SIZEOF_STRUCT_USTAT): New.
(struct_ustat_sz): Use SIZEOF_STRUCT_USTAT for Linux.

From-SVN: r260688

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

From-SVN: r260631

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

From-SVN: r260559

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

From-SVN: r260495

7 years agore PR tree-optimization/85698 (CPU2017 525.x264_r fails starting with r257581)
Pat Haugen [Mon, 21 May 2018 16:34:44 +0000 (16:34 +0000)] 
re PR tree-optimization/85698 (CPU2017 525.x264_r fails starting with r257581)

PR target/85698
* config/rs6000/rs6000.c (rs6000_output_move_128bit): Check dest operand.

* gcc.target/powerpc/pr85698.c: New test.

From-SVN: r260476

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

From-SVN: r260429

7 years agore PR fortran/80657 (Loop in character function declaration)
Paul Thomas [Sun, 20 May 2018 18:08:04 +0000 (18:08 +0000)] 
re PR fortran/80657 (Loop in character function declaration)

2018-05-20  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/80657
Backport from trunk
* resolve.c (flag_fn_result_spec): Use the 'sym' argument to
test for self refs to the function result in the character len
expression. If a self reference is found, emit an error and
return true.
(resolve_fntype): Use the function symbol in the calls to the
above.

2018-05-20  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/80657
Backport from trunk
* gfortran.dg/char_result_18.f90: New test.

From-SVN: r260424

7 years agore PR fortran/82275 (gfortran rejects valid & accepts invalid reference to dimension...
Paul Thomas [Sun, 20 May 2018 17:16:09 +0000 (17:16 +0000)] 
re PR fortran/82275 (gfortran rejects valid & accepts invalid reference to dimension-remapped type SELECT TYPE selector)

2018-05-20  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/82275
Backport from trunk
* match.c (gfc_match_type_spec): Go through the array ref and
decrement 'rank' for every dimension that is an element.

2018-05-20  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/82275
Backport from trunk
* gfortran.dg/select_type_42.f90: New test.

From-SVN: r260423

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

From-SVN: r260406

7 years agore PR fortran/82923 (Automatic allocation of deferred length character using function...
Paul Thomas [Sat, 19 May 2018 14:53:58 +0000 (14:53 +0000)] 
re PR fortran/82923 (Automatic allocation of deferred length character using function result)

2018-05-19  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/82923
PR fortran/66694
PR fortran/82617
* trans-array.c (gfc_alloc_allocatable_for_assignment): Set the
charlen backend_decl of the rhs expr to ss->info->string_length
so that the value in the current scope is used.

2018-05-19  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/82923
* gfortran.dg/allocate_assumed_charlen_4.f90: New test. Note
that the patch fixes PR66694 & PR82617, although the testcases
are not explicitly included.

From-SVN: r260399

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

From-SVN: r260386

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

From-SVN: r260345

7 years agoPR libstdc++/85812 fix memory leak in std::make_exception_ptr
Jonathan Wakely [Thu, 17 May 2018 17:26:44 +0000 (18:26 +0100)] 
PR libstdc++/85812 fix memory leak in std::make_exception_ptr

PR libstdc++/85812
* libsupc++/cxxabi_init_exception.h (__cxa_free_exception): Declare.
* libsupc++/exception_ptr.h (make_exception_ptr) [__cpp_exceptions]:
Refactor to separate non-throwing and throwing implementations.
[__cpp_rtti && !_GLIBCXX_HAVE_CDTOR_CALLABI]: Deallocate the memory
if constructing the object throws.

From-SVN: r260331

7 years agore PR fortran/82814 (ICE from submodule character function)
Paul Thomas [Thu, 17 May 2018 15:17:43 +0000 (15:17 +0000)] 
re PR fortran/82814 (ICE from submodule character function)

2017-05-17  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/82814
* gfortran.dg/submodule_31.f08: New test.

From-SVN: r260324

7 years agoCheck is_single_const in intersect_with_plats
Martin Jambor [Thu, 17 May 2018 12:23:34 +0000 (14:23 +0200)] 
Check is_single_const in intersect_with_plats

2018-05-17  Martin Jambor  <mjambor@suse.cz>

Backport from mainline
2018-05-11  Martin Jambor  <mjambor@suse.cz>

PR ipa/85655
* ipa-cp.c (intersect_with_plats): Check that the lattice contains
single const.

From-SVN: r260320

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

From-SVN: r260302

7 years agore PR fortran/83149 ([6- and 7-branches] Missing test for sym->ns->proc_name: crash_s...
Paul Thomas [Wed, 16 May 2018 11:17:10 +0000 (11:17 +0000)] 
re PR fortran/83149 ([6- and 7-branches] Missing test for sym->ns->proc_name: crash_signal in toplev.c:325)

2018-05-16  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/83149
Backport from trunk
* trans-decl.c (gfc_finish_var_decl): Test sym->ns->proc_name
before accessing its components.
* trans-types.c (gfc_sym_type): If a character result has null
backend_decl, try the procedure symbol..

2018-05-16  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/83149
Backport from trunk
* gfortran.dg/pr83149_1.f90: New test.
* gfortran.dg/pr83149.f90: Additional source for previous.
* gfortran.dg/pr83149_b.f90: New test.
* gfortran.dg/pr83149_a.f90: Additional source for previous.

From-SVN: r260285

7 years agore PR fortran/83898 (ICE in gfc_conv_expr_descriptor, at fortran/trans-array.c:7181)
Paul Thomas [Wed, 16 May 2018 10:18:20 +0000 (10:18 +0000)] 
re PR fortran/83898 (ICE in gfc_conv_expr_descriptor, at fortran/trans-array.c:7181)

2018-16-05  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/83898
Backport from trunk
* trans-stmt.c (trans_associate_var): Do not set cst_array_ctor
for characters.

2018-16-05  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/83898
Backport from trunk
* gfortran.dg/associate_33.f03 : New test.

From-SVN: r260282

7 years agore PR fortran/84546 (Bad sourced allocation of CLASS(*) with source with CLASS(*...
Paul Thomas [Wed, 16 May 2018 09:35:19 +0000 (09:35 +0000)] 
re PR fortran/84546 (Bad sourced allocation of CLASS(*) with source with CLASS(*) component)

2018-05-16  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/84546
Backport from trunk
* trans-array.c (structure_alloc_comps): Make sure that the
vptr is copied and that the unlimited polymorphic _len is used
to compute the size to be allocated.
(build_array_ref): Set the 'unlimited' argument false in the
call to gfc_get_class_array_ref.
* trans-expr.c (gfc_get_class_array_ref): If unlimited, use the
unlimited polymorphic _len for the offset to the element.
(gfc_copy_class_to_class): Set the new 'unlimited' argument.
* trans.h : Add the boolean 'unlimited' to the prototype.

2018-05-16  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/84546
Backport from trunk
* gfortran.dg/unlimited_polymorphic_29.f90 : New test.

From-SVN: r260281

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

From-SVN: r260275

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

From-SVN: r260246

7 years agoPR libstdc++/67554 Do not pass null pointers to memcpy
Jonathan Wakely [Mon, 14 May 2018 22:22:27 +0000 (23:22 +0100)] 
PR libstdc++/67554 Do not pass null pointers to memcpy

PR libstdc++/67554
* include/bits/valarray_array.h (_Array_copy_ctor<_Tp, true>)
(_Array_copier<_Tp, true>): Do not pass null pointers to memcpy.

From-SVN: r260243

7 years agoPR libstdc++/82966 fix swapping of node handles
Jonathan Wakely [Mon, 14 May 2018 22:22:23 +0000 (23:22 +0100)] 
PR libstdc++/82966 fix swapping of node handles

PR libstdc++/82966
* include/bits/node_handle.h (_Node_handle_common::_M_swap): Use value
instead of type.
* testsuite/23_containers/set/modifiers/node_swap.cc: New.

From-SVN: r260242

7 years agoDaily bump.
GCC Administrator [Mon, 14 May 2018 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r260219

7 years agoDaily bump.
GCC Administrator [Sun, 13 May 2018 00:16:39 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r260203

7 years agore PR fortran/85542 (ICE in check_inquiry, at fortran/expr.c:2426)
Steven G. Kargl [Sat, 12 May 2018 16:57:28 +0000 (16:57 +0000)] 
re PR fortran/85542 (ICE in check_inquiry, at fortran/expr.c:2426)

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

PR fortran/85542
Backport from trunk
* expr.c (check_inquiry): Avoid NULL pointer dereference.

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

PR fortran/85542
Backport from trunk
* gfortran.dg/pr85542.f90: New test.

From-SVN: r260197

7 years agore PR fortran/68846 (Pointer function as LValue doesn't work when the assignment...
Paul Thomas [Sat, 12 May 2018 15:33:24 +0000 (15:33 +0000)] 
re PR fortran/68846 (Pointer function as LValue doesn't work when the assignment regards a dummy argument.)

2018-05-12  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/68846
PR fortran/70864
Backport from trunk
* resolve.c (get_temp_from_expr): The temporary must not have
dummy or intent attributes.

2018-05-12  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/68846
Backport from trunk
* gfortran.dg/temporary_3.f90 : New test.

PR fortran/70864
Backport from trunk
* gfortran.dg/temporary_2.f90 : New test.

From-SVN: r260195

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

From-SVN: r260192

7 years agore PR fortran/70870 (Segmentation violation in gfc_assign_data_value)
Steven G. Kargl [Fri, 11 May 2018 18:00:41 +0000 (18:00 +0000)] 
re PR fortran/70870 (Segmentation violation in gfc_assign_data_value)

2018-05-11  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/70870
Backport from trunk
* data.c (gfc_assign_data_value): Check that a data object does
not also have default initialization.

2018-05-11  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/70870
Backport from trunk
* gfortran.dg/pr70870_1.f90: New test.

From-SVN: r260176

7 years agore PR fortran/85521 (ICE in gfc_resolve_character_array_constructor, at fortran/array...
Steven G. Kargl [Fri, 11 May 2018 17:59:05 +0000 (17:59 +0000)] 
re PR fortran/85521 (ICE in gfc_resolve_character_array_constructor, at fortran/array.c:2049)

2018-05-11  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/85521
Backport from trunk
* array.c (gfc_resolve_character_array_constructor): Substrings
with upper bound smaller than lower bound are zero length strings.

2018-05-11  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/85521
Backport from trunk
* gfortran.dg/pr85521_1.f90: New test.
* gfortran.dg/pr85521_2.f90: New test.

From-SVN: r260175

7 years agore PR fortran/85687 (ICE in gfc_sym_identifier, at fortran/trans-decl.c:351)
Steven G. Kargl [Fri, 11 May 2018 17:58:03 +0000 (17:58 +0000)] 
re PR fortran/85687 (ICE in gfc_sym_identifier, at fortran/trans-decl.c:351)

2018-05-11  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/85687
Backport from trunk
* check.c (gfc_check_rank): Check that the argument is a data object.

2018-05-11  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/85687
Backport from trunk
* gfortran.dg/pr85687.f90: new test.

From-SVN: r260174

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

From-SVN: r260145

7 years agoDocument Dual ABI for std::ios_base::failure
Jonathan Wakely [Thu, 10 May 2018 19:23:33 +0000 (20:23 +0100)] 
Document Dual ABI for std::ios_base::failure

* doc/xml/faq.xml: Link to C++17 status. Add note to outdated answer.
* doc/xml/manual/debug_mode.xml: Add array and forward_list to list
of C++11 containers with Debug Mode support.
* doc/xml/manual/using.xml: Document Dual ABI for ios_base::failure.
* doc/html/*: Regenerate.

From-SVN: r260131

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

From-SVN: r260102