public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* isinf
@ 2005-07-13 17:07 Hiroshi Fujishima
  2005-07-13 19:08 ` isinf Eric Botcazou
  0 siblings, 1 reply; 17+ messages in thread
From: Hiroshi Fujishima @ 2005-07-13 17:07 UTC (permalink / raw)
  To: gcc

[-- Attachment #1: Type: text/plain, Size: 576 bytes --]

Hi,

Why does the compilation of b.c fail, while that of a.c succeeds with
gcc-4.0.0 or later?  Compilaton with gcc-3.4.4 both failed.

% gcc -v
Using built-in specs.
Target: sparc-sun-solaris2.9
Configured with: ../gcc/configure --disable-nls --with-gmp=/usr/local --with-mpfr=/usr/local
Thread model: posix
gcc version 4.0.2 20050707 (prerelease)
% gcc a.c
% gcc b.c
Undefined			first referenced
 symbol  			    in file
isinf                               /tmp/ccSOxuGb.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status


[-- Attachment #2: a.c --]
[-- Type: application/octet-stream, Size: 63 bytes --]

int
main (void)
{
  double f = 0.0;
  isinf (f);
  return 0;
}

[-- Attachment #3: b.c --]
[-- Type: application/octet-stream, Size: 238 bytes --]

#include <stdio.h>

int
main (void)
{
  double f = 0.0;
  if (!isinf (f))
    {
      printf ("not isinf(oo) ... ");
      return 1;
    }
  if (!isinf (-f))
    {
      printf ("not isinf(-oo) ... ");
      return 1;
    }
  return 0;
}

[-- Attachment #4: Type: text/plain, Size: 23 bytes --]


-- 
Hiroshi Fujishima

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2005-07-14  9:47 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-13 17:07 isinf Hiroshi Fujishima
2005-07-13 19:08 ` isinf Eric Botcazou
2005-07-13 22:32   ` isinf Hiroshi Fujishima
2005-07-13 22:59     ` isinf Eric Botcazou
2005-07-13 23:17       ` isinf Hiroshi Fujishima
2005-07-13 23:29         ` isinf Joe Buck
2005-07-13 23:39           ` isinf Dale Johannesen
2005-07-13 23:48           ` isinf Hiroshi Fujishima
2005-07-14  6:27             ` isinf Eric Botcazou
2005-07-14  6:52               ` isinf Michael Veksler
2005-07-14  7:33                 ` isinf Eric Botcazou
2005-07-14  7:56                   ` isinf Michael Veksler
2005-07-14  8:59                     ` isinf Andreas Schwab
2005-07-14  9:10                       ` isinf Eric Botcazou
2005-07-14  9:27                       ` isinf Hiroshi Fujishima
2005-07-14  9:35                         ` isinf Jakub Jelinek
2005-07-14  9:47                           ` isinf Andreas Schwab

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