Commit 6a071860 by Bernd Edlinger Committed by Bernd Edlinger

host-linux.c (linux_gt_pch_use_address): Don't use SSIZE_MAX because it is not always defined.

2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * gcc/config/host-linux.c (linux_gt_pch_use_address): Don't
        use SSIZE_MAX because it is not always defined.

From-SVN: r207488
parent 8e9d68a9
2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
* gcc/config/host-linux.c (linux_gt_pch_use_address): Don't
use SSIZE_MAX because it is not always defined.
2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
PR bootstrap/59913
......
......@@ -212,7 +212,7 @@ linux_gt_pch_use_address (void *base, size_t size, int fd, size_t offset)
{
ssize_t nbytes;
nbytes = read (fd, base, MIN (size, SSIZE_MAX));
nbytes = read (fd, base, MIN (size, (size_t)-1 >> 1));
if (nbytes <= 0)
return -1;
base = (char *) base + nbytes;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment