[Bug modula2/119779] ASM examples no longer work

2025-04-15 Thread zbigniew2011 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119779 --- Comment #11 from Zbigniew --- (* gm2 exampleadd2.mod -o exampleadd2 -masm=intel *) MODULE exampleadd2 ; FROM libc IMPORT printf, exit ; PROCEDURE Example (foo, bar: LONGCARD) : CARDINAL ; VAR myout: LONGCARD ; BEGIN ASM VOLATIL

[Bug modula2/119779] ASM examples no longer work

2025-04-15 Thread zbigniew2011 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119779 --- Comment #10 from Zbigniew --- Even "better"... :( I'm seriously afraid it won't be possible to switch somehow to GAS, regarding assembly, instead of C-inline?

[Bug modula2/119779] ASM examples no longer work

2025-04-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119779 --- Comment #9 from Andrew Pinski --- See https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/x86-Options.html#index-masm_003ddialect-1

[Bug modula2/119779] ASM examples no longer work

2025-04-15 Thread zbigniew2011 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119779 --- Comment #8 from Zbigniew --- I modified somewhat the example and it seems to be working using RAX too (BTW: does there exist any way — any „pragma” or anything — to switch from that atrocious AT&T syntax to Intel syntax?): MODULE examplead

[Bug modula2/119779] ASM examples no longer work

2025-04-15 Thread zbigniew2011 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119779 --- Comment #7 from Zbigniew --- I mean: the arith limit doesn't bother me that much — 32-bit is quite enough — but being limited to 32-bit registers while working in 64-bit OS means PUSH/POP cannot be used, and all these new, additional R* regi

[Bug modula2/119779] ASM examples no longer work

2025-04-15 Thread zbigniew2011 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119779 Zbigniew changed: What|Removed |Added CC||zbigniew2011 at gmail dot com --- Comment #6

[Bug modula2/119779] ASM examples no longer work

2025-04-15 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119779 --- Comment #5 from Gaius Mulley --- For clarity the tests both run from the command line: $ gm2 -g exampleadd2.mod $ ./a.out $ cat exampleadd2.mod (* { dg-do assemble { target { x86_64-*-* } } } *) (* { dg-options "-g" } *) MODULE exampleadd

[Bug modula2/119779] ASM examples no longer work

2025-04-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119779 --- Comment #3 from GCC Commits --- The master branch has been updated by Gaius Mulley : https://gcc.gnu.org/g:9e0a98a47c98fd159a26de4433a3ed1d85afb8c3 commit r15-9421-g9e0a98a47c98fd159a26de4433a3ed1d85afb8c3 Author: Gaius Mulley Date: Mon

[Bug modula2/119779] ASM examples no longer work

2025-04-14 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119779 Gaius Mulley changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug modula2/119779] ASM examples no longer work

2025-04-14 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119779 --- Comment #2 from Gaius Mulley --- Created attachment 61105 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61105&action=edit Proposed fix for documentation and accompanying dg testcases PR modula2/119779 ASM examples no longer work Thi

[Bug modula2/119779] ASM examples no longer work

2025-04-13 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119779 Gaius Mulley changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED