Skip to content

Commit 9ad461a

Browse files
authored
gnu.cfg: Added support for __builtin_bit_cast (danmar#7163)
Reference: https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html
1 parent 4fffb9b commit 9ad461a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cfg/gnu.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
<not-bool/>
6565
</arg>
6666
</function>
67+
<define name="__builtin_bit_cast(type,value)" value="std::bit_cast&lt;type&gt;(value)"/>
6768
<define name="__bswap_constant_64(x)" value="bswap_64(x)"/>
6869
<define name="__builtin_bswap64(x)" value="bswap_64(x)"/>
6970
<define name="__bswap_64(x)" value="bswap_64(x)"/>

0 commit comments

Comments
 (0)