https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119779

--- Comment #2 from Gaius Mulley <gaius at gcc dot gnu.org> ---
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

This patch introduces four dejagnu tests matching four
documentation examples.  Both asm examples are added and only built if
the x86_64 target is available.  The other two are hello world using
libc and StrIO.  The doc/gm2.texi asm examples are changed to
use eax rather than rax.

gcc/ChangeLog:

        PR modula2/119779
        * doc/gm2.texi (Interface to assembly language): Use eax
        rather than rax in both examples.

gcc/testsuite/ChangeLog:

        PR modula2/119779
        * gm2.dg/doc/examples/pass/doc-examples-pass.exp: New test.
        * gm2.dg/doc/examples/pass/exampleadd.mod: New test.
        * gm2.dg/doc/examples/pass/exampleadd2.mod: New test.
        * gm2.dg/doc/examples/pass/hello.mod: New test.
        * gm2.dg/doc/examples/pass/hellopim.mod: New test.

Reply via email to