[all-commits] [llvm/llvm-project] 788be0: [flang] fix build on *BSD after 4762c6557d15 (#86204)

Brooks Davis via All-commits all-commits at lists.llvm.org
Tue Apr 9 15:55:34 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 788be0d9fc6aeca548c90bac5ebe6990dd3c66ec
      https://github.com/llvm/llvm-project/commit/788be0d9fc6aeca548c90bac5ebe6990dd3c66ec
  Author: Brooks Davis <brooks at one-eyed-alien.net>
  Date:   2024-04-09 (Tue, 09 Apr 2024)

  Changed paths:
    M flang/include/flang/Evaluate/integer.h
    M flang/include/flang/Evaluate/real.h
    M flang/lib/Decimal/decimal-to-binary.cpp
    M flang/lib/Evaluate/fold-implementation.h

  Log Message:
  -----------
  [flang] fix build on *BSD after 4762c6557d15 (#86204)

The HUGE definition collides with the HUGE macro from math.h. Unlike the
fix in 3149c934cb26 (#84478) (largely reverted in f95710c76519), add
another #undef HUGE since there is no practical way to make FreeBSD's
headers not define HUGE and still define XSI interfaces such as isascii
or strnlen.

Update comments above `#undef HUGE` instances to reflect the fact that
all major BSD versions (I checked DragonFly, FreeBSD, NetBSD, and
OpenBSD) leak the HUGE macro from math.h to various degrees.

Fixes #86038



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list