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

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

https://gcc.gnu.org/g:871ec62eab32d9d079279b95aa308c837b3a3c95

commit r17-6574-g871ec62eab32d9d079279b95aa308c837b3a3c95
Author: Nick Alcock <[email protected]>
Date:   Fri Nov 20 17:40:59 2026 +0000

    Support libiberty functions as macros

    libiberty.h includes redeclarations of a bunch of possibly-system-
    provided functions (mkstemps, etc); but it doesn't properly handle the
    case where the system defines these as macros, and has already defined
    them when libiberty.h is #included.  This has a tendency to cause build
    faulures on such systems (glibc is usually explicitly ruled out, which
    is a bit of a code smell in itself).

    Redeclare in parentheses, avoiding any macro definition.

    include/
            PR bootstrap/127914
            * libiberty.h: Wrap POSIX-specified function redeclarations in
            parens to protect against prior declaration as macros.

Reply via email to