[Bug pch/71934] pch cannot be disabled so gcc cannot be position independent

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Dec 9 14:56:00 GMT 2021


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

--- Comment #30 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:bf15cd665e74791aae87e7e151a0cf0c4cb54684

commit r12-5856-gbf15cd665e74791aae87e7e151a0cf0c4cb54684
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Thu Dec 9 15:54:33 2021 +0100

    pch: Fix up Darwin and HPUX pch_use_address hooks [PR71934]

    In the last change, I've changed the arguments from void * to void *&,
    but missed the fact that these hooks will in that case update the value
    the caller will see in an undesirable way.

    2021-12-09  Jakub Jelinek  <jakub@redhat.com>

            PR pch/71934
            * config/host-darwin.c (darwin_gt_pch_use_address): When reading
            manually the file into mapped area, update mapped_addr as
            an automatic variable rather than addr which is a reference
parameter.
            * config/host-hpux.c (hpux_gt_pch_use_address): When reading
            manually the file into mapped area, update addr as
            an automatic variable rather than base which is a reference
parameter.


More information about the Gcc-bugs mailing list