https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118010

--- Comment #6 from Sam James <sjames at gcc dot gnu.org> ---
(In reply to Gaius Mulley from comment #2)
> Created attachment 59912 [details]
> Proposed fix
> 
> Many thanks for the bug report.
> 
> Here is a proposed patch, (although I've not built it with --Wtype-mismatch
> yet).
> I've altered all return types to libc_lseek to ssize_t and tested it with:
> 
> ../configure --prefix=$HOME/opt --enable-bootstrap
> --with-build-config="bootstrap-O3 bootstrap-lto"
> --enable-languages=c,c++,m2,lto
> 
> Any chance you can post your configure runes?

Sorry Gaius, I'd missed this -- yours should be basically equivalent, I just
add in BOOT_C{XX,}FLAGS="-O2 -Werror=odr -Werror=odr-type-mismatch".

Reply via email to