home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4518 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.9 KB  |  61 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: mozart.unx.sas.com!sassek
  3. From: sassek@wonka.unx.sas.com (Steve Krueger)
  4. Subject: Re: 3 bugs in SAS/C v. 6.56
  5. Originator: sassek@wonka.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <DnK0t0.1wp@unx.sas.com>
  8. Date: Thu, 29 Feb 1996 20:27:00 GMT
  9. X-Nntp-Posting-Host: wonka.unx.sas.com
  10. References:  <4gjvvc$a3t@gjallar.daimi.aau.dk>
  11. Organization: SAS Institute Inc.
  12. Keywords: SAS/C,bug
  13.  
  14.  
  15. I too would like to thank you for reducing the problem down to
  16. such small examples. It make finding/fixing the problem much easier.
  17.  
  18. In article <4gjvvc$a3t@gjallar.daimi.aau.dk>, liborius@daimi.aau.dk (Per Liboriussen) writes:
  19. |> I have found 3 bugs in SAS/C version 6.56: Two cases of generating bad code,
  20. |> and one case of refusing to compile a correct program. Below are descriptions
  21. |> of the problems, including the smallest programs I have been able to find
  22. |> which shows the bugs, and the commandlines used to compile. Hopefully someone
  23. |> from SAS reads this (and puts out a 6.57 patch ;-) ).
  24. |> 
  25. |> -------------------------------------------------------------------------
  26. |> Number 1:
  27. |> 
  28.  
  29. This is a bug in phase 2 where it tries to remove unnecessary convert 
  30. from word to long operands. In this case, it lost the info that a and b
  31. are unsigned. I have a fix for this problem, but this area of the compiler 
  32. is very tricky. If you would like to try a test version, send me email.
  33.  
  34.  
  35. |> -------------------------------------------------------------------------
  36. |> Number 2:
  37. |> 
  38.  
  39. Still working on this one.
  40.  
  41.  
  42. |> Number 3:
  43. |> 
  44.  
  45. It is not ANSI to use narrow types (ie char, short, float) to old
  46. style function. We tried to make it work for as many cases as possible,
  47. but the one case where it can't work is if you have a prototype that
  48. says float, and an old style function definition. Change
  49.  
  50. void foo(f)
  51. float f;
  52.  
  53. to 
  54.  
  55. void foo(float f)
  56.  
  57. and it will work ok.
  58.  
  59. sk
  60.  
  61.