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

--- Comment #43 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The trunk branch has been updated by Andrew Pinski <[email protected]>:

https://gcc.gnu.org/g:1ce1870fbe0b141d38e02b7ac6a41d8d36b73b30

commit r16-7441-g1ce1870fbe0b141d38e02b7ac6a41d8d36b73b30
Author: Dimitry Andric <[email protected]>
Date:   Tue Feb 10 19:51:58 2026 +0100

    build: Correctly restore CXXFLAGS/LDFLAGS for zstd test

    Commit r16-5592-g56889bfec25 added saving and restoring of CXXFLAGS and
    LDFLAGS in the gcc configure script, to avoid including the wrong zstd
    headers.

    However, due to misleading indentation in the configure script, the
    restoration of CXXFLAGS and LDFLAGS was put after the if block where the
    values were saved. This could cause various interesting effects, among
    others segfaults while building gcc in the FreeBSD ports system.

    Move the restoration of CXXFLAGS and LDFLAGS to just before the end of
    the same if block to fix this.

    Thanks to Mark Millard for spotting the actual mistake.

    2026-02-10  Dimitry Andric  <[email protected]>

            gcc:
            PR libfortran/123366
            * configure.ac: Move restoring of CXXFLAGS/LDFLAGS for zstd test to
            the correct place.
            * configure: Regenerate.

    Signed-off-by: Dimitry Andric <[email protected]>

Reply via email to