在 2021/3/2 下午10:21, Liu Hao 写道:
在 2021-03-02 17:49, Biswapriyo Nath 写道:* Command: echo "#include <intrin.h>" | g++ -c -Wredundant-decls -xc++ - * Output: intrin.h:59:23: note: previous declaration of 'unsigned int __builtin_ia32_crc32qi(unsigned int, unsigned char)' * Test project: https://github.com/ihhub/fheroes2.gitThey were introduced by 7ae84a6139579752bf678c070763c01b673b4120, but attempting to call those functions without `-mcrc32` results in undefined references. They seem unused and may be safely removed.
It looks like the intrinsic wrappers for those CRC32 functions were exposed even when SSE4.2 was not enabled, which has been fixed in GCC [1] since long ago. So yes, I think they are obsolete and can be removed.
[1] https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=42f40af46917beb9a16f2c18b4241f08e4d1ea5a -- Best regards, Liu Hao
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
