<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/61896>61896</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
flang: c_long_double has a wrong values on many platforms.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
MehdiChinoune
</td>
</tr>
</table>
<pre>
`long double` is the same as `double` on many platforms MINGW/aarch64, MSVC, macOS-aarch64.
It should have value of 8 on https://github.com/llvm/llvm-project/blob/ed372d194f938b750855ad1297517d26f1102250/flang/module/iso_c_binding.f90#L56:L60
I tried to fix it, but Flang doesn't predefine many macros, there is no macros for OSs, CPUs, Platforms. There is only `__x86_64__` (other than flang, openmp and openacc directives).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUkk9vnDAQxT-NuYyCzAAGDhy2G1FFSppI6Z8jMnhYXBl7ZZtt8u0ryK5y6KmnQYxnNO-9nwxBnyxRy8ovrLxP5Bpn59snmpU-ztq61VIyOPXeMsGNsydQbh0MMcFBB4gzQZALgQzABP_sOQuLtO9wNjJOzi8Bnh6-ff3FsJPSj7MoGB7h6fXncauLHJ9f766NlPF7xg8PEcLsVqNglheCizQrgZug3lbPMZ4Dyw8MO4bdScd5HdLRLQw7Yy63cnf27jeNkWE3GDcw7EjlFaqsKaYmr4eq5HVZSpVhU5VZpVBMWcYRS86wm4y0J4bd4tRqiGGng-vHftBWaXtKp4YzzB9LwfLDo-DXmyF6TQqig0m_gY6buGGN0G3LQDkKlmEV4exJ0aQtfZi0yNG7sD2OM3najLXu-hcm5-H5de8eX37s9eVmagrfbwPOmvctgr5_q0Uvir7fYgCGtduWQpylhauoI7gz2eUM0qr9U44jKO1pjPpCgWGTJqrNVZM3MqE2EzUvsrwRVTK3EoVQjSi5KJtmorwgNZIcBdY0VLLME90ix5wXHHmZN1ilIi-xmEQxjQ0ORTWxgtMitUm3jFLnT4kOYaVWZHUjEiMHMuGGo2_3IIf1FFjBjQ4xfI5FHQ21H5ryA4z9xmf_wSDMMoCEP35Ddocn_MtkmqzetP8N035uYNjtF_8NAAD__yFMCzU">