<div dir="ltr"><div>Hello,</div><div>Since this fenv environment is not working as expected,</div><div>The testsuite I made in Linux environment is yet to be ported to RTEMS.</div><div><br></div><div>Vaibhav Gupta<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 15, 2019 at 3:26 PM Vaibhav Gupta <<a href="mailto:vaibhavgupta40@gmail.com">vaibhavgupta40@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello,</div><div>In yesterday's weekly meeting I mentioned about fenv problems I faced while</div><div>developing testsuite.</div><div>.</div><div>Here is a very raw patch of my code as testsuite is still in development.</div><div>.</div><div>==================================================</div><div>Error 1</div><div>==================================================</div><div>I took three float values:</div><div>a = 0.0</div><div>b = 1.0</div><div>c = b/a</div><div>This should have automatically raised FE_DIVBYZERO exception, which does</div><div>not happens.</div><div>No exception flag is set.<br></div><div>.</div><div>.</div><div>==================================================</div><div>Error 2</div><div>==================================================</div><div>Then I tried to raise an exception manually using feraiseexcept(), but this</div><div>operation was also unsuccessful .</div><div>The method returned 1 on execution, but it should return 0 on successful operation.</div><div>.</div><div>.</div><div>==================================================</div><div>Warning</div><div>==================================================</div><div>As mentioned in opengroup I tried to define a pragma</div><div><a href="https://pubs.opengroup.org/onlinepubs/009696799/basedefs/fenv.h.html" target="_blank">https://pubs.opengroup.org/onlinepubs/009696799/basedefs/fenv.h.html</a></div><div>.<br></div><div>#pragma STDC FENV_ACCESS ON</div><div>.</div><div>But this pragma is ignored while 'make -j 2'</div><div>/home/varodek/development/rtems/kernel/rtems/c/src/../../testsuites/psxtests/psxfenv01/init.c:50: warning: ignoring #pragma STDC FENV_ACCESS [-Wunknown-pragmas]</div><div><pre class="gmail-m_2842090054098772742gmail-de1">.<br>.<br></pre><div>--Vaibhav Gupta<br></div></div></div>
</blockquote></div>