This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Compilation warning in simple-object-xcoff.c
- From: Eli Zaretskii <eliz at gnu dot org>
- To: DJ Delorie <dj at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, gdb-patches at sourceware dot org
- Date: Tue, 16 Jan 2018 20:24:57 +0200
- Subject: Re: Compilation warning in simple-object-xcoff.c
- Authentication-results: sourceware.org; auth=none
- References: <xnpo69wunj.fsf@greed.delorie.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: DJ Delorie <dj@redhat.com>
> Cc: gcc-patches@gcc.gnu.org, gdb-patches@sourceware.org
> Date: Tue, 16 Jan 2018 13:00:48 -0500
>
>
> I think that warning is valid - the host has a 32-bit limit to file
> sizes (off_t) but it's trying to read a 64-bit offset (in that clause).
> It's warning you that you won't be able to handle files as large as the
> field implies.
If 32-bit off_t cannot handle this, then perhaps this file (or that
function) should not be compiled for a 32-bit host?