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

--- Comment #10 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Rainer Orth <[email protected]>:

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

commit r16-6819-ga0ff4b6bba5e898e3cd7df277232ad5a495da38a
Author: Rainer Orth <[email protected]>
Date:   Fri Jan 16 13:12:03 2026 +0100

    Provide gt_pch_get_address etc. on FreeBSD [PR110746]

    On FreeBSD/amd64, more than 700 tests FAIL like

    FAIL: gcc.dg/pch/common-1.c  -O0 -g -I. -Dwith_PCH (test for excess errors)
    Excess errors:
    gcc/testsuite/gcc.dg/pch/common-1.c:1: sorry, unimplemented: PCH allocation
failure

    This can easily be fixed by implementing the
    host_hooks.gt_pch_get_address hook.  The code is shamelessly stolen from
    the openbsd implementation, only changing the names and omitting the
    hppa and i386 code.  The former isn't supported by FreeBSD at all AFAIK,
    while the latter has just been removed in FreeBSD 15.0.

    Bootstrapped without regressions on x86_64-unknown-freebsd14.3: all PCH
    failures are gone.

    2026-01-15  Rainer Orth  <[email protected]>

            gcc:
            PR pch/110746
            * config/host-freebsd.cc: New file.
            * config.host <*-*-freebsd*>: Use it.
            * config/x-freebsd: New file.

Reply via email to