tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: gcc and double_u
On Thu, Jul 04, 2024 at 10:20:39AM +0100, Patrick Welche wrote:
> The following appeared in gcc head:
>
> commit 3a873c0a7bc8183de95a6103b507101a25eed413
> Author: liuhongt <hongtao.liu%intel.com@localhost>
> Date: Thu May 30 14:15:48 2024 +0800
>
> Rename double_u with __double_u to avoid pulluting the namespace.
>
> gcc/ChangeLog:
>
> * config/i386/emmintrin.h (__double_u): Rename from double_u.
> (_mm_load_sd): Replace double_u with __double_u.
> (_mm_store_sd): Ditto.
> (_mm_loadh_pd): Ditto.
> (_mm_loadl_pd): Ditto.
> * config/i386/xmmintrin.h (__float_u): Rename from float_u.
> (_mm_load_ss): Ditto.
> (_mm_store_ss): Ditto.
>
>
> This pollution avoidance achieves a direct hit with our /usr/include/math.h:
>
> union __double_u {
> unsigned char __dummy[sizeof(double)];
> double __val;
> };
>
>
> What should we do?
Already fixed!
https://gcc.gnu.org/g:23ab7f632f4f5bae67fb53cf7b18fea7ba7242c4
Cheers,
Patrick
Home |
Main Index |
Thread Index |
Old Index