GSoC 2019 : POSIX Complaince - Fenv methods not returning expected outputs.

Vaibhav Gupta vaibhavgupta40 at gmail.com
Tue Aug 27 14:51:38 UTC 2019


Hello,
Since this fenv environment is not working as expected,
The testsuite I made in Linux environment is yet to be ported to RTEMS.

Vaibhav Gupta

On Thu, Aug 15, 2019 at 3:26 PM Vaibhav Gupta <vaibhavgupta40 at gmail.com>
wrote:

> Hello,
> In yesterday's weekly meeting I mentioned about fenv problems I faced while
> developing testsuite.
> .
> Here is a very raw patch of my code as testsuite is still in development.
> .
> ==================================================
> Error 1
> ==================================================
> I took three float values:
> a = 0.0
> b = 1.0
> c = b/a
> This should have automatically raised FE_DIVBYZERO exception, which does
> not happens.
> No exception flag is set.
> .
> .
> ==================================================
> Error 2
> ==================================================
> Then I tried to raise an exception manually using feraiseexcept(), but this
> operation was also unsuccessful .
> The method returned 1 on execution, but it should return 0 on successful
> operation.
> .
> .
> ==================================================
> Warning
> ==================================================
> As mentioned in opengroup I tried to define a pragma
> https://pubs.opengroup.org/onlinepubs/009696799/basedefs/fenv.h.html
> .
> #pragma STDC FENV_ACCESS ON
> .
> But this pragma is ignored while 'make -j 2'
> /home/varodek/development/rtems/kernel/rtems/c/src/../../testsuites/psxtests/psxfenv01/init.c:50:
> warning: ignoring #pragma STDC FENV_ACCESS [-Wunknown-pragmas]
>
> .
> .
>
> --Vaibhav Gupta
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190827/e6dc233c/attachment.html>


More information about the devel mailing list