home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 25607 < prev    next >
Encoding:
Text File  |  1993-01-27  |  1.2 KB  |  42 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!enterpoop.mit.edu!bloom-picayune.mit.edu!daemon
  3. From: ludger.kunz@fernuni-hagen.de (Ludger Kunz)
  4. Subject: bug in cpp?
  5. Message-ID: <1993Jan27.105225.3418@athena.mit.edu>
  6. Sender: daemon@athena.mit.edu (Mr Background)
  7. Reply-To: ludger.kunz@fernuni-hagen.de (Ludger Kunz)
  8. Organization: The Internet
  9. Date: Wed, 27 Jan 1993 10:52:25 GMT
  10. Lines: 30
  11.  
  12. Today i tried to compile gzip-0.8.1. Everything worked fine except for
  13. the assembler file. The file match.S is preprocessed by cpp with
  14. the following command:
  15. /lib/cpp -DUNDERLINE match.S > _match.s
  16.  
  17. When trying to compile the _match.s-file with gcc, the following
  18. 2 messages occur:
  19. match.s:51: invalid character '_' in opcode
  20. match.s:63: invalid character '_' in opcode
  21.  
  22. Looking at the file _match.s leads to the lines
  23.  
  24.     _match_init :
  25. and 
  26.     _longest_match :
  27.  
  28. Removing the blank between the label and the colon leads to a successful 
  29. compilation.
  30. Another bug concerns the following code:
  31.  add     $window+2,%edi
  32. This leads to an error while linking. The symbol window must be replaced with
  33. _window. There are to locations where these replacement isn't done by
  34. cpp.
  35. Both situations work right on a sun.
  36.  
  37. Is it possibly a bug in cpp for linux?
  38.  
  39. mfg
  40.  
  41. lket
  42.