]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
6 years agoDaily bump.
GCC Administrator [Fri, 24 May 2019 00:16:21 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r271587

6 years agoMake any_cast compare typeinfo as well as function pointers
Jonathan Wakely [Thu, 23 May 2019 14:18:18 +0000 (15:18 +0100)] 
Make any_cast compare typeinfo as well as function pointers

It's possible for the function pointer comparison to fail even though
the type is correct, because the function could be defined multiple
times with different addresses when shared libraries are in use.

Retain the function pointer check for the common case where the check
succeeds, but compare typeinfo (if RTTI is enabled) if the first check
fails.

Backport from mainline
2019-05-23  Jonathan Wakely  <jwakely@redhat.com>

* include/experimental/any (__any_caster): Use RTTI if comparing
addresses fails, to support non-unique addresses in shared libraries.
* include/std/any (__any_caster): Likewise.
* testsuite/experimental/any/misc/any_cast_neg.cc: Use 0 for dg-error
line number.

From-SVN: r271559

6 years agoPR libstdc++/90220 fix experimental::any_cast for non-object types
Jonathan Wakely [Thu, 23 May 2019 14:18:13 +0000 (15:18 +0100)] 
PR libstdc++/90220 fix experimental::any_cast for non-object types

This corresponds to the fixes done for std::any_cast, but has to be done
without if-constexpr. The dummy specialization of _Manager_internal<_Op>
is used to avoid instantiating the real _Manager_internal<T>::_S_manage
function just to compare its address.

Backport from mainline
2019-05-23  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/90220
* include/experimental/any (__any_caster): Constrain to only be
callable for object types. Use remove_cv_t instead of decay_t.
If the type decays or isn't copy constructible, compare the manager
function to a dummy specialization.
(__any_caster): Add overload constrained for non-object types.
(any::_Manager_internal<_Op>): Add dummy specialization.
* testsuite/experimental/any/misc/any_cast.cc: Test function types
and array types.

From-SVN: r271558

6 years ago* c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort.
Eric Botcazou [Thu, 23 May 2019 10:35:30 +0000 (10:35 +0000)] 
* c-ada-spec.c (compare_node): Compare the DECL_UIDs as a last resort.

From-SVN: r271550

6 years ago* gnat.dg/opt78.ad[sb]: New test.
Eric Botcazou [Thu, 23 May 2019 09:50:21 +0000 (09:50 +0000)] 
* gnat.dg/opt78.ad[sb]: New test.

From-SVN: r271546

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

From-SVN: r271533

6 years agoPR libstdc++/90557 fix path assignment that alters source
Jonathan Wakely [Wed, 22 May 2019 22:36:21 +0000 (23:36 +0100)] 
PR libstdc++/90557 fix path assignment that alters source

Backport from mainline
2019-05-22  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/90557
* src/c++17/fs_path.cc (path::_List::operator=(const _List&)): Fix
reversed arguments to uninitialized_copy_n.
* testsuite/27_io/filesystem/path/assign/copy.cc: Check that source
is unchanged by copy assignment.
* testsuite/util/testsuite_fs.h (compare_paths): Use std::equal to
compare path components.

From-SVN: r271528

6 years agobackport: re PR target/90547 (ICE in gen_lowpart_general, at rtlhooks.c:63)
Uros Bizjak [Wed, 22 May 2019 18:49:22 +0000 (20:49 +0200)] 
backport: re PR target/90547 (ICE in gen_lowpart_general, at rtlhooks.c:63)

Backported from mainline
2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>

* config/i386/cpuid.h (__cpuid): For 32bit targets, zero
%ebx and %ecx bafore calling cpuid with leaf 1 or
non-constant leaf argument.

2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>

PR target/90547
* config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
Avoid calling gen_lowpart with CONST operand.

testsuite/ChangeLog:

Backported from mainline
2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>

PR target/90547
* gcc.target/i386/pr90547.c: New test.

From-SVN: r271516

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

From-SVN: r271495

6 years agolibfortran/90038: Document new wait=.false. implementation
Janne Blomqvist [Tue, 21 May 2019 15:24:30 +0000 (18:24 +0300)] 
libfortran/90038: Document new wait=.false. implementation

2019-05-21  Janne Blomqvist  <jb@gcc.gnu.org>

       PR libfortran/90038
       * intrinsic.texi (EXECUTE_COMMAND_LINE): Explain new
       wait=.false. implementation.

From-SVN: r271470

6 years ago[RTEMS] Change multilibs for ARM
Sebastian Huber [Tue, 21 May 2019 04:41:23 +0000 (04:41 +0000)] 
[RTEMS] Change multilibs for ARM

Account for Cortex-M3 Errata 602117.  The -mfix-cortex-m3-ldrd option is
enabled by default, if -mcpu=cortex-m3 is used.

gcc/

* config/arm/t-rtems: Replace ARMv7-M multilibs with Cortex-M
multilibs.

From-SVN: r271452

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

From-SVN: r271448

6 years ago* es.po, sv.po: Update.
Joseph Myers [Mon, 20 May 2019 22:22:58 +0000 (23:22 +0100)] 
* es.po, sv.po: Update.

From-SVN: r271444

6 years agore PR libgomp/90527 (alloc.c:72:7: error: implicit declaration of function ‘posix_mem...
Jakub Jelinek [Mon, 20 May 2019 21:29:49 +0000 (23:29 +0200)] 
re PR libgomp/90527 (alloc.c:72:7: error: implicit declaration of function ‘posix_memalign’)

PR libgomp/90527
* alloc.c (_GNU_SOURCE): Define.

From-SVN: r271439

6 years agomips.c (mips_dwarf_frame_reg_mode): Replace TARGET_FLOAT64 with !TARGET_FLOAT32,...
Jeff Law [Mon, 20 May 2019 19:08:18 +0000 (13:08 -0600)] 
mips.c (mips_dwarf_frame_reg_mode): Replace TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64 and fpxx modes.

* config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
and fpxx modes.

* g++.dg/eh/o32-fp.C: New.
* gcc.target/mips/dwarfregtable-1.c: New.
* gcc.target/mips/dwarfregtable-2.c: New.
* gcc.target/mips/dwarfregtable-3.c: New.
* gcc.target/mips/dwarfregtable-4.c: New.
* gcc.target/mips/dwarfregtable.h: New.

From-SVN: r271433

6 years agolibfortran/90038 Use posix_spawn, reap dead children when wait=.false.
Janne Blomqvist [Mon, 20 May 2019 17:43:05 +0000 (20:43 +0300)] 
libfortran/90038 Use posix_spawn, reap dead children when wait=.false.

Backport from trunk.

When using posix_spawn or fork to launch a child process, the parent
needs to wait for the child, otherwise the dead child is left as a
zombie process. For this purpose one can install a signal handler for
SIGCHLD.

2019-05-20  Janne Blomqvist  <jb@gcc.gnu.org>

PR libfortran/90038
* intrinsics/execute_command_line (sigchld_handler): New function.
        (execute_command_line): Install handler for SIGCHLD.
        * configure.ac: Check for presence of sigaction and waitpid.
        * config.h.in: Regenerated.
        * configure: Regenerated.

fork() semantics can be problematic.  Most unix style OS'es have
posix_spawn which can be used to replace fork + exec in many cases.
For more information see
e.g. https://www.microsoft.com/en-us/research/uploads/prod/2019/04/fork-hotos19.pdf

This replaces the one use of fork in libgfortran with posix_spawn.

2019-05-20  Janne Blomqvist  <jb@gcc.gnu.org>

        PR libfortran/90038
        * configure.ac (AC_CHECK_FUNCS_ONCE): Check for posix_spawn.
        * intrinsics/execute_command_line (execute_command_line): Use
        posix_spawn.
        * Makefile.in: Regenerated.
        * config.h.in: Regenerated.
        * configure: Regenerated.

Regtested on x86_64-pc-linux-gnu.

From-SVN: r271427

6 years agoPR c++/90532 Ensure __is_constructible(T[]) is false
Jonathan Wakely [Mon, 20 May 2019 13:02:10 +0000 (14:02 +0100)] 
PR c++/90532 Ensure __is_constructible(T[]) is false

An array of an unknown bound is an incomplete type, so no object of such
a type can be constructed. This means __is_constructible should always
be false for an array of unknown bound.

This patch also changes the std::is_default_constructible trait to use
std::is_constructible, which now gives the right answer for arrays of
unknown bound.

gcc/cp:

Backported from mainline
2019-05-20  Jonathan Wakely  <jwakely@redhat.com>

PR c++/90532 Ensure __is_constructible(T[]) is false
* method.c (is_xible_helper): Return error_mark_node for construction
of an array of unknown bound.

gcc/testsuite:

Backported from mainline
2019-05-20  Jonathan Wakely  <jwakely@redhat.com>

PR c++/90532 Ensure __is_constructible(T[]) is false
* g++.dg/ext/90532.C: New test.

libstdc++-v3:

Backported from mainline
2019-05-20  Jonathan Wakely  <jwakely@redhat.com>

PR c++/90532 Ensure __is_constructible(T[]) is false
* include/std/type_traits (__do_is_default_constructible_impl)
(__is_default_constructible_atom, __is_default_constructible_safe):
Remove.
(is_default_constructible): Use is_constructible.
* testsuite/20_util/is_constructible/value.cc: Check int[] case.
* testsuite/20_util/is_default_constructible/value.cc: Likewise.
* testsuite/20_util/is_trivially_constructible/value.cc: Likewise.
* testsuite/20_util/is_trivially_default_constructible/value.cc:
Likewise.

From-SVN: r271417

6 years agoDaily bump.
GCC Administrator [Mon, 20 May 2019 00:16:42 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r271393

6 years agore PR fortran/90498 (ICE with select type/associate and derived type argument contain...
Paul Thomas [Sun, 19 May 2019 18:08:28 +0000 (18:08 +0000)] 
re PR fortran/90498 (ICE with select type/associate and derived type argument containing class(*))

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

PR fortran/90498
* trans-stmt.c (trans_associate_var) Do not use the saved
descriptor if the expression is a COMPONENT_REF.

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

PR fortran/90498
* gfortran.dg/associate_48.f90 : New test.

From-SVN: r271383

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

From-SVN: r271374

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

From-SVN: r271367

6 years agore PR fortran/54613 ([F08] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK=)
Jakub Jelinek [Fri, 17 May 2019 19:56:14 +0000 (21:56 +0200)] 
re PR fortran/54613 ([F08] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK=)

PR fortran/54613
* gfortran.map (GFORTRAN_9.2): Export _gfortran_{,m,s}findloc{0,1}_r10.
* Makefile.am (i_findloc0_c): Add $(srcdir)/generated/findloc0_r10.c.
(i_findloc1_c): Add $(srcdir)/generated/findloc1_r10.c.
* Makefile.in: Regenerated.
* generated/findloc0_r10.c: Generated.
* generated/findloc1_r10.c: Generated.

From-SVN: r271358

6 years agore PR fortran/54613 ([F08] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK=)
Jakub Jelinek [Fri, 17 May 2019 19:54:46 +0000 (21:54 +0200)] 
re PR fortran/54613 ([F08] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK=)

PR fortran/54613
* gfortran.map (GFORTRAN_9.2): New symbol version, export
_gfortran_{,m,s}findloc0_i2 in it.

From-SVN: r271357

6 years agobackport: re PR c++/90484 (ICE in equal_mem_array_ref_p at gcc/tree-ssa-scopedtables...
Jakub Jelinek [Fri, 17 May 2019 19:54:15 +0000 (21:54 +0200)] 
backport: re PR c++/90484 (ICE in equal_mem_array_ref_p at gcc/tree-ssa-scopedtables.c:550 since r270433 on i586)

Backported from mainline
2019-05-16  Jakub Jelinek  <jakub@redhat.com>

PR c++/90484
* tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
sz0 is equal to sz1, instead return false in that case.

From-SVN: r271356

6 years agobackport: omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF has non-constant...
Jakub Jelinek [Fri, 17 May 2019 19:53:48 +0000 (21:53 +0200)] 
backport: omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF has non-constant expression...

Backported from mainline
2019-05-16  Jakub Jelinek  <jakub@redhat.com>

* omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
has non-constant expression, force sctx.lane and use two
argument IFN_GOMP_SIMD_LANE instead of single argument.
* tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
two argument IFN_GOMP_SIMD_LANE without lhs.
* tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
member.
(LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
Define.
(LOOP_REQUIRES_VERSIONING): Or in
LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
* tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
simd_if_cond.
(vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
* tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
from simd if clause if needed.

* gcc.dg/vect/vect-simd-1.c: New test.
* gcc.dg/vect/vect-simd-2.c: New test.
* gcc.dg/vect/vect-simd-3.c: New test.
* gcc.dg/vect/vect-simd-4.c: New test.

From-SVN: r271355

6 years agobackport: omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set max_vf...
Jakub Jelinek [Fri, 17 May 2019 19:52:55 +0000 (21:52 +0200)] 
backport: omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set max_vf to 1.

Backported from mainline
2019-05-15  Jakub Jelinek  <jakub@redhat.com>

* omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
max_vf to 1.
* omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
safelen_int and set loop->dont_vectorize.

* c-c++-common/gomp/simd8.c: New test.

From-SVN: r271354

6 years agobackport: re PR debug/90197 (Cannot step through simple loop at -O -g)
Jakub Jelinek [Fri, 17 May 2019 19:52:06 +0000 (21:52 +0200)] 
backport: re PR debug/90197 (Cannot step through simple loop at -O -g)

Backported from mainline
2019-05-15  Jakub Jelinek  <jakub@redhat.com>

PR debug/90197
* cp-gimplify.c (genericize_cp_loop): Emit a DEBUG_BEGIN_STMT
before the condition (or if missing or constant non-zero at the end
of the loop.  Emit a DEBUG_BEGIN_STMT before the increment expression
if any.  Don't call protected_set_expr_location on incr if it already
has a location.

From-SVN: r271353

6 years agobackport: re PR tree-optimization/90385 (ICE: tree check: expected ssa_name, have...
Jakub Jelinek [Fri, 17 May 2019 19:51:32 +0000 (21:51 +0200)] 
backport: re PR tree-optimization/90385 (ICE: tree check: expected ssa_name, have real_cst in transform_to_exit_first_loop_alt, at tree-parloops.c:1772)

Backported from mainline
2019-05-10  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/90385
* tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
arguments of the exit phis.

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

From-SVN: r271352

6 years agobackport: re PR c++/90383 (GCC generates invalid constexpr copy/move assignment opera...
Jakub Jelinek [Fri, 17 May 2019 19:50:52 +0000 (21:50 +0200)] 
backport: re PR c++/90383 (GCC generates invalid constexpr copy/move assignment operators for types with trailing padding. (Again))

Backported from mainline
2019-05-10  Jakub Jelinek  <jakub@redhat.com>

PR c++/90383
* tree-inline.h (struct copy_body_data): Add do_not_fold member.
* tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
id->do_not_fold.
(copy_tree_body_r): Likewise.
(copy_fn): Set id.do_not_fold to true.

* g++.dg/cpp1y/constexpr-90383-1.C: New test.
* g++.dg/cpp1y/constexpr-90383-2.C: New test.

From-SVN: r271351

6 years agobackport: re PR pch/90326 (Using any precompiled header breaks definition of FLT_MAX)
Jakub Jelinek [Fri, 17 May 2019 19:49:54 +0000 (21:49 +0200)] 
backport: re PR pch/90326 (Using any precompiled header breaks definition of FLT_MAX)

Backported from mainline
2019-05-10  Jakub Jelinek  <jakub@redhat.com>

PR pch/90326
cp/
* config-lang.in (gtfiles): Remove c-family/c-lex.c, add
c-family/c-cppbuiltin.c.
objc/
* config-lang.in (gtfiles): Add c-family/c-format.c.
objcp/
* config-lang.in (gtfiles): Don't add c-family/c-cppbuiltin.c.
testsuite/
* g++.dg/pch/pr90326.C: New test.
* g++.dg/pch/pr90326.Hs: New file.

From-SVN: r271350

6 years agobackport: re PR tree-optimization/90303 (ICE in hash_odr_name with fastcall attribute...
Jakub Jelinek [Fri, 17 May 2019 19:48:25 +0000 (21:48 +0200)] 
backport: re PR tree-optimization/90303 (ICE in hash_odr_name with fastcall attribute starting with r267359)

Backported from mainline
2019-05-03  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/90303
* ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.

* g++.target/i386/pr90303.C: New test.

From-SVN: r271349

6 years agobackport: re PR debug/90197 (Cannot step through simple loop at -O -g)
Jakub Jelinek [Fri, 17 May 2019 19:47:18 +0000 (21:47 +0200)] 
backport: re PR debug/90197 (Cannot step through simple loop at -O -g)

Backported from mainline
2019-04-26  Jakub Jelinek  <jakub@redhat.com>

PR debug/90197
* c-tree.h (c_finish_loop): Add 2 further location_t arguments.
* c-parser.c (c_parser_while_statement): Adjust c_finish_loop caller.
(c_parser_do_statement): Likewise.
(c_parser_for_statement): Likewise.  Formatting fixes.
* c-typeck.c (c_finish_loop): Add COND_LOCUS and INCR_LOCUS arguments,
emit DEBUG_BEGIN_STMTs if needed.

From-SVN: r271348

6 years agobackport: [multiple changes]
Richard Biener [Fri, 17 May 2019 08:10:58 +0000 (08:10 +0000)] 
backport: [multiple changes]

2019-05-17  Richard Biener  <rguenther@suse.de>

Backport from mainline
2019-05-07  Richard Biener  <rguenther@suse.de>

PR tree-optimization/90316
* tree-ssa-alias.h (get_continuation_for_phi): Take walking
limit by reference.
(walk_non_aliased_vuses): Take walking limit argument.
* tree-ssa-alias.c (maybe_skip_until): Take limit and abort
walking if it is reached instead of just counting.
(get_continuation_for_phi): Likewise.
(walk_non_aliased_vuses): Likewise, instead of leaving counter
limiting to the callback.
* tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
(vn_reference_lookup_3): Likewise.
(vn_reference_lookup_pieces): Likewise.
(vn_reference_lookup): Likewise.
* tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
* tree-ssa-scopedtables.c (vuse_eq): Adjust.
(avail_exprs_stack::lookup_avail_expr): Likewise.

2019-05-06  Richard Biener  <rguenther@suse.de>

PR tree-optimization/90316
* tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
compute target on demand.
(get_continuation_for_phi): Remove code walking stmts to
get to a target virtual operand which could end up being
quadratic.

From-SVN: r271314

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

From-SVN: r271306

6 years agoPR libstdc++/90299 make filesystem::absolute overloads consistent
Jonathan Wakely [Thu, 16 May 2019 23:00:26 +0000 (00:00 +0100)] 
PR libstdc++/90299 make filesystem::absolute overloads consistent

In this implementation it is an error to pass the empty path to absolute,
because the empty path doesn't represent any file in the filesystem so
the function cannot meet its postcondition.

Currently the absolute(const path&, error_code&) overload reports an
error for the empty path, but using errc::no_such_file_or_directory, and
the other overload does not report an error. This patch makes them
consistntly report an errc::invalid_argument error for the empty path.

Backport from mainline
2019-05-04  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/90299
* src/c++17/fs_ops.cc (absolute(const path&)): Report an error if the
argument is an empty path.
(absolute(const path&, error_code&)): Use invalid_argument as error
code instead of no_such_file_or_directory.
* testsuite/27_io/filesystem/operations/absolute.cc: Check handling
of non-existent paths and empty paths with both overloads of absolute.

Backport from mainline
2019-05-16  Jonathan Wakely  <jwakely@redhat.com>

* src/c++17/fs_ops.cc (absolute(const path&, error_code&))
[_GLIBCXX_FILESYSTEM_IS_WINDOWS]: Remove bogus assertion.

From-SVN: r271301

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

From-SVN: r271274

6 years agoRemove translation string markers
Janne Blomqvist [Wed, 15 May 2019 19:38:46 +0000 (22:38 +0300)] 
Remove translation string markers

C preprocessor definitions should not be translated.

2019-05-15  Janne Blomqvist  <jb@gcc.gnu.org>

        Backport from trunk
        * parse.c (gfc_parse_file): Remove translation string markers.

From-SVN: r271264

6 years agoFix filesystem::path tests
Jonathan Wakely [Wed, 15 May 2019 19:38:42 +0000 (20:38 +0100)] 
Fix filesystem::path tests

The root_path.cc test had some debugging macros left in accidentally, so
didn't FAIL correctly if an assertion failed.

The string-char8_t.cc tests didn't compile on Windows.

Backport from mainline
2019-04-30  Jonathan Wakely  <jwakely@redhat.com>

* testsuite/27_io/filesystem/path/decompose/root_path.cc: Remove
macros accidentally left in.
* testsuite/27_io/filesystem/path/native/string-char8_t.cc: Remove
unnecessary -lstdc++fs option. Fix test for mingw.
* testsuite/experimental/filesystem/path/native/string-char8_t.cc:
Fix test for mingw.

From-SVN: r271263

6 years agoPR libstdc++/90454.cc path construction from void*
Jonathan Wakely [Wed, 15 May 2019 19:34:59 +0000 (20:34 +0100)] 
PR libstdc++/90454.cc path construction from void*

Make the filesystem::path constructors SFINAE away for void* arguments,
instead of giving an error due to iterator_traits<void*>::reference.

Backport from mainline
2019-05-13  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/90454.cc path construction from void*
* include/bits/fs_path.h (path::_Path): Use remove_pointer so that
pointers to void are rejected as well as void.
* include/experimental/bits/fs_path.h (path::_Path): Likewise.
* testsuite/27_io/filesystem/path/construct/80762.cc: Also check
pointers to void.
* testsuite/experimental/filesystem/path/construct/80762.cc: Likewise.

From-SVN: r271262

6 years agoFix a typo in two_value_replacement function
Li Jia He [Wed, 15 May 2019 05:20:02 +0000 (05:20 +0000)] 
Fix a typo in two_value_replacement function

2019-05-15  Li Jia He  <helijia@linux.ibm.com>

Backport from mainline.
2019-05-07  Li Jia He  <helijia@linux.ibm.com>

* tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
detection.
* gcc.dg/tree-ssa/pr37508.c: Add the no-ssa-phiopt option to skip phi
optimization.
* gcc.dg/tree-ssa/pr88676-2.c: New testcase.

From-SVN: r271198

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

From-SVN: r271196

6 years agodarwin, testsuite, backport fixes for PR 81058
Iain Sandoe [Tue, 14 May 2019 17:41:36 +0000 (17:41 +0000)] 
darwin, testsuite, backport fixes for PR 81058

2019-05-14  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-11  Iain Sandoe  <iain@sandoe.co.uk>

PR testsuite/81058
* gcc.target/i386/avx512bw-vpmovswb-1.c: Use regular data section
for variables on Darwin, rather than common.
* gcc.target/i386/avx512bw-vpmovuswb-1.c: Likewise.
* gcc.target/i386/avx512bw-vpmovwb-1.c: Likewise.

From-SVN: r271186

6 years agodarwin, testsuite, fix abi-avx512f.exp fails.
Iain Sandoe [Tue, 14 May 2019 16:14:16 +0000 (16:14 +0000)] 
darwin, testsuite, fix abi-avx512f.exp fails.

These need an asm shim to build.

2019-05-14  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-10  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/x86_64/abi/avx512f/abi-avx512f.exp: Darwin is
now tested.
* gcc.target/x86_64/abi/avx512f/asm-support-darwin.s: New.

From-SVN: r271178

6 years agodarwin, testsuite, backport fixes for section-attr-*
Iain Sandoe [Tue, 14 May 2019 16:05:35 +0000 (16:05 +0000)] 
darwin, testsuite, backport fixes for section-attr-*

2019-05-14  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-02  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.dg/tree-prof/section-attr-1.c: Update scan-asm regex
for cold section label.
* gcc.dg/tree-prof/section-attr-2.c: Likewise.
* gcc.dg/tree-prof/section-attr-3.c: Likewise.

From-SVN: r271177

6 years agodarwin, backport fix for g++.dg/ext/instantiate2.C
Iain Sandoe [Tue, 14 May 2019 16:01:21 +0000 (16:01 +0000)] 
darwin, backport fix for g++.dg/ext/instantiate2.C

2019-05-14  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-02  Iain Sandoe  <iain@sandoe.co.uk>

* g++.dg/ext/instantiate2.C: Remove special-casing for Darwin.

From-SVN: r271176

6 years agoBackport r271118
Martin Liska [Tue, 14 May 2019 08:47:40 +0000 (10:47 +0200)] 
Backport r271118

2019-05-14  Martin Liska  <mliska@suse.cz>

Backport from mainline
2019-05-13  Martin Liska  <mliska@suse.cz>

PR tree-optimization/90416
* tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
string instead of passing the second part as va_arg argument.

From-SVN: r271152

6 years agoBackport r271117
Martin Liska [Tue, 14 May 2019 08:46:35 +0000 (10:46 +0200)] 
Backport r271117

2019-05-14  Martin Liska  <mliska@suse.cz>

Backport from mainline
2019-05-13  Martin Liska  <mliska@suse.cz>

PR gcov-profile/90380
* gcov.c (handle_cycle): Do not support zero cycle count,
it should not be possible.
(path_contains_zero_cycle_arc): New function.
(circuit): Ignore zero cycle arc counts.

From-SVN: r271151

6 years agoBackport r271116
Martin Liska [Tue, 14 May 2019 08:46:27 +0000 (10:46 +0200)] 
Backport r271116

2019-05-14  Martin Liska  <mliska@suse.cz>

Backport from mainline
2019-05-13  Martin Liska  <mliska@suse.cz>

PR gcov-profile/90380
* gcov.c (enum loop_type): Remove the enum and
the operator.
(handle_cycle): Assert that we should not reach
a negative count.
(circuit): Use loop_found instead of a tri-state loop_type.
(get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
happen.

From-SVN: r271150

6 years agoBackport fix for PR90357.
Chenghua Xu [Tue, 14 May 2019 03:25:38 +0000 (03:25 +0000)] 
Backport fix for PR90357.

2019-05-14  Chenghua Xu  <paul.hua.gm@gmail.com>

PR target/90357
* config/mips/mips.c (mips_split_move): Skip forward SRC into
next insn when the SRC reg is dead.

From-SVN: r271147

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

From-SVN: r271143

6 years ago* sv.po: Update.
Joseph Myers [Mon, 13 May 2019 22:26:47 +0000 (23:26 +0100)] 
* sv.po: Update.

From-SVN: r271140

6 years agobackport fix for PR90379
Iain Sandoe [Mon, 13 May 2019 20:37:08 +0000 (20:37 +0000)] 
backport fix for PR90379

2019-05-13  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-11  Iain Sandoe  <iain@sandoe.co.uk>

PR target/90379
PR bootstrap/89864
* inclhack.def (darwin_ucred__Atomic): Do not supply test_text
for wrap fixes.
* fixincl.x: Regenerated.

From-SVN: r271136

6 years agoDocument P0811R3 status in C++20 table
Edward Smith-Rowland [Mon, 13 May 2019 10:58:53 +0000 (10:58 +0000)] 
Document P0811R3 status in C++20 table

2019-05-13  Edward Smith-Rowland  <3dw4rd@verizon.net>

* doc/xml/manual/status_cxx2020.xml: Document P0811R3 status.

From-SVN: r271123

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

From-SVN: r271114

6 years agofortran: C++ support for generating C prototypes
Janne Blomqvist [Sun, 12 May 2019 18:48:44 +0000 (21:48 +0300)] 
fortran: C++ support for generating C prototypes

When generating C prototypes for Fortran procedures with the
-fc-prototypes and -fc-prototypes-external options, print a snippet
defining macros for complex types, and add C++ support by suppressing
mangling.

fortran/ChangeLog:

2019-05-12  Janne Blomqvist  <jb@gcc.gnu.org>

* dump-parse-tree.c (get_c_type_name): Use macros for complex type
names.
* parse.c (gfc_parse_file): Define complex macros, add CPP support
when printing C prototypes.

From-SVN: r271109

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

From-SVN: r271104

6 years agobackport: freebsd64.h: Add bits for 32-bit multilib support.
Andreas Tobler [Sat, 11 May 2019 20:43:00 +0000 (22:43 +0200)] 
backport: freebsd64.h: Add bits for 32-bit multilib support.

2019-05-11  Andreas Tobler <andreast@gcc.gnu.org>

Backport from mainline.
2019-04-25  Andreas Tobler  <andreast@gcc.gnu.org>

* config/i386/freebsd64.h: Add bits for 32-bit multilib support.
* config/i386/t-freebsd64: New file.
* config.gcc: Add the t-freebsd64 for multilib support.

From-SVN: r271099

6 years agoPR libstdc++/81266 fix std::thread::native_handle_type test
Jonathan Wakely [Sat, 11 May 2019 11:35:59 +0000 (12:35 +0100)] 
PR libstdc++/81266 fix std::thread::native_handle_type test

The test uses remove_pointer because in most cases native_handle_type is
a pointer to the actual type that the C++ class contains. However, for
std::thread, native_handle_type is the same type as the type contained
in std::thread, and so remove_pointer is not needed. On targets where
pthread_t is a pointer type remove_pointer<native_handle_type> is not a
no-op, instead it transforms pthread_t and causes the test to fail.

The fix is to not apply remove_pointer when testing std::thread.

Backport from mainline
2019-05-10  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/81266
* testsuite/util/thread/all.h: Do not use remove_pointer for
std::thread::native_handle_type.

From-SVN: r271094

6 years agore PR fortran/90093 (Extended C interop: optional argument incorrectly identified...
Paul Thomas [Sat, 11 May 2019 07:49:52 +0000 (07:49 +0000)] 
re PR fortran/90093 (Extended C interop: optional argument incorrectly identified as PRESENT)

2019-05-11  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/90093
* gfortran.dg/ISO_Fortran_binding_12.f90: New test.
* gfortran.dg/ISO_Fortran_binding_12.c: Supplementary code.

PR fortran/90352
* gfortran.dg/iso_c_binding_char_1.f90: New test.

PR fortran/90355
* gfortran.dg/ISO_Fortran_binding_4.f90: Add 'substr' to test
the direct passing of substrings as descriptors to bind(C).
* gfortran.dg/assign_10.f90: Increase the tree_dump count of
'atmp' to account for the setting of the 'span' field.
* gfortran.dg/transpose_optimization_2.f90: Ditto.

From-SVN: r271090

6 years agore PR fortran/90093 (Extended C interop: optional argument incorrectly identified...
Paul Thomas [Sat, 11 May 2019 07:47:32 +0000 (07:47 +0000)] 
re PR fortran/90093 (Extended C interop: optional argument incorrectly identified as PRESENT)

2019-05-11  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/90093
* trans-decl.c (convert_CFI_desc): Test that the dummy is
present before doing any of the conversions.

PR fortran/90352
* decl.c (gfc_verify_c_interop_param): Restore the error for
charlen > 1 actual arguments passed to bind(C) procs.
Clean up trailing white space.

PR fortran/90355
* trans-array.c (gfc_trans_create_temp_array): Set the 'span'
field to the element length for all types.
(gfc_conv_expr_descriptor): The force_no_tmp flag is used to
prevent temporary creation, especially for substrings.
* trans-decl.c (gfc_trans_deferred_vars): Rather than assert
that the backend decl for the string length is non-null, use it
as a condition before calling gfc_trans_vla_type_sizes.
* trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): 'force_no_tmp'
is set before calling gfc_conv_expr_descriptor.
* trans.c (get_array_span): Move the code for extracting 'span'
from gfc_build_array_ref to this function. This is specific to
descriptors that are component and indirect references.
* trans.h : Add the force_no_tmp flag bitfield to gfc_se.

2019-05-11  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/90093
* gfortran.dg/ISO_Fortran_binding_12.f90: New test.
* gfortran.dg/ISO_Fortran_binding_12.c: Supplementary code.

PR fortran/90352
* gfortran.dg/iso_c_binding_char_1.f90: New test.

PR fortran/90355
* gfortran.dg/ISO_Fortran_binding_4.f90: Add 'substr' to test
the direct passing of substrings as descriptors to bind(C).
* gfortran.dg/assign_10.f90: Increase the tree_dump count of
'atmp' to account for the setting of the 'span' field.
* gfortran.dg/transpose_optimization_2.f90: Ditto.

From-SVN: r271089

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

From-SVN: r271086

6 years agoPR libstdc++/90397 fix std::variant friend declaration
Jonathan Wakely [Fri, 10 May 2019 22:23:10 +0000 (23:23 +0100)] 
PR libstdc++/90397 fix std::variant friend declaration

Clang diagnoses insert inconsistent noexcept-specifier on the friend
declaration of __get. Add .

PR libstdc++/90397
* include/std/variant (variant): Add noexcept to friend declaration.

From-SVN: r271083

6 years agoTweak C++2a uses-allocator construction utilities
Jonathan Wakely [Fri, 10 May 2019 22:23:06 +0000 (23:23 +0100)] 
Tweak C++2a uses-allocator construction utilities

The 20_util/scoped_allocator/69293_neg.cc test was failing in C++2a mode
because the expected static_assert text wasn't matched. The code is
still ill-formed in C++2a, but uses the new __uses_alloc_args function
and so fails a different static_assert. This patch adds the same string
to the new static_assert, so the test passes.

Now that G++ allows concepts to be declared without 'bool' we can use
the correct C++2a syntax for the _Std_pair concept used to constrain the
uses-allocator construction utilities.

Also add a new test to verify that pmr::polymorphic_allocator correctly
performs recursive uses-allocator construction for nested pairs in
C++2a.

Backport from mainline
2019-04-26  Jonathan Wakely  <jwakely@redhat.com>

* include/std/memory (__uses_alloc_args): Add string-literal to
static_assert, to match the one in __uses_alloc.
[__cpp_concepts] (_Std_pair): Use C++2a syntax for concept.
* testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: Check
for recursive uses-allocator construction of nested pairs.
* testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc:: Add
comment.

From-SVN: r271082

6 years agoPR libstdc++/90239 use uses_allocator_construction_args in <scoped_allocator>
Jonathan Wakely [Fri, 10 May 2019 22:23:01 +0000 (23:23 +0100)] 
PR libstdc++/90239 use uses_allocator_construction_args in <scoped_allocator>

Backport from mainline
2019-04-25  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/90239
* doc/xml/manual/status_cxx2020.xml: Amend P0591R4 status.
* include/std/scoped_allocator [__cplusplus > 201703L]
(scoped_allocator_adaptor::construct): Define in terms of
uses_allocator_construction_args, as per P0591R4.
* testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc: New test.
* testsuite/util/testsuite_allocator.h: Remove name of unused
parameter.
* doc/html/*: Regenerate.

From-SVN: r271081

6 years agoPR c++/78010 - bogus -Wsuggest-override warning on final function.
Marek Polacek [Fri, 10 May 2019 14:57:22 +0000 (14:57 +0000)] 
PR c++/78010 - bogus -Wsuggest-override warning on final function.

* class.c (check_for_override): Don't warn for final functions.

* g++.dg/warn/Wsuggest-override-2.C: New test.

From-SVN: r271066

6 years agobackport: re PR middle-end/89765 (Multiple problems with vec-insert implementation...
Kelvin Nilsen [Fri, 10 May 2019 14:00:17 +0000 (14:00 +0000)] 
backport: re PR middle-end/89765 (Multiple problems with vec-insert implementation on PowerPC)

gcc/ChangeLog:

2019-05-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>

Backport from mainline.
2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>

PR target/89765
* config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
to compute vector element selector for both constant and variable
operands.

gcc/testsuite/ChangeLog:

2019-05-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>

Backport from mainline.
2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>

PR target/89765
* gcc.target/powerpc/pr89765-mc.c: New test.
* gcc.target/powerpc/vsx-builtin-10c.c: New test.
* gcc.target/powerpc/vsx-builtin-10d.c: New test.
* gcc.target/powerpc/vsx-builtin-11c.c: New test.
* gcc.target/powerpc/vsx-builtin-11d.c: New test.
* gcc.target/powerpc/vsx-builtin-12c.c: New test.
* gcc.target/powerpc/vsx-builtin-12d.c: New test.
* gcc.target/powerpc/vsx-builtin-13c.c: New test.
* gcc.target/powerpc/vsx-builtin-13d.c: New test.
* gcc.target/powerpc/vsx-builtin-14c.c: New test.
* gcc.target/powerpc/vsx-builtin-14d.c: New test.
* gcc.target/powerpc/vsx-builtin-15c.c: New test.
* gcc.target/powerpc/vsx-builtin-15d.c: New test.
* gcc.target/powerpc/vsx-builtin-16c.c: New test.
* gcc.target/powerpc/vsx-builtin-16d.c: New test.
* gcc.target/powerpc/vsx-builtin-17c.c: New test.
* gcc.target/powerpc/vsx-builtin-17d.c: New test.
* gcc.target/powerpc/vsx-builtin-18c.c: New test.
* gcc.target/powerpc/vsx-builtin-18d.c: New test.
* gcc.target/powerpc/vsx-builtin-19c.c: New test.
* gcc.target/powerpc/vsx-builtin-19d.c: New test.
* gcc.target/powerpc/vsx-builtin-20c.c: New test.
* gcc.target/powerpc/vsx-builtin-20d.c: New test.
* gcc.target/powerpc/vsx-builtin-9c.c: New test.
* gcc.target/powerpc/vsx-builtin-9d.c: New test.

From-SVN: r271064

6 years agotree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
Richard Biener [Fri, 10 May 2019 12:01:47 +0000 (12:01 +0000)] 
tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.

2019-05-10  Richard Biener  <rguenther@suse.de>

* tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
(do_rpo_vn): Initialize next_value_id.

From-SVN: r271062

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

From-SVN: r271050

6 years ago* de.po, fr.po: Update.
Joseph Myers [Thu, 9 May 2019 21:41:45 +0000 (22:41 +0100)] 
* de.po, fr.po: Update.

From-SVN: r271046

6 years agobackport: re PR fortran/90351 (-fc-prototypes does not dump prototypes for external...
Thomas Koenig [Thu, 9 May 2019 17:40:30 +0000 (17:40 +0000)] 
backport: re PR fortran/90351 (-fc-prototypes does not dump prototypes for external procedures)

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

    Backport from trunk
    PR fortran/90351
    PR fortran/90329
    * gfortran.dg/dump-parse-tree.c: Include version.h.
    (gfc_dump_external_c_prototypes): New function.
    (get_c_type_name): Select "char" as a name for a simple char.
    Adjust to handling external functions. Also handle complex.
    (write_decl): Add argument bind_c. Adjust for dumping of external
    procedures.
    (write_proc): Likewise.
    (write_interop_decl): Add bind_c argument to call of write_proc.
    * gfortran.h: Add prototype for gfc_dump_external_c_prototypes.
    * lang.opt: Add -fc-prototypes-external flag.
    * parse.c (gfc_parse_file): Move dumping of BIND(C) prototypes.
    Call gfc_dump_external_c_prototypes if option is set.
    * invoke.texi: Document -fc-prototypes-external.

From-SVN: r271038

6 years agoClean up MPX-related stuff: CIF_CHKP
Thomas Schwinge [Thu, 9 May 2019 09:52:53 +0000 (11:52 +0200)] 
Clean up MPX-related stuff: CIF_CHKP

..., which was forgotten in recent r268844.

gcc/
* cif-code.def (CHKP): Remove.

trunk r271029

From-SVN: r271030

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

From-SVN: r271025

6 years agoAddress compiler diagnostics in libgomp.oacc-c-c++-common/pr87835.c
Thomas Schwinge [Wed, 8 May 2019 10:03:04 +0000 (12:03 +0200)] 
Address compiler diagnostics in libgomp.oacc-c-c++-common/pr87835.c

    source-gcc/libgomp/testsuite/libgomp.oacc-c-c++-common/pr87835.c: In function 'main':
    source-gcc/libgomp/testsuite/libgomp.oacc-c-c++-common/pr87835.c:45: warning: ignoring #pragma loop gang [-Wunknown-pragmas]
       45 |     #pragma loop gang
          |
    source-gcc/libgomp/testsuite/libgomp.oacc-c-c++-common/pr87835.c:19:7: warning: unused variable 'b' [-Wunused-variable]
       19 |   int b[n];
          |       ^

libgomp/
PR target/87835
* testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.

trunk r271004

From-SVN: r271005

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

From-SVN: r270996

6 years agoUpdate .po files.
Joseph Myers [Wed, 8 May 2019 00:05:32 +0000 (01:05 +0100)] 
Update .po files.

* be.po, da.po, de.po, el.po, es.po, fi.po, fr.po, hr.po, id.po,
ja.po, nl.po, ru.po, sr.po, sv.po, tr.po, uk.po, vi.po, zh_CN.po,
zh_TW.po: Update.

From-SVN: r270992

6 years agobackport: re PR target/89424 (__builtin_vec_ext_v1ti (v, i) results in ICE with varia...
Kelvin Nilsen [Tue, 7 May 2019 16:22:21 +0000 (16:22 +0000)] 
backport: re PR target/89424 (__builtin_vec_ext_v1ti (v, i) results in ICE with variable i (RS6000))

gcc/ChangeLog:

2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>

Backport from mainline.
2019-05-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>

PR target/89424
* config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
handling of V1TImode.

gcc/testsuite/ChangeLog:

2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>

Backport from mainline.
2019-05-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>

PR target/89424
* gcc.target/powerpc/pr89424-0.c: New test.
* gcc.target/powerpc/vsx-builtin-13a.c: Define macro PR89424 to
enable testing of newly patched capability.
* gcc.target/powerpc/vsx-builtin-13b.c: Likewise.
* gcc.target/powerpc/vsx-builtin-20a.c: Likewise.
* gcc.target/powerpc/vsx-builtin-20b.c: Likewise.

From-SVN: r270969

6 years agoFix make install-gcc-specs with empty GCC_SPECS_FILES
Rainer Orth [Tue, 7 May 2019 15:21:35 +0000 (15:21 +0000)] 
Fix make install-gcc-specs with empty GCC_SPECS_FILES

* gcc-interface/Makefile.in (install-gcc-specs): Use foreach.
Honor DESTDIR.

From-SVN: r270948

6 years agoDaily bump.
GCC Administrator [Tue, 7 May 2019 00:16:36 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r270932

6 years agoPR c++/90265 - ICE with generic lambda.
Marek Polacek [Mon, 6 May 2019 17:08:08 +0000 (17:08 +0000)] 
PR c++/90265 - ICE with generic lambda.

* pt.c (tsubst_copy_and_build): Use a dedicated variable for the last
element in the vector.

* g++.dg/cpp1y/lambda-generic-90265.C: New test.

From-SVN: r270919

6 years agore PR c++/90173 (ICE: Segmentation fault (in strip_declarator_types))
Paolo Carlini [Mon, 6 May 2019 15:23:37 +0000 (15:23 +0000)] 
re PR c++/90173 (ICE: Segmentation fault (in strip_declarator_types))

/cp
2019-05-06  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/90173
* decl.c (grokdeclarator): Set type to error_mark_node
upon error about template placeholder type non followed
by a simple declarator-id.

/testsuite
2019-05-06  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/90173
* g++.dg/cpp1z/class-deduction66.C: New.

From-SVN: r270915

6 years agoBackport r270899
Martin Liska [Mon, 6 May 2019 14:01:45 +0000 (16:01 +0200)] 
Backport r270899

2019-05-06  Martin Liska  <mliska@suse.cz>

Backport from mainline
2019-05-06  Martin Liska  <mliska@suse.cz>

PR sanitizer/90312
* config/i386/i386-options.c (ix86_option_override_internal): Error only
when -mabi is selected to a non-default version.
2019-05-06  Martin Liska  <mliska@suse.cz>

Backport from mainline
2019-05-06  Martin Liska  <mliska@suse.cz>

PR sanitizer/90312
* gcc.dg/asan/pr87930.c: Run the test only on *linux or *gnu
systems.
* gcc.dg/tsan/pr88017.c: Likewise.

From-SVN: r270912

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

From-SVN: r270891

6 years agoDelete file created on the wrong branch
Michael Meissner [Sun, 5 May 2019 23:31:14 +0000 (23:31 +0000)] 
Delete file created on the wrong branch

From-SVN: r270886

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

From-SVN: r270880

6 years agoDelete unintentional file from the wrong branch
Michael Meissner [Sat, 4 May 2019 15:40:37 +0000 (15:40 +0000)] 
Delete unintentional file from the wrong branch

From-SVN: r270876

6 years agoDelete unintentional file from the wrong branch
Michael Meissner [Sat, 4 May 2019 15:39:52 +0000 (15:39 +0000)] 
Delete unintentional file from the wrong branch

From-SVN: r270875

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

From-SVN: r270866

6 years agosetup branch
Michael Meissner [Fri, 3 May 2019 22:33:10 +0000 (22:33 +0000)] 
setup branch

From-SVN: r270863

6 years agobackport: os/user: disable TestGroupIds for AIX
Ian Lance Taylor [Fri, 3 May 2019 17:15:42 +0000 (17:15 +0000)] 
backport: os/user: disable TestGroupIds for AIX

Backport from trunk:

    os/user: disable TestGroupIds for AIX

    The corresponding Go Toolchain patch is CL 164039

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/175079

From-SVN: r270856

6 years agore PR tree-optimization/90316 (large compile time increase in opt / alias stmt walkin...
Richard Biener [Fri, 3 May 2019 11:22:33 +0000 (11:22 +0000)] 
re PR tree-optimization/90316 (large compile time increase in opt / alias stmt walking for Go example)

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

PR tree-optimization/90316
* tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
before running VN.

From-SVN: r270849

6 years ago* BASE-VER: Set to 9.1.1.
Jakub Jelinek [Fri, 3 May 2019 08:47:02 +0000 (10:47 +0200)] 
* BASE-VER: Set to 9.1.1.

From-SVN: r270842

6 years agoUpdate ChangeLog and version files for release releases/gcc-9.1.0
GCC Administrator [Fri, 3 May 2019 07:59:54 +0000 (07:59 +0000)] 
Update ChangeLog and version files for release

From-SVN: r270839

6 years ago* gennews (files): Add files for GCC 9.
Jakub Jelinek [Fri, 3 May 2019 07:41:05 +0000 (09:41 +0200)] 
* gennews (files): Add files for GCC 9.

From-SVN: r270838

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

From-SVN: r270830

6 years ago* gcc.pot: Regenerate.
Joseph Myers [Thu, 2 May 2019 20:30:48 +0000 (21:30 +0100)] 
* gcc.pot: Regenerate.

From-SVN: r270823

6 years agolibphobos: Correct my identity in the last ChangeLog entry
Maciej W. Rozycki [Thu, 2 May 2019 17:16:04 +0000 (17:16 +0000)] 
libphobos: Correct my identity in the last ChangeLog entry

From-SVN: r270818

6 years agolibphobos: RISC-V: Fix soft-float build errors with IEEE exception flags
Maciej W. Rozycki [Thu, 2 May 2019 16:39:16 +0000 (16:39 +0000)] 
libphobos: RISC-V: Fix soft-float build errors with IEEE exception flags

Fix assembly errors:

.../libphobos/src/std/math.d: Assembler messages:.../libphobos/src/std/math.d:4773: Error: unrecognized opcode `frflags a0'.../libphobos/src/std/math.d:4856: Error: unrecognized opcode `fsflags a5'.../libphobos/src/std/math.d:4856: Error: unrecognized opcode `fsflags a5'.../libphobos/src/std/math.d:4773: Error: unrecognized opcode `frflags a0'.../libphobos/src/std/math.d:5549: Error: unrecognized opcode `fscsr a5'.../libphobos/src/std/math.d:5456: Error: unrecognized opcode `frcsr a5'.../libphobos/src/std/math.d:5456: Error: unrecognized opcode `frcsr a5'.../libphobos/src/std/math.d:5549: Error: unrecognized opcode `fscsr a5'.../libphobos/src/std/math.d:5456: Error: unrecognized opcode `frcsr a5'.../libphobos/src/std/math.d:5549: Error: unrecognized opcode `fscsr a0'.../libphobos/src/std/math.d:5456: Error: unrecognized opcode `frcsr a0'.../libphobos/src/std/math.d:5456: Error: unrecognized opcode `frcsr a0'.../libphobos/src/std/math.d:5549: Error: unrecognized opcode `fscsr s2'make[8]: *** [Makefile:1119: std/math.lo] Error 1

triggered with the RISC-V lp64 multilib in a GCC build configured with
`--enable-multilib --enable-languages=all --target=riscv64-linux-gnu'.
This is due to unconditional explicit use of F extension instructions
within inline assembly, to access IEEE exception flags.  The use of
these instructions is not allowed when building for a soft-float ABI.

Correct the problem by wrapping said inline assembly into a conditional
such that if `D_SoftFloat' is true, then reads from IEEE exception flags
return 0 and writes are ignored instead, complementing r270522
("libphobos: Add D support for RISC-V Linux"), which is an updated
version of <https://gcc.gnu.org/ml/gcc-patches/2019-04/msg00325.html>,
where the problematic code has originated from.

libphobos/ChangeLog:

2019-05-02  Maciej Rozycki  <macro@wdc.com>

* std/math.d (IeeeFlags.getIeeeFlags): Handle RISC-V soft-float ABI.
(IeeeFlags.resetIeeeFlags): Likewise.
(FloatingPointControl.getControlState): Likewise.
(FloatingPointControl.setControlState): Likewise.

From-SVN: r270816

6 years agoRestrict gcc.target/i386/spellcheck-options-5.c to Linux targets
Rainer Orth [Thu, 2 May 2019 13:33:02 +0000 (13:33 +0000)] 
Restrict gcc.target/i386/spellcheck-options-5.c to Linux targets

* gcc.target/i386/spellcheck-options-5.c: Restrict to Linux and
GNU targets.

From-SVN: r270796

6 years agoMakefile.am (gfor_cdir): Remove $(MULTISUBDIR).
Jakub Jelinek [Thu, 2 May 2019 13:03:46 +0000 (15:03 +0200)] 
Makefile.am (gfor_cdir): Remove $(MULTISUBDIR).

* Makefile.am (gfor_cdir): Remove $(MULTISUBDIR).
* Makefile.in: Regenerated.

From-SVN: r270794

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

From-SVN: r270785