home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / gcc / bug / 3223 < prev    next >
Encoding:
Text File  |  1993-01-21  |  2.0 KB  |  62 lines

  1. Path: 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
  2. From: fn@trinity.do.open.DE (Frank Nobis)
  3. Newsgroups: gnu.gcc.bug
  4. Subject: Possible bug in gcc 2.3.3 on 386BSD
  5. Date: 21 Jan 1993 18:07:47 -0500
  6. Organization: GNUs Not Usenet
  7. Lines: 49
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-gcc@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <9301202311.AA04534@trinity.do.open.de>
  12.  
  13. I think I have discovered a bug in gcc 2.3.3.
  14.  
  15. I am running 386BSD without a 80387.
  16.  
  17. The old gcc 1.39 produce correct values.
  18.  
  19.  
  20. Script started on Wed Jan 20 23:55:44 1993
  21. ttyp2 </tmp> 1 > gcc -v a.c
  22. Reading specs from /usr/local/lib/gcc-lib/i386-bsd/2.3.3/specs
  23. gcc version 2.3.3
  24.  /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
  25. GNU CPP version 2.3.3 (80386, BSD syntax)
  26.  /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
  27. GNU C version 2.3.3 (80386, BSD syntax) compiled by GNU C version 2.3.3.
  28.  as -o /var/tmp/cc0044971.o /var/tmp/cc004497.s
  29.  /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
  30. ttyp2 </tmp> 2 > a.out
  31. -2147483648
  32. 8
  33. 8.000000
  34. ttyp2 </tmp> 3 > cat a.c
  35.  
  36. #include <stdio.h>
  37. #include <math.h>
  38.  
  39. int main()
  40. {
  41.   double    a = 7.6;
  42.  
  43.   printf ("%d\n", (int) 7.6);
  44.   printf ("%d\n", (int) a);
  45.   printf ("%f\n", a);
  46.  
  47.   return (0);
  48. }
  49. ttyp2 </tmp> 4 > exit
  50.  
  51. Script done on Wed Jan 20 23:56:55 1993
  52.  
  53.  
  54. regards
  55.        Frank
  56. --
  57.  fn@trinity.do.open.de   WARNUNG: Kinder! Es kann gefaehrlich sein, mit dem
  58.  +49 231 103640 Voice    Weltuntergang zu spielen. Ihr solltet ihn besser nicht
  59.  4600 Dortmund 1,        im eigenen Heim heraufbeschwoeren.
  60.  Grosse Heimstr. 50      (Terry Pratchett, Ein gutes Omen)
  61.  
  62.