Re: [Mingw-w64-public] gcc shows warning with
For reference, the warning is from https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=04784e33fabb45c4de7a901587f468d4bc169649 (new in binutils 2.40). Clang's inline assembly can parse the grotesque at syntax and generate Intel syntax [1]; I am a bit curious how this is done. Pretty sure Compiler Explorer is just using the `-masm=intel` command line flag, which both Clang and GCC supports. On 24/2/2023 0:49, LIU Hao wrote: 在 2023-02-21 00:09, Biswapriyo Nath 写道: __INTRINSICS_USEINLINE -__buildmov(__movsd, unsigned __LONG32, "d") +__buildmov(__movsd, unsigned __LONG32, "l") #endif #define __INTRINSIC_DEFINED___movsd #endif /* __INTRINSIC_PROLOG */ I am not sure if this is valid fix. Feel free to apply the diff as maintainers like. A little explanation would be helpful also. This looks correct. Clang's inline assembly can parse the grotesque at syntax and generate Intel syntax [1]; I am a bit curious how this is done. Clang seems to accept both. [1] https://gcc.godbolt.org/z/6z11qTYa7 ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
Re: [Mingw-w64-public] gcc shows warning with
在 2023-02-21 00:09, Biswapriyo Nath 写道: __INTRINSICS_USEINLINE -__buildmov(__movsd, unsigned __LONG32, "d") +__buildmov(__movsd, unsigned __LONG32, "l") #endif #define __INTRINSIC_DEFINED___movsd #endif /* __INTRINSIC_PROLOG */ I am not sure if this is valid fix. Feel free to apply the diff as maintainers like. A little explanation would be helpful also. This looks correct. Clang's inline assembly can parse the grotesque at syntax and generate Intel syntax [1]; I am a bit curious how this is done. Clang seems to accept both. [1] https://gcc.godbolt.org/z/6z11qTYa7 -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
[Mingw-w64-public] gcc shows warning with
While compiling crt, gcc shows the following warning {standard input}: Assembler messages: {standard input}:30: Warning: found `movsd'; assuming `movsl' was meant The file is mingw-w64-crt/intrincs/__movsd.c. After applying the following patch the warning is gone. --- a/mingw-w64-headers/include/psdk_inc/intrin-impl.h +++ b/mingw-w64-headers/include/psdk_inc/intrin-impl.h @@ -2100,7 +2100,7 @@ __buildmov(__movsw, unsigned short, "w") void __movsd(unsigned __LONG32 *Dest, unsigned __LONG32 const *Source, size_t Count); #if !__has_builtin(__movsd) __INTRINSICS_USEINLINE -__buildmov(__movsd, unsigned __LONG32, "d") +__buildmov(__movsd, unsigned __LONG32, "l") #endif #define __INTRINSIC_DEFINED___movsd #endif /* __INTRINSIC_PROLOG */ I am not sure if this is valid fix. Feel free to apply the diff as maintainers like. A little explanation would be helpful also. ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public