public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/37581] IEEE inexact-flag not working on the Alpha Date: Fri, 23 Jan 2009 08:47:00 -0000 [thread overview] Message-ID: <20090123084711.20926.qmail@sourceware.org> (raw) In-Reply-To: <bug-37581-1710@http.gcc.gnu.org/bugzilla/> ------- Comment #2 from ubizjak at gmail dot com 2009-01-23 08:47 ------- Works for me with: --cut here-- #define _GNU_SOURCE #include <fenv.h> #include <signal.h> #include <stdlib.h> static void foo (int sig) { exit (0); } float __attribute__((noinline)) test (float x) { return 2.0f / x; }; int main() { volatile float x; signal (SIGFPE, foo); feclearexcept (FE_ALL_EXCEPT); feenableexcept (FE_INEXACT); x = test (3.0f); abort (); } --cut here-- $ gcc -O2 -lm -mieee-with-inexact sf.c $ ./a.out $ -- ubizjak at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37581
next prev parent reply other threads:[~2009-01-23 8:47 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-09-19 7:04 [Bug target/37581] New: " bagnara at cs dot unipr dot it 2008-09-19 7:05 ` [Bug target/37581] " bagnara at cs dot unipr dot it 2009-01-23 8:47 ` ubizjak at gmail dot com [this message] 2009-01-24 5:43 ` abramobagnara at tin dot it 2009-01-24 8:09 ` bagnara at cs dot unipr dot it 2009-01-24 10:17 ` ubizjak at gmail dot com 2009-01-24 15:41 ` abramobagnara at tin dot it 2009-02-03 11:10 ` ubizjak at gmail dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20090123084711.20926.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).