Re: [Mingw-w64-public] [gcc-13.0.1] Anomalous as.exe behaviour

2023-04-30 Thread sisyphus
On Sat, Apr 29, 2023 at 8:36 PM LIU Hao wrote: > 在 2023-04-29 17:20, sisyphus 写道: > > Hi, > > If I fix the "shr" nameclash (by renaming "shr") I still get "invalid > use of register" errors in > > relation to assembler directives that don't involve any symbols from > cpoly.c > > That is, I think

Re: [Mingw-w64-public] [gcc-13.0.1] Anomalous as.exe behaviour

2023-04-29 Thread LIU Hao
在 2023-04-29 17:20, sisyphus 写道: Hi, If I fix the "shr" nameclash (by renaming "shr") I still get "invalid use of register" errors in relation to assembler directives that don't involve any symbols from cpoly.c That is, I think there's something else happening as well. Would you like more deta

Re: [Mingw-w64-public] [gcc-13.0.1] Anomalous as.exe behaviour

2023-04-29 Thread sisyphus
Hi, If I fix the "shr" nameclash (by renaming "shr") I still get "invalid use of register" errors in relation to assembler directives that don't involve any symbols from cpoly.c That is, I think there's something else happening as well. Would you like more detail about this ? In any case, the "-m

Re: [Mingw-w64-public] [gcc-13.0.1] Anomalous as.exe behaviour

2023-04-27 Thread LIU Hao
在 2023/4/28 08:40, sisyphus 写道: On Fri, Apr 28, 2023 at 1:36 AM LIU Hao wrote: Anyway `-masm=att` will solve this issue. Indeed it does. Thank you. Looks like it has been reported already: * https://sourceware.org/bugzilla/show_bug.cgi?id=12240 * https://sourceware.org/bugzilla/show_

Re: [Mingw-w64-public] [gcc-13.0.1] Anomalous as.exe behaviour

2023-04-27 Thread sisyphus
On Fri, Apr 28, 2023 at 1:36 AM LIU Hao wrote: > > Anyway `-masm=att` will solve this issue. > Indeed it does. Thank you. Cheers, Rob ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/li

Re: [Mingw-w64-public] [gcc-13.0.1] Anomalous as.exe behaviour

2023-04-27 Thread LIU Hao
在 2023-04-27 23:09, LIU Hao 写道: `gcc -S` can be used to compile the source to assembly. The C source contains static variables named `shr` and `si`, which get compiled to something like    .lcomm shr,8,8    .lcomm shi,8,8    .lcomm sr,8,8    .lcomm si,8,8 Not these, but mov r

Re: [Mingw-w64-public] [gcc-13.0.1] Anomalous as.exe behaviour

2023-04-27 Thread LIU Hao
在 2023-04-27 22:46, sisyphus 写道: Hi, I have 2 snapshots of gcc-13.0.1. One was built by LH_Mouse, the other by Brecht Sanders (https://winlibs.com ). LH_Mouse's compiler is tripping over some code that Sanders' build handles without issue. I have changed the default assembly syntax to Intel las

[Mingw-w64-public] [gcc-13.0.1] Anomalous as.exe behaviour

2023-04-27 Thread sisyphus
Hi, I have 2 snapshots of gcc-13.0.1. One was built by LH_Mouse, the other by Brecht Sanders (https://winlibs.com ). LH_Mouse's compiler is tripping over some code that Sanders' build handles without issue. Attached are 2 files (cpoly.c and cpoly.h) taken from the source of a perl module named PDL