------- Comment #5 from ubizjak at gmail dot com 2009-01-24 10:17 -------
(In reply to comment #4)
> I don't know why the bug was closed: I can confirm the erroneous behavior is
> present also in GCC 4.3.2.
Because it looks to me that this is libc problem with fetestexcept. As far as
the compiler is concerned, GCC correctly decorates trapping instructions with
/sui and puts trap barrier to expected place:
...
jsr $26,($27),__nldbl_printf !lituse_jsr!5
ldah $29,0($26) !gpdisp!6
divs/sui $f3,$f2,$f0
trapb
...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37581