public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug modula2/114478] isnormal builtin unavailable from m2
Date: Tue, 26 Mar 2024 15:34:39 +0000	[thread overview]
Message-ID: <bug-114478-4-ATDgaal9ZI@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-114478-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Gaius Mulley <gaius@gcc.gnu.org>:

https://gcc.gnu.org/g:b1af867d22e3108402c62f97d8fcd1df303c9dab

commit r14-9675-gb1af867d22e3108402c62f97d8fcd1df303c9dab
Author: Gaius Mulley <gaiusmod2@gmail.com>
Date:   Tue Mar 26 15:33:52 2024 +0000

    PR modula2/114478 isnormal builtin unavailable from m2

    This patch adds isnormal (and isgreater, isless, isgreaterequal,
    islessequal, islessgreater, isunordered) c99 macro similar prototyped
    builtins to m2.

    gcc/m2/ChangeLog:

            PR modula2/114478
            * gm2-gcc/m2builtins.cc (struct builtin_macro_definition): New
struct.
            (lookup_builtin_macro): New function.
            (m2builtins_BuildBuiltinTree): Rewrite to lookup builtin function
            and builtin macro.
            (lookup_builtin_function): New function.
            (define_builtin): Rename parameter type to prototype push macro
            definition to builtin_macros vector.
            (define_builtin_ext): New function.
            (define_builtin_math): New function.
            (m2builtins_init): Add isgreater, isless, isgreaterequal,
            islessequal, islessgreater, isunordered, isnormal to macro
definitions.
            * gm2-libs/Builtins.def (isgreater): New procedure function.
            (isgreaterf): Ditto.
            (isgreaterl): Ditto.
            (isgreaterequal): Ditto.
            (isgreaterequalf): Ditto.
            (isgreaterequall): Ditto.
            (isless): Ditto.
            (islessf): Ditto.
            (islessl): Ditto.
            (islessequal): Ditto.
            (islessequalf): Ditto.
            (islessequall): Ditto.
            (islessgreater): Ditto.
            (islessgreaterf): Ditto.
            (islessgreaterl): Ditto.
            (isunordered): Ditto.
            (isunorderedf): Ditto.
            (isunorderedl): Ditto.
            (iseqsig): Ditto.
            (iseqsigf): Ditto.
            (iseqsigl): Ditto.
            (isnormal): Ditto.
            (isnormalf): Ditto.
            (isnormall): Ditto.
            (isinf_sign): Ditto.
            (isinf_signf): Ditto.
            (isinf_signl): Ditto.
            * gm2-libs/Builtins.mod (isgreater): New procedure function.
            (isgreaterf): Ditto.
            (isgreaterl): Ditto.
            (isgreaterequal): Ditto.
            (isgreaterequalf): Ditto.
            (isgreaterequall): Ditto.
            (isless): Ditto.
            (islessf): Ditto.
            (islessl): Ditto.
            (islessequal): Ditto.
            (islessequalf): Ditto.
            (islessequall): Ditto.
            (islessgreater): Ditto.
            (islessgreaterf): Ditto.
            (islessgreaterl): Ditto.
            (isunordered): Ditto.
            (isunorderedf): Ditto.
            (isunorderedl): Ditto.
            (iseqsig): Ditto.
            (iseqsigf): Ditto.
            (iseqsigl): Ditto.
            (isnormal): Ditto.
            (isnormalf): Ditto.
            (isnormall): Ditto.
            (isinf_sign): Ditto.
            (isinf_signf): Ditto.
            (isinf_signl): Ditto.

    gcc/testsuite/ChangeLog:

            PR modula2/114478
            * gm2/builtins/run/pass/builtins-run-pass.exp: New test.
            * gm2/builtins/run/pass/testcomparisons.mod: New test.
            * gm2/builtins/run/pass/testisnormal.mod: New test.
            * gm2/pimlib/run/pass/testchar.mod: New test.

    Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>

  parent reply	other threads:[~2024-03-26 15:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-26 10:49 [Bug modula2/114478] New: " gaius at gcc dot gnu.org
2024-03-26 10:51 ` [Bug modula2/114478] " gaius at gcc dot gnu.org
2024-03-26 15:34 ` cvs-commit at gcc dot gnu.org [this message]
2024-03-26 15:37 ` gaius at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-114478-4-ATDgaal9ZI@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).