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

Vaibhav Gupta vaibhavgupta40 at gmail.com
Thu Aug 15 09:56:25 UTC 2019


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/20190815/4d5741e0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Trial-10.patch
Type: text/x-patch
Size: 5823 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/devel/attachments/20190815/4d5741e0/attachment.bin>


More information about the devel mailing list