🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1632

Possible bug in gcc 2.3.3 on 386BSD

#1632
From: Frank Nobis
Date: Thu, 21 Jan 1993 23:07
48 lines
2135 bytes
I think I have discovered a bug in gcc 2.3.3.

I am running 386BSD without a 80387.

The old gcc 1.39 produce correct values.


Script started on Wed Jan 20 23:55:44 1993
ttyp2 </tmp> 1 > gcc -v a.c
Reading specs from /usr/local/lib/gcc-lib/i386-bsd/2.3.3/specs
gcc version 2.3.3
 /usr/local/lib/gcc-lib/i386-bsd/2.3.3/cpp -lang-c -v -undef -D__GNUC__=2 -Dunix -Di386 -D____386BSD____ -D__386BSD__ -DBSD_NET2 -D__unix__ -D__i386__ -D____386BSD____ -D__386BSD__ -D__BSD_NET2__ -D__unix -D__i386 -D____386BSD____ -D__386BSD__ -D__BSD_NET2 a.c /var/tmp/cc004497.i
GNU CPP version 2.3.3 (80386, BSD syntax)
 /usr/local/lib/gcc-lib/i386-bsd/2.3.3/cc1 /var/tmp/cc004497.i -quiet -dumpbase a.c -version -o /var/tmp/cc004497.s
GNU C version 2.3.3 (80386, BSD syntax) compiled by GNU C version 2.3.3.
 as -o /var/tmp/cc0044971.o /var/tmp/cc004497.s
 /usr/local/lib/gcc-lib/i386-bsd/2.3.3/ld /usr/lib/crt0.o -L/usr/local/lib/gcc-lib/i386-bsd/2.3.3 -L/usr/local/lib /var/tmp/cc0044971.o -lgcc -lc -lgcc
ttyp2 </tmp> 2 > a.out
-2147483648
8
8.000000
ttyp2 </tmp> 3 > cat a.c

#include <stdio.h>
#include <math.h>

int main()
{
  double	a = 7.6;

  printf ("%d\n", (int) 7.6);
  printf ("%d\n", (int) a);
  printf ("%f\n", a);

  return (0);
}
ttyp2 </tmp> 4 > exit

Script done on Wed Jan 20 23:56:55 1993


regards
       Frank
--
 fn@trinity.do.open.de   WARNUNG: Kinder! Es kann gefaehrlich sein, mit dem
 +49 231 103640 Voice    Weltuntergang zu spielen. Ihr solltet ihn besser nicht
 4600 Dortmund 1,        im eigenen Heim heraufbeschwoeren.
 Grosse Heimstr. 50      (Terry Pratchett, Ein gutes Omen)
Technical Details
Message-ID: <9301202311.AA04534@trinity.do.open.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!trinity.do.open.DE!fn

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!trinity.do.open.DE!fn
From: fn@trinity.do.open.DE (Frank Nobis)
Newsgroups: gnu.gcc.bug
Subject: Possible bug in gcc 2.3.3 on 386BSD
Date: 21 Jan 1993 18:07:47 -0500
Organization: GNUs Not Usenet
Lines: 49
Sender: daemon@cis.ohio-state.edu
Approved: bug-gcc@prep.ai.mit.edu
Distribution: gnu
Message-ID: <9301202311.AA04534@trinity.do.open.de>