Skip to content

[flang-rt] Fixed HAVE_LDBL_MANT_DIG_113 detection. #131010

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 12, 2025

Conversation

vzakhari
Copy link
Contributor

I thought I guessed a fix in #130836, but I was wrong.
We actually had the same code in flang/cmake/modules/FlangCommon.cmake.
The check does not pass in flang-rt bootstrap build, because
-nostdinc++ is added for all runtimes checks.
I decided to make the check with the C header, though, I am still
unsure whether it is reliable with a clang that has not been
installed (it is taken from the build structure during flang-rt
configure step).
I verified that this PR enables REAL(16) math entries on aarch64.

I thought I guessed a fix in llvm#130836, but I was wrong.
We actually had the same code in `flang/cmake/modules/FlangCommon.cmake`.
The check does not pass in flang-rt bootstrap build, because
`-nostdinc++` is added for all `runtimes` checks.
I decided to make the check with the C header, though, I am still
unsure whether it is reliable with a clang that has not been
installed (it is taken from the build structure during flang-rt
configure step).
I verified that this PR enables REAL(16) math entries on aarch64.
@vzakhari vzakhari requested review from Meinersbur and klausler March 12, 2025 18:41
@llvmbot llvmbot added the flang Flang issues not falling into any other category label Mar 12, 2025
@vzakhari vzakhari merged commit c542991 into llvm:main Mar 12, 2025
11 of 12 checks passed
frederik-h pushed a commit to frederik-h/llvm-project that referenced this pull request Mar 18, 2025
I thought I guessed a fix in llvm#130836, but I was wrong.
We actually had the same code in
`flang/cmake/modules/FlangCommon.cmake`.
The check does not pass in flang-rt bootstrap build, because
`-nostdinc++` is added for all `runtimes` checks.
I decided to make the check with the C header, though, I am still
unsure whether it is reliable with a clang that has not been
installed (it is taken from the build structure during flang-rt
configure step).
I verified that this PR enables REAL(16) math entries on aarch64.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flang Flang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants