Julien Fischer dbbf8d461d Fix hlc test failures with GCC 12.
GCC 12 has new warning, -Winfinite-recursion, that is being triggered by six
tests in the directory tests/valid when compiled in high-level C grades. Since
we also enable -Werror, this is causing these test to fail. Fix these failures
by either removing the infinite recursion from them or by disabling the new GCC
warning for the affected test cases.

configure.ac:
tests/DEFNS_FOR_TESTS.in:
    Define a variable whose value is the option for disabling GCC's infinite
    recursion check.

tests/valid/higher_order5.m:
tests/valid/stack_alloc.m:
    Modify these tests so they do not trigger the infinite recursion warning
    in GCC (or Mercury for that matter).

tests/valid/mode_syntax.m:
tests/valid/same_length_2.m:
    Merge these two tests (under the first name) since they both test the same
    thing.  Delete the same_length_2 version.

tests/valid/Mmakefile:
    Conform to the above deletion.

tests/valid/Mercury.options:
    Include DEFNS_FOR_TESTS here so that mmc --make can see it.

    Disable GCC's infinite recursion check for those tests that trigger
    it.

    Shut up a bunch Mercury warnings for the mode_syntax test case that
    are unrelated to what is actually being tested.
2022-07-04 11:02:31 +10:00
2022-02-08 20:43:03 +11:00
2022-01-09 10:36:15 +11:00
2022-05-26 22:45:11 +10:00
2022-04-21 22:54:16 +10:00
2022-07-02 20:02:10 +10:00
2022-01-09 10:36:15 +11:00
2022-01-09 10:36:15 +11:00
2022-03-30 18:09:07 +11:00
2022-06-18 21:49:16 +10:00
2022-01-09 10:36:15 +11:00
2022-07-04 11:02:31 +10:00
2022-01-01 13:48:16 +11:00
2022-03-26 00:30:28 +11:00
2022-01-01 15:53:34 +11:00
2022-01-23 23:36:11 +11:00
2022-01-01 13:48:16 +11:00
2022-04-21 22:54:16 +10:00
2022-03-30 17:55:43 +11:00
2022-05-26 22:48:06 +10:00
2022-02-22 23:19:54 +11:00
2022-01-07 14:54:00 +11:00
2022-01-23 23:36:11 +11:00
2022-01-23 19:38:58 +11:00

Mercury

Mercury is a logic/functional programming language which combines the clarity and the expressiveness of declarative programming with advanced static analysis and error detection features.

More information is available on the website's about pages, in other README files in the source code repository, and in the documentation.

Small sample programs written in Mercury can be found in the samples and extras directories of the source code repository.

README files

The Mercury compiler has two different backends and works on different operating systems. Specific information is contained in individual README files:

Other information

See the current release notes for the latest stable release. The news file lists any recent changes. The history file is relevant if you want to find out more about the past development of Mercury. The limitations file lists some ways in which the Mercury implementation does not yet meet its goals.

Information for developers

If you are considering contributing to the Mercury project, the website contains some documents that may be helpful. These include a document about contributions in general and specific information about contributing such as coding styles.

Contact

See our contact page.

Description
No description provided
Readme MIT 145 MiB
Languages
Mercury 85.4%
C 8.7%
Shell 1.4%
Makefile 1%
JavaScript 1%
Other 2%