home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / gcc / bug / 3039 < prev    next >
Encoding:
Text File  |  1992-12-22  |  5.3 KB  |  150 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!sedona.intel.com!tmcconne
  3. From: tmcconne@sedona.intel.com (Tom McConnell)
  4. Subject: gcc-2.3.2 / NCR-3350 SVR4.02 float.h bug
  5. Message-ID: <9212221653.AA31117@thunder.intel.com>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Tue, 22 Dec 1992 02:53:05 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 137
  12.  
  13.   Howdy.
  14.  
  15.   I have finished porting gcc-2.3.2 to the NCR-3350, and used it to compile
  16. X11R5p21 and libg++-2.3. This report concerns the float.h include file.
  17.  
  18.     Cheers,
  19.  
  20.     Tom McConnell
  21.  
  22.  Tom McConnell          |     Internet: tmcconne@sedona.intel.com
  23.  Intel, Corp. C3-91     |     Phone: (602)-554-8229
  24.  5000 W. Chandler Blvd. | The opinions expressed are my own. No one in 
  25.  Chandler, AZ  85226    | their right mind would claim them.
  26.  
  27. Problem: Warnings for differences between ./include/float.h and
  28.         ./include/syslimits.h
  29.  
  30. Program: float.c
  31.  
  32. /* Highlight problems between syslimits.h and float.h */
  33. #include <syslimits.h>
  34. #include <float.h>
  35. main(){}
  36.  
  37. Example compile:
  38.  
  39. faust> gmake -f Makefile_float
  40. gcc -v    -c float.c -o float.o
  41. Reading specs from /stor/gnu/iAWS/lib/gcc-lib/ncr3000/2.3.2/specs
  42. gcc version 2.3.2
  43.  /stor/gnu/iAWS/lib/gcc-lib/ncr3000/2.3.2/cpp -lang-c -v -undef -D__GNUC__=2
  44.  -Di386 -Dunix -D__svr4__ -D__i386__ -D__unix__ -D__svr4__ -D__i386 -D__unix
  45.  -D__svr4__ -Asystem(unix) -Acpu(i386) -Amachine(i386) float.c
  46.  /var/tmp/cca003Qb.i
  47. GNU CPP version 2.3.2 (i386 System V Release 4)
  48. In file included from float.c:3:
  49. /stor/gnu/iAWS/lib/gcc-lib/ncr3000/2.3.2/include/float.h:19: warning:
  50.  `FLT_MIN' redefined
  51. /stor/gnu/iAWS/lib/gcc-lib/ncr3000/2.3.2/include/syslimits.h:126:
  52.  warning: this is the location of the previous definition
  53. /stor/gnu/iAWS/lib/gcc-lib/ncr3000/2.3.2/include/float.h:25: warning:
  54.  `FLT_MAX' redefined
  55. /stor/gnu/iAWS/lib/gcc-lib/ncr3000/2.3.2/include/syslimits.h:125: warning:
  56.  this is the location of the previous definition
  57. /stor/gnu/iAWS/lib/gcc-lib/ncr3000/2.3.2/include/float.h:38: warning:
  58.  `DBL_MIN' redefined
  59. /stor/gnu/iAWS/lib/gcc-lib/ncr3000/2.3.2/include/syslimits.h:123: warning:
  60.  this is the location of the previous definition
  61. /stor/gnu/iAWS/lib/gcc-lib/ncr3000/2.3.2/include/float.h:44: warning:
  62.  `DBL_MAX' redefined
  63. /stor/gnu/iAWS/lib/gcc-lib/ncr3000/2.3.2/include/syslimits.h:122: warning:
  64.  this is the location of the previous definition
  65.  /stor/gnu/iAWS/lib/gcc-lib/ncr3000/2.3.2/cc1 /var/tmp/cca003Qb.i -quiet
  66.  -dumpbase float.c -version -o /var/tmp/cca003Qb.s
  67. GNU C version 2.3.2 (i386 System V Release 4) compiled by GNU C version 2.3.2.
  68.  /usr/ccs/bin/as -V -Qy -o float.o /var/tmp/cca003Qb.s
  69. as: Standard C Development Environment  (SCDE) 5.0  04/19/90
  70. rm -f float
  71. gcc -v -g -o float float.o
  72. Reading specs from /stor/gnu/iAWS/lib/gcc-lib/ncr3000/2.3.2/specs
  73. gcc version 2.3.2
  74.  /usr/ccs/bin/ld -V -Y P,/usr/ccs/lib:/usr/lib -Qy -o float /usr/ccs/lib/crt1.o
  75.  /usr/ccs/lib/crti.o /usr/ccs/lib/values-Xa.o
  76.  /stor/gnu/iAWS/lib/gcc-lib/ncr3000/2.3.2/crtbegin.o
  77.  -L/stor/gnu/iAWS/lib/gcc-lib/ncr3000/2.3.2 -L/usr/ccs/bin -L/usr/ccs/lib
  78.  -L/stor/gnu/iAWS/lib float.o -lgcc -lc
  79.  /stor/gnu/iAWS/lib/gcc-lib/ncr3000/2.3.2/crtend.o /usr/ccs/lib/crtn.o -lgcc
  80. ld: Standard C Development Environment  (SCDE) 5.0  04/19/90
  81.  
  82. Analysis: <float.h> uses a lower case "e" in the indicated definitions,
  83.             where <syslimits.h> uses an upper case "E".
  84.  
  85. Solution: Modify <float.h> to use upper case "E".
  86.  
  87. Patch:
  88.  
  89. This patch file was created on Tue Dec 22 09:38:19 MST 1992.
  90.  
  91. The top level directory was /a/stor/gnu/iAWS/lib/gcc-lib/ncr3000/2.3.2/include
  92.  
  93.  
  94. *** ./float.h_orig    Tue Dec 22 09:11:09 1992
  95. --- ./float.h    Sun Dec 20 01:46:58 1992
  96. ***************
  97. *** 17,21 ****
  98.   #define FLT_MIN_EXP (-125)
  99.      /* Minimum normalised float */
  100. ! #define FLT_MIN 1.17549435e-38F
  101.      /* Minimum int x such that 10**x is a normalised float */
  102.   #define FLT_MIN_10_EXP (-37)
  103. --- 17,21 ----
  104.   #define FLT_MIN_EXP (-125)
  105.      /* Minimum normalised float */
  106. ! #define FLT_MIN 1.17549435E-38F
  107.      /* Minimum int x such that 10**x is a normalised float */
  108.   #define FLT_MIN_10_EXP (-37)
  109. ***************
  110. *** 23,27 ****
  111.   #define FLT_MAX_EXP 128
  112.      /* Maximum float */
  113. ! #define FLT_MAX 3.40282347e+38F
  114.      /* Maximum int x such that 10**x is a representable float */
  115.   #define FLT_MAX_10_EXP 38
  116. --- 23,27 ----
  117.   #define FLT_MAX_EXP 128
  118.      /* Maximum float */
  119. ! #define FLT_MAX 3.40282347E+38F
  120.      /* Maximum int x such that 10**x is a representable float */
  121.   #define FLT_MAX_10_EXP 38
  122. ***************
  123. *** 36,40 ****
  124.   #define DBL_MIN_EXP (-1021)
  125.      /* Minimum normalised double */
  126. ! #define DBL_MIN 2.2250738585072014e-308
  127.      /* Minimum int x such that 10**x is a normalised double */
  128.   #define DBL_MIN_10_EXP (-307)
  129. --- 36,40 ----
  130.   #define DBL_MIN_EXP (-1021)
  131.      /* Minimum normalised double */
  132. ! #define DBL_MIN 2.2250738585072014E-308
  133.      /* Minimum int x such that 10**x is a normalised double */
  134.   #define DBL_MIN_10_EXP (-307)
  135. ***************
  136. *** 42,46 ****
  137.   #define DBL_MAX_EXP 1024
  138.      /* Maximum double */
  139. ! #define DBL_MAX 1.7976931348623157e+308
  140.      /* Maximum int x such that 10**x is a representable double */
  141.   #define DBL_MAX_10_EXP 308
  142. --- 42,46 ----
  143.   #define DBL_MAX_EXP 1024
  144.      /* Maximum double */
  145. ! #define DBL_MAX 1.7976931348623157E+308
  146.      /* Maximum int x such that 10**x is a representable double */
  147.   #define DBL_MAX_10_EXP 308
  148.   
  149.  
  150.