public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ghazi at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug other/42333] New: complex division failure on darwin10 with -lm Date: Tue, 08 Dec 2009 16:26:00 -0000 [thread overview] Message-ID: <bug-42333-578@http.gcc.gnu.org/bugzilla/> (raw) As noted in PR42074, linking with the math library on darwin10 allows overflow to occur during complex division. It was originally reported as a failure in testcase gcc.dg/torture/builtin-math-7.c at all optimization levels. However as described in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42074#c10 the error is related to using -lm on the reduced testcase below. Without -lm it passes, with -lm a failure occurs. As such, it isn't necessarily a bug in GCC, however this PR will help track if there is a possible workaround. int main(void) { volatile _Complex double val = (__DBL_MAX__ * 0.5 + __DBL_MAX__ * 0.5i); val /= (__DBL_MAX__ * 0.25 + __DBL_MAX__ * 0.25i); __builtin_printf ("%g %g\n", __real (val), __imag (val)); if (val != 2) __builtin_abort(); return 0; } -- Summary: complex division failure on darwin10 with -lm Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ghazi at gcc dot gnu dot org GCC target triplet: *-*-darwin10 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42333
next reply other threads:[~2009-12-08 16:26 UTC|newest] Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-12-08 16:26 ghazi at gcc dot gnu dot org [this message] 2009-12-08 16:34 ` [Bug other/42333] " dominiq at lps dot ens dot fr 2009-12-08 16:47 ` ghazi at gcc dot gnu dot org 2009-12-08 18:31 ` dominiq at lps dot ens dot fr 2009-12-08 19:30 ` howarth at nitro dot med dot uc dot edu 2009-12-08 19:34 ` dominiq at lps dot ens dot fr 2009-12-08 19:59 ` howarth at nitro dot med dot uc dot edu 2009-12-08 20:24 ` ghazi at gcc dot gnu dot org 2009-12-08 20:27 ` developer at sandoe-acoustics dot co dot uk 2009-12-08 20:51 ` developer at sandoe-acoustics dot co dot uk 2009-12-08 21:29 ` dominiq at lps dot ens dot fr 2009-12-08 22:14 ` dominiq at lps dot ens dot fr 2009-12-08 23:41 ` developer at sandoe-acoustics dot co dot uk 2009-12-08 23:58 ` ghazi at gcc dot gnu dot org 2009-12-09 0:07 ` ghazi at gcc dot gnu dot org 2009-12-09 0:12 ` howarth at nitro dot med dot uc dot edu 2009-12-09 0:19 ` howarth at nitro dot med dot uc dot edu 2009-12-09 0:34 ` ghazi at gcc dot gnu dot org 2009-12-09 1:11 ` howarth at nitro dot med dot uc dot edu 2009-12-09 9:32 ` dominiq at lps dot ens dot fr 2009-12-09 11:38 ` developer at sandoe-acoustics dot co dot uk 2009-12-09 11:42 ` rguenth at gcc dot gnu dot org 2009-12-09 15:21 ` developer at sandoe-acoustics dot co dot uk 2009-12-09 16:48 ` howarth at nitro dot med dot uc dot edu 2009-12-09 17:37 ` developer at sandoe-acoustics dot co dot uk 2009-12-09 18:29 ` mrs at apple dot com 2009-12-09 18:41 ` howarth at nitro dot med dot uc dot edu 2009-12-09 18:48 ` mrs at apple dot com 2009-12-09 18:56 ` ghazi at gcc dot gnu dot org 2009-12-09 23:06 ` howarth at nitro dot med dot uc dot edu 2009-12-10 23:44 ` sabre at nondot dot org 2009-12-11 16:44 ` ghazi at gcc dot gnu dot org 2010-04-09 20:45 ` iains at gcc dot gnu dot org 2010-04-09 20:57 ` dominiq at lps dot ens dot fr 2010-04-09 21:07 ` howarth at nitro dot med dot uc dot edu 2010-04-09 22:30 ` iains at gcc dot gnu dot org 2010-04-11 10:18 ` iains at gcc dot gnu dot org 2010-04-11 13:57 ` howarth at nitro dot med dot uc dot edu 2010-04-11 14:47 ` howarth at nitro dot med dot uc dot edu 2010-04-11 15:10 ` iains at gcc dot gnu dot org 2010-04-11 15:24 ` howarth at nitro dot med dot uc dot edu 2010-04-11 15:36 ` dominiq at lps dot ens dot fr 2010-04-13 1:07 ` iains at gcc dot gnu dot org 2010-04-13 1:54 ` howarth at nitro dot med dot uc dot edu 2010-04-13 16:02 ` howarth at nitro dot med dot uc dot edu 2010-04-13 16:07 ` howarth at nitro dot med dot uc dot edu 2010-04-13 16:30 ` dominiq at lps dot ens dot fr 2010-04-13 16:48 ` howarth at nitro dot med dot uc dot edu 2010-04-13 16:52 ` iains at gcc dot gnu dot org 2010-04-13 17:00 ` howarth at nitro dot med dot uc dot edu 2010-04-14 17:39 ` iains at gcc dot gnu dot org
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=bug-42333-578@http.gcc.gnu.org/bugzilla/ \ --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).