]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR modula2/115823 Wrong expansion of isnormal optab
authorGaius Mulley <gaiusmod2@gmail.com>
Sun, 28 Jul 2024 18:20:43 +0000 (19:20 +0100)
committerGaius Mulley <gaiusmod2@gmail.com>
Sun, 28 Jul 2024 18:20:43 +0000 (19:20 +0100)
commit79e029a41825f533bb87b4bee5427b90b62175ae
treefb98ff89220898bd1b2b0d279d0484f65abbd5fb
parent59c6d6a5b53d7b0e483a686f6b9db093bb77c064
PR modula2/115823 Wrong expansion of isnormal optab

This patch corrects the function declaration of a builtin
(using the libname rather than the source name).

gcc/m2/ChangeLog:

PR modula2/115823
* gm2-gcc/m2builtins.cc (define_builtin): Build
the function decl using the libname.

gcc/testsuite/ChangeLog:

PR modula2/115823
* gm2/builtins/run/pass/testisnormal.mod: Change to an
implementation module.
* gm2/builtins/run/pass/testisnormal.def: New test.
* gm2/builtins/run/pass/testsinl.def: New test.
* gm2/builtins/run/pass/testsinl.mod: New test.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
gcc/m2/gm2-gcc/m2builtins.cc
gcc/testsuite/gm2/builtins/run/pass/testisnormal.def [new file with mode: 0644]
gcc/testsuite/gm2/builtins/run/pass/testisnormal.mod
gcc/testsuite/gm2/builtins/run/pass/testsinl.def [new file with mode: 0644]
gcc/testsuite/gm2/builtins/run/pass/testsinl.mod [new file with mode: 0644]