[all-commits] [llvm/llvm-project] f282b6: set __NO_MATH_ERRNO__ if -fno-math-errno
Alex Xu via All-commits
all-commits at lists.llvm.org
Mon Jan 10 05:46:02 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f282b6809105075b65974989459ee420ecd406e9
https://github.com/llvm/llvm-project/commit/f282b6809105075b65974989459ee420ecd406e9
Author: Alex Xu (Hello71) <alex_y_xu at yahoo.ca>
Date: 2022-01-10 (Mon, 10 Jan 2022)
Changed paths:
M clang/lib/Frontend/InitPreprocessor.cpp
M clang/test/Preprocessor/init-aarch64.c
M clang/test/Preprocessor/init.c
M clang/test/Preprocessor/predefined-macros.c
Log Message:
-----------
set __NO_MATH_ERRNO__ if -fno-math-errno
This causes modern glibc to unset math_errhandling MATH_ERRNO. gcc 12
also sets some other macros, but most of them are associated with
flags ignored by clang, so without library examples, it is difficult to
determine whether they should be set. I think setting this one macro is
OK for now.
More information about the All-commits
mailing list