public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "roger at eyesopen dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/26161] Configure tests for pthread.h sometimes need to use -pthread
Date: Wed, 08 Feb 2006 04:04:00 -0000	[thread overview]
Message-ID: <20060208040456.3878.qmail@sourceware.org> (raw)
In-Reply-To: <bug-26161-754@http.gcc.gnu.org/bugzilla/>



------- Comment #3 from roger at eyesopen dot com  2006-02-08 04:04 -------
Subject: Re:  Configure tests for pthread.h sometimes
 need to use -pthread


On 7 Feb 2006, fxcoudert at gcc dot gnu dot org wrote:
> I tried to give it a look on alphaev68-dec-osf5.1b, but I couldn't
> get to the point of configuring libgomp :)
>
> cc -c -DHAVE_CONFIG_H -g  -I. -I../../gcc/libiberty/../include   -Wc++-compat
> ../../gcc/libiberty/floatformat.c -o ./floatformat.o
> cc: Error: ../../gcc/libiberty/floatformat.c, line 343: In this statement, the
> libraries on this platform do not yet support compile-time evaluation of the
> constant expression "0.0/0.0". (constfoldns)
>         dto = NAN;


Hi FX,

Could you try the following for me, and I'll submit it to gcc-patches?
Unfortunately, my OSF_DEV PAK has expired so I rely on gcc for hosting
GCC.



2006-02-07  Roger Sayle  <roger@eyesopen.com>
            R. Scott Bailey  <scott.bailey@eds.com>

        PR bootstrap/16787
        * floatformat.c: Include <float.h> where available.
        (NAN): Use value of DBL_QNAN if defined, and NAN isn't.


Index: floatformat.c
===================================================================
*** floatformat.c       (revision 110738)
--- floatformat.c       (working copy)
***************
*** 1,5 ****
  /* IEEE floating point support routines, for GDB, the GNU Debugger.
!    Copyright 1991, 1994, 1999, 2000, 2003, 2005
     Free Software Foundation, Inc.

  This file is part of GDB.
--- 1,5 ----
  /* IEEE floating point support routines, for GDB, the GNU Debugger.
!    Copyright 1991, 1994, 1999, 2000, 2003, 2005, 2006
     Free Software Foundation, Inc.

  This file is part of GDB.
*************** Foundation, Inc., 51 Franklin Street - F
*** 31,36 ****
--- 31,41 ----
  #include <string.h>
  #endif

+ /* On some platforms, <float.h> provides DBL_QNAN.  */
+ #ifdef STDC_HEADERS
+ #include <float.h>
+ #endif
+
  #include "ansidecl.h"
  #include "libiberty.h"
  #include "floatformat.h"
*************** Foundation, Inc., 51 Franklin Street - F
*** 44,51 ****
--- 49,60 ----
  #endif

  #ifndef NAN
+ #ifdef DBL_QNAN
+ #define NAN DBL_QNAN
+ #else
  #define NAN (0.0 / 0.0)
  #endif
+ #endif

  static unsigned long get_field (const unsigned char *,
                                  enum floatformat_byteorders,


Roger
--


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26161


  parent reply	other threads:[~2006-02-08  4:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-07 17:12 [Bug bootstrap/26161] New: " roger at eyesopen dot com
2006-02-07 20:24 ` [Bug bootstrap/26161] " fxcoudert at gcc dot gnu dot org
2006-02-07 21:15 ` roger at eyesopen dot com
2006-02-08  4:04 ` roger at eyesopen dot com [this message]
2006-02-08 14:18 ` pinskia at gcc dot gnu dot org
2006-02-08 15:12 ` fxcoudert at gcc dot gnu dot org
2006-02-17 10:15 ` fxcoudert at gcc dot gnu dot org
2006-02-17 19:01 ` fxcoudert at gcc dot gnu dot org
2006-02-17 19:07 ` fxcoudert 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=20060208040456.3878.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: link
Be 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).