gcc/libgfortran/intrinsics
Janne Blomqvist a97ae55991 Make shift argument to eoshift0 and eoshift2 be of type index_type
Test case that requires 4 GB RAM that exercises eoshift0:

program main
  implicit none
  integer(1) :: line(2_8**31+10)
  line = 42
  line = eoshift(line, 2_8**31+7)
  print *, line(1:4)
  print *, line((ubound(line, 1, kind=8)-4):ubound(line, 1, kind=8))
end program main

Before patch:
❯ ./a.out
    0    0    0    0
    42   42   42   42   42

With patch:
❯ ./a.out
   42   42   42    0
   0    0    0    0    0

Regtested on x86_64-pc-linux-gnu.

libgfortran/ChangeLog:

2017-11-22  Janne Blomqvist  <jb@gcc.gnu.org>

        * intrinsics/eoshift0.c (eoshift0): Make shift an index_type.
        * intrinsics/eoshift2.c (eoshift2): Make shift an index_type.

From-SVN: r255077
2017-11-22 22:42:39 +02:00
..
abort.c Update copyright years. 2017-01-01 13:07:43 +01:00
access.c Update copyright years. 2017-01-01 13:07:43 +01:00
args.c Revert r244448 2017-01-13 21:53:16 +02:00
associated.c Update copyright years. 2017-01-01 13:07:43 +01:00
c99_functions.c re PR fortran/79305 (real128 - undefined reference to cexpl) 2017-01-31 18:50:31 +00:00
chdir.c Update copyright years. 2017-01-01 13:07:43 +01:00
chmod.c Revert r244448 2017-01-13 21:53:16 +02:00
clock.c Update copyright years. 2017-01-01 13:07:43 +01:00
cpu_time.c Update copyright years. 2017-01-01 13:07:43 +01:00
cshift0.c Update copyright years. 2017-01-01 13:07:43 +01:00
ctime.c Update copyright years. 2017-01-01 13:07:43 +01:00
date_and_time.c Update copyright years. 2017-01-01 13:07:43 +01:00
dprod_r8.f90 Update copyright years. 2017-01-01 13:07:43 +01:00
dtime.c Update copyright years. 2017-01-01 13:07:43 +01:00
env.c Revert r244448 2017-01-13 21:53:16 +02:00
eoshift0.c Make shift argument to eoshift0 and eoshift2 be of type index_type 2017-11-22 22:42:39 +02:00
eoshift2.c Make shift argument to eoshift0 and eoshift2 be of type index_type 2017-11-22 22:42:39 +02:00
erfc_scaled.c Update copyright years. 2017-01-01 13:07:43 +01:00
erfc_scaled_inc.c Update copyright years. 2017-01-01 13:07:43 +01:00
etime.c Update copyright years. 2017-01-01 13:07:43 +01:00
execute_command_line.c re PR libfortran/82233 (execute_command_line causes program to stop when command fails (or does not exist)) 2017-10-10 16:49:32 +00:00
exit.c Update copyright years. 2017-01-01 13:07:43 +01:00
extends_type_of.c Revert r244448 2017-01-13 21:53:16 +02:00
f2c_specifics.F90 Update copyright years. 2017-01-01 13:07:43 +01:00
fnum.c Update copyright years. 2017-01-01 13:07:43 +01:00
gerror.c Revert r244448 2017-01-13 21:53:16 +02:00
getXid.c Update copyright years. 2017-01-01 13:07:43 +01:00
getcwd.c Update copyright years. 2017-01-01 13:07:43 +01:00
getlog.c Revert r244448 2017-01-13 21:53:16 +02:00
hostnm.c Revert r244448 2017-01-13 21:53:16 +02:00
ierrno.c Update copyright years. 2017-01-01 13:07:43 +01:00
ishftc.c Update copyright years. 2017-01-01 13:07:43 +01:00
kill.c Update copyright years. 2017-01-01 13:07:43 +01:00
link.c Update copyright years. 2017-01-01 13:07:43 +01:00
move_alloc.c Update copyright years. 2017-01-01 13:07:43 +01:00
mvbits.c Update copyright years. 2017-01-01 13:07:43 +01:00
pack_generic.c Update copyright years. 2017-01-01 13:07:43 +01:00
perror.c Update copyright years. 2017-01-01 13:07:43 +01:00
rand.c Update copyright years. 2017-01-01 13:07:43 +01:00
random.c Don't use Win32 functions on CYGWIN. 2017-03-15 15:46:35 +02:00
rename.c Update copyright years. 2017-01-01 13:07:43 +01:00
reshape_generic.c re PR libfortran/79956 (many new -Wmaybe-uninitialized warnings with bootstrap-O3) 2017-03-15 07:45:39 +00:00
reshape_packed.c Update copyright years. 2017-01-01 13:07:43 +01:00
selected_char_kind.c Update copyright years. 2017-01-01 13:07:43 +01:00
selected_int_kind.f90 Update copyright years. 2017-01-01 13:07:43 +01:00
selected_real_kind.f90 Update copyright years. 2017-01-01 13:07:43 +01:00
signal.c Update copyright years. 2017-01-01 13:07:43 +01:00
size.c Update copyright years. 2017-01-01 13:07:43 +01:00
sleep.c Update copyright years. 2017-01-01 13:07:43 +01:00
spread_generic.c Update copyright years. 2017-01-01 13:07:43 +01:00
stat.c Update copyright years. 2017-01-01 13:07:43 +01:00
string_intrinsics.c Update copyright years. 2017-01-01 13:07:43 +01:00
string_intrinsics_inc.c Revert r244448 2017-01-13 21:53:16 +02:00
symlnk.c Update copyright years. 2017-01-01 13:07:43 +01:00
system.c Update copyright years. 2017-01-01 13:07:43 +01:00
system_clock.c Don't use Win32 functions on CYGWIN. 2017-03-15 15:46:35 +02:00
time.c Update copyright years. 2017-01-01 13:07:43 +01:00
time_1.h Don't use Win32 functions on CYGWIN. 2017-03-15 15:46:35 +02:00
umask.c Update copyright years. 2017-01-01 13:07:43 +01:00
unlink.c Update copyright years. 2017-01-01 13:07:43 +01:00
unpack_generic.c Update copyright years. 2017-01-01 13:07:43 +01:00