aboutsummaryrefslogtreecommitdiff
path: root/libphobos/README.gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2024-11-16 17:04:38 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2024-11-16 17:04:38 +0100
commit09ef9756f22a8c4143c6b8d3afcddc72fb700c76 (patch)
treec29049c9e6c7cf284fa09769bbe39d5030e7e4cd /libphobos/README.gcc
parent27ff8049bbdb0a001ba46835cd6a334c4ac76573 (diff)
downloadgcc-09ef9756f22a8c4143c6b8d3afcddc72fb700c76.zip
gcc-09ef9756f22a8c4143c6b8d3afcddc72fb700c76.tar.gz
gcc-09ef9756f22a8c4143c6b8d3afcddc72fb700c76.tar.bz2
libgcc: Fix a warning/error in libgcc2.c [PR117624]
Since the switch to -std=gnu23 by default, float.h (included from tsystem.h) defines INFINITY macro (to __builtin_inff ()), which now results in a warning when compiling libgcc2.c which defines it to something else (and, worse aarch64 compiles it with -Werror and build fails). libgcc2.c asserts INFINITY has the expected type which depends on the macros with which libgcc2.c is being compiled, so guarding the define with #ifndef INFINITY wouldn't work. So this patch instead #undefs the macro before defining it. 2024-11-16 Jakub Jelinek <jakub@redhat.com> PR libgcc/117624 * libgcc2.c (INFINITY): Add #undef before #define.
Diffstat (limited to 'libphobos/README.gcc')
0 files changed, 0 insertions, 0 deletions