]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
7 years agoDaily bump.
GCC Administrator [Sun, 28 Jan 2018 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r257128

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

From-SVN: r257115

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

From-SVN: r257071

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

From-SVN: r257034

7 years agobackport: rs6000-p8swap.c (swap_feeds_both_load_and_store): New function.
Bill Schmidt [Wed, 24 Jan 2018 21:12:55 +0000 (21:12 +0000)] 
backport: rs6000-p8swap.c (swap_feeds_both_load_and_store): New function.

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

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

* config/rs6000/rs6000-p8swap.c (swap_feeds_both_load_and_store):
New function.
(rs6000_analyze_swaps): Mark a web unoptimizable if it contains a
swap associated with both a load and a store.

From-SVN: r257030

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

From-SVN: r257006

7 years agolibgcc: xtensa: fix NaN return from add/sub/mul/div helpers
Max Filippov [Tue, 23 Jan 2018 21:54:09 +0000 (21:54 +0000)] 
libgcc: xtensa: fix NaN return from add/sub/mul/div helpers

libgcc/
2018-01-23  Max Filippov  <jcmvbkbc@gmail.com>

Backport from mainline
2018-01-23  Max Filippov  <jcmvbkbc@gmail.com>

* config/xtensa/ieee754-df.S (__addsf3, __subsf3, __mulsf3)
(__divsf3): Make NaN return value quiet.
* config/xtensa/ieee754-sf.S (__adddf3, __subdf3, __muldf3)
(__divdf3): Make NaN return value quiet.

From-SVN: r257004

7 years agobackport: re PR target/83399 (Power8 ICE During LRA with 2-op rtl pattern for lvx...
Peter Bergner [Tue, 23 Jan 2018 18:18:25 +0000 (12:18 -0600)] 
backport: re PR target/83399 (Power8 ICE During LRA with 2-op rtl pattern for lvx instruction)

gcc/
Back port from mainline
2018-01-10  Peter Bergner  <bergner@vnet.ibm.com>

PR target/83399
* config/rs6000/rs6000.c (print_operand) <'y'>: Use
VECTOR_MEM_ALTIVEC_OR_VSX_P.
* config/rs6000/vsx.md (*vsx_le_perm_load_<mode> for VSX_D): Use
indexed_or_indirect_operand predicate.
(*vsx_le_perm_load_<mode> for VSX_W): Likewise.
(*vsx_le_perm_load_v8hi): Likewise.
(*vsx_le_perm_load_v16qi): Likewise.
(*vsx_le_perm_store_<mode> for VSX_D): Likewise.
(*vsx_le_perm_store_<mode> for VSX_W): Likewise.
(*vsx_le_perm_store_v8hi): Likewise.
(*vsx_le_perm_store_v16qi): Likewise.
(eight unnamed splitters): Likewise.

gcc/testsuite/
Back port from mainline
2018-01-10  Peter Bergner  <bergner@vnet.ibm.com>

PR target/83399
* gcc.target/powerpc/pr83399.c: New test.

From-SVN: r256993

7 years agobackport: re PR target/83862 (powerpc: ICE in signbit testcase)
Michael Meissner [Tue, 23 Jan 2018 15:07:00 +0000 (15:07 +0000)] 
backport: re PR target/83862 (powerpc: ICE in signbit testcase)

[gcc]
2018-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>

Back port from trunk
2018-01-22  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/83862
* config/rs6000/rs6000-protos.h (rs6000_split_signbit): Delete,
no longer used.
* config/rs6000/rs6000.c (rs6000_split_signbit): Likewise.
* config/rs6000/rs6000.md (signbit<mode>2): Change code for IEEE
128-bit to produce an UNSPEC move to get the double word with the
signbit and then a shift directly to do signbit.
(signbit<mode>2_dm): Replace old IEEE 128-bit signbit
implementation with a new version that just does either a direct
move or a regular move.  Move memory interface to separate insns.
Move insns so they are next to the expander.
(signbit<mode>2_dm_mem_be): New combiner insns to combine load
with signbit move.  Split big and little endian case.
(signbit<mode>2_dm_mem_le): Likewise.
(signbit<mode>2_dm_<su>ext): Delete, no longer used.
(signbit<mode>2_dm2): Likewise.

[gcc/testsuite]
2018-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>

Back port from trunk
2018-01-22  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/83862
* gcc.target/powerpc/pr83862.c: New test.

From-SVN: r256987

7 years agoDaily bump.
GCC Administrator [Tue, 23 Jan 2018 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r256968

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

From-SVN: r256936

7 years agore PR target/81485 ([SH] ICE: in sh_find_set_of_reg, at config/sh/sh-protos.h:232)
Oleg Endo [Sun, 21 Jan 2018 13:00:51 +0000 (13:00 +0000)] 
re PR target/81485 ([SH] ICE: in sh_find_set_of_reg, at config/sh/sh-protos.h:232)

PR target/81485
* config/sh/sh-protos.h (sh_find_set_of_reg): Remove assert.

From-SVN: r256930

7 years agobackport: re PR target/80870 (ICE building 7.1.0 sh-elf crosscompiler on macOS)
Oleg Endo [Sun, 21 Jan 2018 05:15:59 +0000 (05:15 +0000)] 
backport: re PR target/80870 (ICE building 7.1.0 sh-elf crosscompiler on macOS)

Backport from mainline
2018-01-21  Oleg Endo  <olegendo@gcc.gnu.org>

PR target/80870
* config/sh/sh_optimize_sett_clrt.cc:
Use INCLUDE_ALGORITHM and INCLUDE_VECTOR instead of direct includes.

From-SVN: r256929

7 years agoDaily bump.
GCC Administrator [Sun, 21 Jan 2018 00:16:19 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r256922

7 years agore PR fortran/83900 (ICE in gfc_simplify_matmul, at fortran/simplify.c:4593)
Steven G. Kargl [Sat, 20 Jan 2018 20:56:45 +0000 (20:56 +0000)] 
re PR fortran/83900 (ICE in gfc_simplify_matmul, at fortran/simplify.c:4593)

2018-01-20  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/83900
    * simplify.c (gfc_simplify_matmul): Set return type correctly.

2018-01-20  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/83900
* gfortran.dg/matmul_18.f90: New test.

From-SVN: r256921

7 years agore PR fortran/83900 (ICE in gfc_simplify_matmul, at fortran/simplify.c:4593)
Steven G. Kargl [Sat, 20 Jan 2018 08:29:23 +0000 (08:29 +0000)] 
re PR fortran/83900 (ICE in gfc_simplify_matmul, at fortran/simplify.c:4593)

2018-01-19  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/83900
* simplify.c (gfc_simplify_matmul): Delete bogus assertion.

2018-01-19  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/83900
* gfortran.dg/matmul_17.f90: New test.

From-SVN: r256914

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

From-SVN: r256909

7 years agobackport: re PR fortran/80768 (NULL pointer dereferenced in gfc_check_num_images...
Steven G. Kargl [Fri, 19 Jan 2018 23:51:18 +0000 (23:51 +0000)] 
backport: re PR fortran/80768 (NULL pointer dereferenced in gfc_check_num_images at fortran/check.c)

2018-01-19  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport of r250734 from mainline
PR fortran/80768
* check.c (gfc_check_num_images): Fix typo.

2018-01-19  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/80768
* gfortran.dg/num_images_1.f90:  New test that tests fix in r250734.

From-SVN: r256908

7 years agoPR libstdc++/83834 replace wildcard pattern in linker script
Jonathan Wakely [Fri, 19 Jan 2018 11:25:33 +0000 (11:25 +0000)] 
PR libstdc++/83834 replace wildcard pattern in linker script

Backport from mainline
2018-01-16  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/83834
* config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace std::c[a-g]* wildcard
pattern with exact match for std::cerr.

From-SVN: r256883

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

From-SVN: r256868

7 years agoBack from mainline PR fortran/83874
Harald Anlauf [Thu, 18 Jan 2018 01:04:36 +0000 (01:04 +0000)] 
Back from mainline PR fortran/83874

2018-01-17  Harald Anlauf  <anlauf@gmx.de>

Back from mainline
PR fortran/83874
* decl.c (add_init_expr_to_sym): Do not dereference NULL pointer.

2018-01-17  Harald Anlauf  <anlauf@gmx.de>

Back from mainline
PR fortran/83874
* gfortran.dg/pr83874.f90: New test.

From-SVN: r256830

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

From-SVN: r256825

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

From-SVN: r256770

7 years agortlanal: dead_or_set_regno_p should handle CLOBBER (PR83424)
Segher Boessenkool [Tue, 16 Jan 2018 16:30:43 +0000 (17:30 +0100)] 
rtlanal: dead_or_set_regno_p should handle CLOBBER (PR83424)

In PR83424 combine's move_deaths puts a REG_DEAD note in the wrong place
because dead_or_set_regno_p does not account for CLOBBER insns.  This
fixes it.

PR rtl-optimization/83424
* rtlanal.c (dead_or_set_regno_p): Handle CLOBBER just like SET.

gcc/testsuite/
PR rtl-optimization/83424
* gcc.dg/pr83424.c: New testsuite.

From-SVN: r256752

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

From-SVN: r256717

7 years agoFix type printers for Library Fundamentals types
Jonathan Wakely [Mon, 15 Jan 2018 12:38:56 +0000 (12:38 +0000)] 
Fix type printers for Library Fundamentals types

* python/libstdcxx/v6/printers.py (register_type_printers): Remove
printer for experimental::any. Fix printers for experimental::optional
and experimental::basic_string_view.

From-SVN: r256699

7 years agoPR libstdc++/83626 Don't throw for remove("") and remove_all("")
Jonathan Wakely [Mon, 15 Jan 2018 12:38:52 +0000 (12:38 +0000)] 
PR libstdc++/83626 Don't throw for remove("") and remove_all("")

Backport from mainline
2018-01-04  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/83626
* src/filesystem/ops.cc (remove(const path&, error_code&))): Do not
return an error for non-existent paths. Remove unnecessary
symlink_status call.
(remove_all(const path&)): Fix type of result variable.
(remove_all(const path&, error_code&))): Use non-throwing increment
for directory iterator. Do not return an error for non-existent paths.
* testsuite/experimental/filesystem/operations/remove.cc: New test.
* testsuite/experimental/filesystem/operations/remove_all.cc: Fix
expected results for non-existent paths.

From-SVN: r256697

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

From-SVN: r256678

7 years agobackport: re PR target/83677 (PPC: The xxpermr instruction is not generated correctly)
Bill Schmidt [Sun, 14 Jan 2018 17:49:39 +0000 (17:49 +0000)] 
backport: re PR target/83677 (PPC: The xxpermr instruction is not generated correctly)

[gcc]

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

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

PR target/83677
* config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
Reverse order of second and third operands in first alternative.
* config/rs6000/rs6000.c (rs6000_expand_vector_set): Reverse order
of first and second elements in UNSPEC_VPERMR vector.
(altivec_expand_vec_perm_le): Likewise.

[gcc/testsuite]

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

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

PR target/83677
* gcc.target/powerpc/pr83677.c: New file.

From-SVN: r256671

7 years agoDaily bump.
GCC Administrator [Sun, 14 Jan 2018 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r256651

7 years agobackport: re PR fortran/78814 (ICE in symbol_rank, at fortran/interface.c:1265)
Steven G. Kargl [Sat, 13 Jan 2018 19:12:32 +0000 (19:12 +0000)] 
backport: re PR fortran/78814 (ICE in symbol_rank, at fortran/interface.c:1265)

2012-01-13  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from mainline
        PR fortran/78814
        * interface.c (symbol_rank): Check for NULL pointer.

2012-01-13  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from mainline
        PR fortran/78814
        * gfortran.dg/interface_40.f90: New testcase.

From-SVN: r256647

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

From-SVN: r256600

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

From-SVN: r256559

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

From-SVN: r256470

7 years agore PR fortran/82367 (ICE with deferred length string allocate on non-deferred length...
Steven G. Kargl [Wed, 10 Jan 2018 23:55:00 +0000 (23:55 +0000)] 
re PR fortran/82367 (ICE with deferred length string allocate on non-deferred length argument)

2018-01-10  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/82367
* resolve.c (resolve_allocate_expr): Check for NULL pointer.

2018-01-10  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/82367
* gfortran.dg/deferred_character_18.f90: New test.

From-SVN: r256467

7 years agobackport: re PR fortran/83093 (ICE in fold_convert_loc, at fold-const.c:2266)
Steven G. Kargl [Wed, 10 Jan 2018 22:50:28 +0000 (22:50 +0000)] 
backport: re PR fortran/83093 (ICE in fold_convert_loc, at fold-const.c:2266)

2018-01-10 Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk
PR fortran/83093
* resolve.c (resolve_charlen): Check the type of cl->length
after resolution.

2018-01-10  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk
PR fortran/83093
* gfortran.dg/allocate_with_typespec_7.f90: New test.

From-SVN: r256461

7 years agobackport: re PR fortran/82841 (Segfault in gfc_simplify_transfer)
Steven G. Kargl [Wed, 10 Jan 2018 18:44:12 +0000 (18:44 +0000)] 
backport: re PR fortran/82841 (Segfault in gfc_simplify_transfer)

2018-01-10  Steven G. Kargl  <kargl@kgcc.gnu.org>

Backport r254555 from trunk
PR Fortran/82841
* gfortran.dg/transfer_simplify_11.f90: New test.

2018-01-10  Steven G. Kargl  <kargl@kgcc.gnu.org>

Backport r254555 from trunk
PR Fortran/82841
* simplify.c(gfc_simplify_transfer): Do not dereference a NULL pointer.
Unwrap a short line.

From-SVN: r256444

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

From-SVN: r256413

7 years ago[arm] PR target/82975: Guard against reg_renumber being NULL in arm.h
Kyrylo Tkachov [Tue, 9 Jan 2018 11:38:04 +0000 (11:38 +0000)] 
[arm] PR target/82975: Guard against reg_renumber being NULL in arm.h

Backport from mainline
2017-12-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

PR target/82975
* config/arm/arm.h (TEST_REGNO): Check reg_renumber is set before
accessing it.  Adjust comment.

* gcc.dg/pr82975.c: New test.

From-SVN: r256377

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

From-SVN: r256359

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

From-SVN: r256325

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

From-SVN: r256315

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

From-SVN: r256302

7 years agoFix typo in std::wbuffer_convert
Jonathan Wakely [Fri, 5 Jan 2018 22:48:45 +0000 (22:48 +0000)] 
Fix typo in std::wbuffer_convert

Backport from mainline
2017-11-14  Jonathan Wakely  <jwakely@redhat.com>

* include/bits/locale_conv.h (wbuffer_convert::_M_conv_get): Fix typo.
* testsuite/22_locale/conversions/buffer/3.cc: New test.

From-SVN: r256300

7 years agoImprove tests for error reporting in Filesystem TS
Jonathan Wakely [Fri, 5 Jan 2018 22:48:28 +0000 (22:48 +0000)] 
Improve tests for error reporting in Filesystem TS

Backport from mainline
2017-10-19  Jonathan Wakely  <jwakely@redhat.com>

* testsuite/experimental/filesystem/iterators/
recursive_directory_iterator.cc: Ensure that error_code arguments are
cleared when required.
* testsuite/experimental/filesystem/operations/create_directory.cc:
Remove redundant check.
* testsuite/experimental/filesystem/operations/temp_directory_path.cc:
Ensure that error_code argument is cleared when required.

From-SVN: r256299

7 years agoPR libstdc++/83600 fix end iterator for unready std::match_results
Jonathan Wakely [Fri, 5 Jan 2018 22:48:00 +0000 (22:48 +0000)] 
PR libstdc++/83600 fix end iterator for unready std::match_results

Backport from mainline
2017-12-27  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/83600
* include/bits/regex.h (match_results::end()): Return valid iterator
when not ready.
* testsuite/28_regex/match_results/ctors/char/default.cc: Check that
unready objects are empty and have equal begin and end iterators.
* testsuite/28_regex/match_results/ctors/wchar_t/default.cc: Likewise.

From-SVN: r256298

7 years agoPR libstdc++/83598 don't modify flags passed to std::basic_regex constructors
Jonathan Wakely [Fri, 5 Jan 2018 22:47:54 +0000 (22:47 +0000)] 
PR libstdc++/83598 don't modify flags passed to std::basic_regex constructors

Backport from mainline
2017-12-27  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/83598
* include/bits/regex.h (basic_regex): Don't modify flags passed to
constructors.
* testsuite/28_regex/basic_regex/ctors/83598.cc: New test.

From-SVN: r256297

7 years agoPR libstdc++/83279 handle sendfile not copying entire file
Jonathan Wakely [Fri, 5 Jan 2018 22:47:50 +0000 (22:47 +0000)] 
PR libstdc++/83279 handle sendfile not copying entire file

Backport from mainline
2017-12-14  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/83279
* src/filesystem/std-ops.cc (do_copy_file): Handle sendfile not
copying entire file.

From-SVN: r256296

7 years agoAvoid redundant calls to filesystem::status_known
Jonathan Wakely [Fri, 5 Jan 2018 22:47:46 +0000 (22:47 +0000)] 
Avoid redundant calls to filesystem::status_known

Backport from mainline
2018-01-04  Jonathan Wakely  <jwakely@redhat.com>

* include/experimental/fs_ops.h (exists(const path&, error_code&))):
Only check status_known once.

From-SVN: r256295

7 years agoPR libstdc++/79283 fix filesystem::read_symlink for /proc
Jonathan Wakely [Fri, 5 Jan 2018 22:47:42 +0000 (22:47 +0000)] 
PR libstdc++/79283 fix filesystem::read_symlink for /proc

Backport from mainline
2017-10-25  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/79283
* src/filesystem/ops.cc (read_symlink): Handle st_size being zero.

From-SVN: r256294

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

From-SVN: r256270

7 years agore PR fortran/83679 (r256113 causes regression on pr77942.f90)
Steven G. Kargl [Thu, 4 Jan 2018 20:18:58 +0000 (20:18 +0000)] 
re PR fortran/83679 (r256113 causes regression on pr77942.f90)

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

PR Fortran/83679
* simplify.c (gfc_simplify_cshift): Restore early return for zero-sized
array.  Update Copyright year while here.

From-SVN: r256264

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

From-SVN: r256220

7 years agoPR libgfortran/83649 Chunk large reads and writes
Janne Blomqvist [Wed, 3 Jan 2018 12:08:05 +0000 (14:08 +0200)] 
PR libgfortran/83649 Chunk large reads and writes

Backport from trunk.

It turns out that Linux never reads or writes more than 2147479552
bytes in a single syscall. For writes this is not a problem as
libgfortran already contains a loop around write() to handle short
writes. But for reads we cannot do this, since then read will hang if
we have a short read when reading from the terminal.  Also, there are
reports that macOS fails I/O's larger than 2 GB.  Thus, to work around
these issues do large reads/writes in chunks.

The testcase from the PR

program largewr
  integer(kind=1) :: a(2_8**31+1)
  a = 0
  a(size(a, kind=8)) = 1
  open(10, file="largewr.dat", access="stream", form="unformatted")
  write (10) a
  close(10)
  a(size(a, kind=8)) = 2
  open(10, file="largewr.dat", access="stream", form="unformatted")
  read (10) a
  if (a(size(a, kind=8)) == 1) then
    print *, "All is well"
  else
    print *, "Oh no"
  end if
end program largewr

fails on trunk but works with the patch.

Regtested on x86_64-pc-linux-gnu, committed to trunk.

libgfortran/ChangeLog:

2018-01-03  Janne Blomqvist  <jb@gcc.gnu.org>

PR libgfortran/83649
* io/unix.c (MAX_CHUNK): New define.
(raw_read): For reads larger than MAX_CHUNK, loop.
(raw_write): Write no more than MAX_CHUNK bytes per iteration.

From-SVN: r256173

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

From-SVN: r256114

7 years agobackport: re PR fortran/83650 (Wrong simplification in cshift with negative shifts)
Thomas Koenig [Tue, 2 Jan 2018 23:03:11 +0000 (23:03 +0000)] 
backport: re PR fortran/83650 (Wrong simplification in cshift with negative shifts)

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

Backport from 7-branch
PR fortran/83650
* simplify.c (gfc_simplify_cshift): Correct contition for
negative shifts.

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

Backport from 7-branch
PR fortran/83650
* gfortran.dg/simplify_cshift_1.f90: Correct condition.

From-SVN: r256113

7 years agoDaily bump.
GCC Administrator [Tue, 2 Jan 2018 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r256066

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

From-SVN: r256056

7 years agoDaily bump.
GCC Administrator [Sun, 31 Dec 2017 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r256046

7 years agoDaily bump.
GCC Administrator [Sat, 30 Dec 2017 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r256037

7 years agoDaily bump.
GCC Administrator [Fri, 29 Dec 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r256028

7 years agoDaily bump.
GCC Administrator [Thu, 28 Dec 2017 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r256015

7 years agoDaily bump.
GCC Administrator [Wed, 27 Dec 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r256004

7 years agoDaily bump.
GCC Administrator [Tue, 26 Dec 2017 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r255998

7 years agoDaily bump.
GCC Administrator [Mon, 25 Dec 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r255994

7 years agoDaily bump.
GCC Administrator [Sun, 24 Dec 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r255989

7 years agoDaily bump.
GCC Administrator [Sat, 23 Dec 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r255984

7 years agoDaily bump.
GCC Administrator [Fri, 22 Dec 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r255963

7 years agoDaily bump.
GCC Administrator [Thu, 21 Dec 2017 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r255907

7 years agoDaily bump.
GCC Administrator [Wed, 20 Dec 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r255846

7 years agoDaily bump.
GCC Administrator [Tue, 19 Dec 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r255793

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

From-SVN: r255769

7 years agobackport: pa.c (pa_legitimate_address_p): For scaled indexing...
John David Anglin [Sun, 17 Dec 2017 17:05:15 +0000 (17:05 +0000)] 
backport: pa.c (pa_legitimate_address_p): For scaled indexing...

Backport from mainline
2017-12-03  John David Anglin  <danglin@gcc.gnu.org>

* config/pa/pa.c (pa_legitimate_address_p): For scaled indexing,
require base operand is a REG_POINTER prior to reload on targets
with non-equivalent space registers.

From-SVN: r255763

7 years agoDaily bump.
GCC Administrator [Sun, 17 Dec 2017 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r255756

7 years agobackport: re PR libfortran/81937 (stack-buffer-overflow on memcpy in libgfortran...
Jerry DeLisle [Sat, 16 Dec 2017 22:41:13 +0000 (22:41 +0000)] 
backport: re PR libfortran/81937 (stack-buffer-overflow on memcpy in libgfortran/io/unix.c on character(kind=4))

2017-12-16  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

Backport from trunk
PR libgfortran/81937
* io/list_read.c (next_char_internal): Don't attempt to read
from the internal unit stream if no bytes are left. Decrement
bytes_left in the right place.

From-SVN: r255754

7 years agoDaily bump.
GCC Administrator [Sat, 16 Dec 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r255732

7 years agore PR target/66488 (segfault on sizeof(long) < sizeof(void*) and large GCC memory...
Eric Botcazou [Fri, 15 Dec 2017 11:32:27 +0000 (11:32 +0000)] 
re PR target/66488 (segfault on sizeof(long) < sizeof(void*) and large GCC memory usage)

PR target/66488
* ggc-page.c (HOST_BITS_PER_PTR): Do not define here...
* hwint.h (HOST_BITS_PER_PTR): ...but here instead.

From-SVN: r255689

7 years agobackport: ppc-auxv.h (PPC_FEATURE2_HTM_NO_SUSPEND): New define.
Peter Bergner [Fri, 15 Dec 2017 03:44:16 +0000 (21:44 -0600)] 
backport: ppc-auxv.h (PPC_FEATURE2_HTM_NO_SUSPEND): New define.

gcc/
Backport from mainline
2017-12-13  Peter Bergner  <bergner@vnet.ibm.com>

* config/rs6000/ppc-auxv.h (PPC_FEATURE2_HTM_NO_SUSPEND): New define.
* config/rs6000/rs6000.c (cpu_supports_info): Use it.

gcc/testsuite/
Backport from mainline
2017-12-13  Peter Bergner  <bergner@vnet.ibm.com>

* gcc.target/powerpc/cpu-builtin-1.c (htm-no-suspend): Add test.

From-SVN: r255672

7 years agobackport: re PR target/80210 (ICE in in extract_insn, at recog.c:2311 on ppc64 for...
Peter Bergner [Fri, 15 Dec 2017 03:41:16 +0000 (21:41 -0600)] 
backport: re PR target/80210 (ICE in in extract_insn, at recog.c:2311 on ppc64 for with __builtin_pow)

gcc/
Backport from mainline
2017-10-02  Peter Bergner  <bergner@vnet.ibm.com>

PR target/80210
* config/rs6000/rs6000.c (rs6000_option_override_internal): Rewrite
function to not use the have_cpu variable.  Do not set cpu_index,
rs6000_cpu_index or rs6000_tune_index if we end up using TARGET_DEFAULT
or the default cpu.
(rs6000_valid_attribute_p): Remove duplicate initializations of
old_optimize and func_optimize.
(rs6000_pragma_target_parse): Call rs6000_activate_target_options ().
(rs6000_activate_target_options): Make global.
* config/rs6000/rs6000-protos.h (rs6000_activate_target_options): Add
prototype.

gcc/testsuite/
Backport from mainline
2017-10-02  Peter Bergner  <bergner@vnet.ibm.com>

PR target/80210
* gcc.target/powerpc/pr80210-2.c: New test.

From-SVN: r255671

7 years agoDaily bump.
GCC Administrator [Fri, 15 Dec 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r255668

7 years agodecl.c (gnat_to_gnu_field): Do not set the alignment of the enclosing record type...
Eric Botcazou [Thu, 14 Dec 2017 17:07:28 +0000 (17:07 +0000)] 
decl.c (gnat_to_gnu_field): Do not set the alignment of the enclosing record type if it is not already set.

* gcc-interface/decl.c (gnat_to_gnu_field): Do not set the alignment
of the enclosing record type if it is not already set.

From-SVN: r255647

7 years agoPR libstdc++/59568 don't use putback or update value when extraction fails
Jonathan Wakely [Thu, 14 Dec 2017 12:01:40 +0000 (12:01 +0000)] 
PR libstdc++/59568 don't use putback or update value when extraction fails

PR libstdc++/59568
* include/std/complex (operator>>): Only use putback if a character
was successfully extracted and only set the value if a number was
successfully extracted.
* testsuite/26_numerics/complex/inserters_extractors/char/59568.cc:
New test.

From-SVN: r255634

7 years agoDaily bump.
GCC Administrator [Thu, 14 Dec 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r255618

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

From-SVN: r255594

7 years agoDaily bump.
GCC Administrator [Tue, 12 Dec 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r255560

7 years ago[PR c++/83301] cgraph.c segfault
Thomas Schwinge [Mon, 11 Dec 2017 09:49:25 +0000 (10:49 +0100)] 
[PR c++/83301] cgraph.c segfault

Backport trunk r243377:

gcc/
2016-12-07  Jakub Jelinek  <jakub@redhat.com>

PR c++/78692
* cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Set lhs
var to lhs of new_stmt right before noreturn handling rather than to
lhs of e->call_stmt early.

gcc/testsuite/
2016-12-07  Jakub Jelinek  <jakub@redhat.com>

PR c++/78692
* g++.dg/torture/pr78692.C: New test.

From-SVN: r255538

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

From-SVN: r255535

7 years agoBackport "Fix condition folding in c_parser_omp_for_loop"
Tom de Vries [Sun, 10 Dec 2017 21:37:08 +0000 (21:37 +0000)] 
Backport "Fix condition folding in c_parser_omp_for_loop"

2017-12-10  Tom de Vries  <tom@codesourcery.com>

backport from trunk:
2017-09-16  Tom de Vries  <tom@codesourcery.com>

PR c/81875
* c-parser.c (c_parser_omp_for_loop): Fold only operands of cond, not
cond itself.

* testsuite/libgomp.c/pr81875.c: New test.

From-SVN: r255532

7 years agoDaily bump.
GCC Administrator [Sun, 10 Dec 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r255525

7 years agoDaily bump.
GCC Administrator [Sat, 9 Dec 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r255518

7 years agoDaily bump.
GCC Administrator [Fri, 8 Dec 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r255488

7 years agoDaily bump.
GCC Administrator [Thu, 7 Dec 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r255458

7 years agoDaily bump.
GCC Administrator [Wed, 6 Dec 2017 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r255435

7 years agoDaily bump.
GCC Administrator [Tue, 5 Dec 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r255396

7 years agoFix PR82941 and PR82942 by adding proper vzeroupper generation on SKX.
Sebastian Peryt [Mon, 4 Dec 2017 11:40:44 +0000 (12:40 +0100)] 
Fix PR82941 and PR82942 by adding proper vzeroupper generation on SKX.

Add X86_TUNE_EMIT_VZEROUPPER to indicate if vzeroupper instruction should
be inserted before a transfer of control flow out of the function.  It is
turned on by default unless we are tuning for KNL.  Users can always use
-mzeroupper or -mno-zeroupper to override X86_TUNE_EMIT_VZEROUPPER.

2017-12-04  Sebastian Peryt  <sebastian.peryt@intel.com>
H.J. Lu  <hongjiu.lu@intel.com>

gcc/
Bakcported from trunk
PR target/82941
PR target/82942
PR target/82990
* config/i386/i386.c (pass_insert_vzeroupper): Remove
TARGET_AVX512F check from gate condition.
(ix86_check_avx256_register): Changed to ...
(ix86_check_avx_upper_register): ... this. Add extra check for
VALID_AVX512F_REG_OR_XI_MODE.
(ix86_avx_u128_mode_needed): Changed
ix86_check_avx256_register to ix86_check_avx_upper_register.
(ix86_check_avx256_stores): Changed to ...
(ix86_check_avx_upper_stores): ... this. Changed
ix86_check_avx256_register to ix86_check_avx_upper_register.
(ix86_avx_u128_mode_after): Changed
avx_reg256_found to avx_upper_reg_found. Changed
ix86_check_avx256_stores to ix86_check_avx_upper_stores.
(ix86_avx_u128_mode_entry): Changed
ix86_check_avx256_register to ix86_check_avx_upper_register.
(ix86_avx_u128_mode_exit): Ditto.
(ix86_option_override_internal): Set MASK_VZEROUPPER if
neither -mzeroupper nor -mno-zeroupper is used and
TARGET_EMIT_VZEROUPPER is set.
* config/i386/i386.h: (host_detect_local_cpu): New define.
(TARGET_EMIT_VZEROUPPER): New.
* config/i386/x86-tune.def: Add X86_TUNE_EMIT_VZEROUPPER.

gcc/testsuite/
Backported from trunk
PR target/82941
PR target/82942
PR target/82990
* gcc.target/i386/pr82941-1.c: New test.
* gcc.target/i386/pr82941-2.c: Likewise.
* gcc.target/i386/pr82942-1.c: Likewise.
* gcc.target/i386/pr82942-2.c: Likewise.
* gcc.target/i386/pr82990-1.c: Likewise.
* gcc.target/i386/pr82990-2.c: Likewise.
* gcc.target/i386/pr82990-3.c: Likewise.
* gcc.target/i386/pr82990-4.c: Likewise.
* gcc.target/i386/pr82990-5.c: Likewise.
* gcc.target/i386/pr82990-6.c: Likewise.
* gcc.target/i386/pr82990-7.c: Likewise.

Co-Authored-By: H.J. Lu <hongjiu.lu@intel.com>
From-SVN: r255379

7 years agoDaily bump.
GCC Administrator [Mon, 4 Dec 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r255370

7 years agoDaily bump.
GCC Administrator [Sun, 3 Dec 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r255359

7 years agoDaily bump.
GCC Administrator [Sat, 2 Dec 2017 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r255342

7 years agors6000: Improve comparison rtx_cost (PR81288)
Segher Boessenkool [Fri, 1 Dec 2017 20:37:33 +0000 (21:37 +0100)] 
rs6000: Improve comparison rtx_cost (PR81288)

The current rs6000 rtx_cost for comparisons against 0 is very high if
TARGET_ISEL && !TARGET_MFCRF, much higher than for reg-reg comparisons,
much higher than a load of 0 and such a reg-reg-comparison.  This leads
to infinite recursion in CSE (see PR81288).

This patch removes the too-high cost, also simplifying this code.

PR 81288/target
* config/rs6000/rs6000.c (rs6000_rtx_costs): Do not handle
TARGET_ISEL && !TARGET_MFCRF differently.  Simplify code.

From-SVN: r255338

7 years agoDaily bump.
GCC Administrator [Fri, 1 Dec 2017 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r255286