Re: [Mingw-w64-public] gcc shows warning with

2023-02-23 Thread Alvin Wong via Mingw-w64-public
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-23 Thread LIU Hao

在 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