[Bug libstdc++/91947] std::filesystem::file_size will return wrong value on 32bit platforms with large files support

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 23 15:10:00 GMT 2020


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

--- Comment #16 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <redi@gcc.gnu.org>:

https://gcc.gnu.org/g:04681fca936b5bca1dd374dfb0fbca7ccb028994

commit r10-6177-g04681fca936b5bca1dd374dfb0fbca7ccb028994
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Thu Jan 23 14:02:32 2020 +0000

    libstdc++: Simplify makefile rule for largefile-config.h (PR91947)

    The previous rule could leave an incomplete file if the build was
    interrupted, which would then not be remade if make was run again.

    This makes the rule more robust by writing to a temporary file and only
    moving it into place as the final step. It also simplifies the rule so
    that only the essential macro definitions are written to the file, not
    the explanatory comments and commented out #undef lines.

    Also, the macro for enabling LFS on Mac OS X 10.5 is now set
    unconditionally, which is a bug fix from upstream autoconf.

        PR libstdc++/91947
        * include/Makefile.am (${host_builddir}/largefile-config.h): Simplify
        rule.
        * include/Makefile.in: Regenerate.


More information about the Gcc-bugs mailing list