[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gm2] Problem with testsuite/gm2/extensions/run/pass/vararg3.mod
From: |
Gaius Mulley |
Subject: |
Re: [Gm2] Problem with testsuite/gm2/extensions/run/pass/vararg3.mod |
Date: |
Thu, 20 Apr 2017 18:34:32 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Ernst Bokkelkamp <address@hidden> writes:
> If the description given at http://nongnu.org/gm2/interface_to_c.html is
> correct then there is a problem with the test case
> testsuite/gm2/extensions/run/pass/vararg3.mod
>
> "If a procedure function is declared using varargs then some parameter
> values are converted. The table below summarises the default conversions and
> default types used...."
> "If you wish to pass int values then you should explicitly convert the
> constants using one of the conversion mechanisms. For example: INTEGER(10)
> or VAL(INTEGER, 10) or CAST(INTEGER, 10)."
>
> Under Raspbian Jessie the following change is required for the test to pass.
>
> ---
> /home/pi/GM2_520/gcc-5.2.0+gm2-git-latest/gm2/gcc-versionno/gcc/testsuite/gm
> 2/extensions/run/pass/vararg3.mod 2017-03-29 15:34:52.000000000 +0200
> +++
> /home/pi/GM2_520_TEST/gcc-5.2.0+gm2-git-latest/gm2/gcc-versionno/gcc/testsui
> te/gm2/extensions/run/pass/vararg3.mod 2017-04-18 09:36:20.234962373 +0200
> @@ -21,7 +21,7 @@
> FROM SYSTEM IMPORT ADR ;
>
> BEGIN
> - IF funcptrint(ADR("hello world"), 11)=1
> + IF funcptrint(ADR("hello world"), INTEGER(11))=1
> THEN
> END
> END vararg3.
>
> Best regards,
> Ernst Bokkelkamp
Hi Ernst,
Yes indeed a bug. Many thanks - will apply as well,
regards,
Gaius