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

            Bug ID: 117624
           Summary: [15 Regression] INFINITY in libgcc2.c conflicts with
                    float.h definition from C23
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: blocker
          Priority: P3
         Component: libgcc
          Assignee: pinskia at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Since changing the default over to C23, the build for aarch64-linux-gnu is
failing due to redefinition of INFINITY:

../../../gcc/libgcc/libgcc2.c:2676:9: error: ‘INFINITY’ redefined [-Werror]
 2676 | #define INFINITY        CONCAT2(__builtin_huge_val, CEXT) ()
      |         ^~~~~~~~
In file included from ../../../gcc/libgcc/../gcc/tsystem.h:45,
                 from ../../../gcc/libgcc/libgcc2.c:27:
/home/builder/worker/gcc-fedora-arm64/gcc-build/gcc/include/float.h:262:9:
note: this is the location of the previous definition
  262 | #define INFINITY        (__builtin_inff ())
      |         ^~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:512: _divhc3.o] Error 1


https://gcc.gnu.org/pipermail/gcc/2024-November/245152.html

I am filing this to remind myself to get to this tomorrow.

Reply via email to