home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / gcc / bug / 2306 < prev    next >
Encoding:
Text File  |  1992-09-10  |  992 b   |  38 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!physik.uni-kl.DE!kring
  3. From: kring@physik.uni-kl.DE (Thomas Kettenring)
  4. Subject: GCC 2.2.2 on an Atari ST: address error
  5. Message-ID: <9209101705.AA10065@physik.uni-kl.de_>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Thu, 10 Sep 1992 21:05:29 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 25
  12.  
  13. I found a bug in GCC 2.2.2, PL2.  When I try to compile the following
  14. program
  15.  
  16.         #include <float.h>
  17.  
  18.         main()
  19.         {
  20.             float x;
  21.  
  22.             x = -DBL_MAX;
  23.         }
  24.         
  25. the compiler aborts with an `address error' in cc1.  Obviosly DBL_MAX cannot
  26. be stored in a float, but I think it is not ok for the compiler to crash
  27. in such a case.
  28.  
  29. I run GCC on an Atari ST.  The version I use is said to be compiled with
  30. the MiNT libs (I don't know whether this makes a difference).
  31.  
  32. Jochen.
  33.  
  34. ---
  35. You can mail me at `kring@physik.uni-kl.de'.
  36. Please use `c/o Jochen' in the Subject.
  37.  
  38.