public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/42333]  New: complex division failure on darwin10 with -lm
@ 2009-12-08 16:26 ghazi at gcc dot gnu dot org
  2009-12-08 16:34 ` [Bug other/42333] " dominiq at lps dot ens dot fr
                   ` (49 more replies)
  0 siblings, 50 replies; 60+ messages in thread
From: ghazi at gcc dot gnu dot org @ 2009-12-08 16:26 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 60+ messages in thread
[parent not found: <bug-42333-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2011-06-30 16:34 UTC | newest]

Thread overview: 60+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-08 16:26 [Bug other/42333] New: complex division failure on darwin10 with -lm ghazi at gcc dot gnu dot org
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
     [not found] <bug-42333-4@http.gcc.gnu.org/bugzilla/>
2011-02-05 21:11 ` howarth at nitro dot med.uc.edu
2011-02-05 21:49 ` howarth at nitro dot med.uc.edu
2011-02-05 22:31 ` mrs at gcc dot gnu.org
2011-02-06 16:45 ` ghazi at gcc dot gnu.org
2011-02-07 20:54 ` mrs at gcc dot gnu.org
2011-02-07 20:55 ` mrs at gcc dot gnu.org
2011-02-07 21:02 ` mrs at gcc dot gnu.org
2011-06-30 16:32 ` mrs at gcc dot gnu.org
2011-06-30 16:34 ` mrs at gcc dot gnu.org

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).