re PR libfortran/67527 (io.h sanitizer complains on 1 << 31)
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sat, 12 Sep 2015 12:05:44 +0000 (12:05 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sat, 12 Sep 2015 12:05:44 +0000 (12:05 +0000)
commit76b88c5fc9930734f4d3496b9100862f62311ce5
tree178a900d2d4f9108057640a6f3190da9cedbade1
parent4e9da1551b2fea579e3e96b7fb80b32e101c268d
re PR libfortran/67527 (io.h sanitizer complains on 1 << 31)

PR libfortran/67527
PR libfortran/67535
PR libfortran/67536
* io/io.h: Use unsigned values for 31-bit left shifts.
* io/unix.c (buf_read): Do not call memcpy() with NULL pointer arg.
* io/write.c (nml_write_obj): Likewise.

From-SVN: r227705
libgfortran/ChangeLog
libgfortran/io/io.h
libgfortran/io/unix.c
libgfortran/io/write.c