[all-commits] [llvm/llvm-project] 190be5: [Driver] Default to -fno-math-errno for musl

Alex Xu via All-commits all-commits at lists.llvm.org
Fri Feb 4 19:22:03 PST 2022


  Branch: refs/heads/release/14.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 190be5457c905ca55100927d1f5846cd30cee87d
      https://github.com/llvm/llvm-project/commit/190be5457c905ca55100927d1f5846cd30cee87d
  Author: Alex Xu (Hello71) <alex_y_xu at yahoo.ca>
  Date:   2022-02-04 (Fri, 04 Feb 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/Linux.cpp
    M clang/test/Driver/fast-math.c

  Log Message:
  -----------
  [Driver] Default to -fno-math-errno for musl

musl does not set errno in math functions: https://wiki.musl-libc.org/mathematical-library.html, https://git.musl-libc.org/cgit/musl/tree/include/math.h?id=cfdfd5ea3ce14c6abf7fb22a531f3d99518b5a1b#n26.

Reviewed By: srhines, MaskRay

Differential Revision: https://reviews.llvm.org/D116753

(cherry picked from commit 38449c98f3d33dffdaf7e1feeb9dfdcf63b5126b)




More information about the All-commits mailing list