🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Frank Nobis Thu, 21 Jan 1993 23:07
Possible bug in gcc 2.3.3 on 386BSD
#1632
Author: 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)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads