home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!europa.eng.gtefsd.com!gatech!udel!bogus.sura.net!howland.reston.ans.net!spool.mu.edu!agate!ames!saimiri.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!serval!hlu
- From: hlu@eecs.wsu.edu (H.J. Lu)
- Subject: Re: bug in cpp?
- Message-ID: <1993Jan27.192855.9198@serval.net.wsu.edu>
- Sender: news@serval.net.wsu.edu (USENET News System)
- Organization: School of EECS, Washington State University
- References: <1993Jan27.105225.3418@athena.mit.edu>
- Date: Wed, 27 Jan 93 19:28:55 GMT
- Lines: 40
-
- In article <1993Jan27.105225.3418@athena.mit.edu>, ludger.kunz@fernuni-hagen.de (Ludger Kunz) writes:
- |> Today i tried to compile gzip-0.8.1. Everything worked fine except for
- |> the assembler file. The file match.S is preprocessed by cpp with
- |> the following command:
- |> /lib/cpp -DUNDERLINE match.S > _match.s
- |>
- |> When trying to compile the _match.s-file with gcc, the following
- |> 2 messages occur:
- |> match.s:51: invalid character '_' in opcode
- |> match.s:63: invalid character '_' in opcode
- |>
- |> Looking at the file _match.s leads to the lines
- |>
- |> _match_init :
- |> and
- |> _longest_match :
- |>
- |> Removing the blank between the label and the colon leads to a successful
- |> compilation.
- |> Another bug concerns the following code:
- |> add $window+2,%edi
- |> This leads to an error while linking. The symbol window must be replaced with
- |> _window. There are to locations where these replacement isn't done by
- |> cpp.
- |> Both situations work right on a sun.
- |>
- |> Is it possibly a bug in cpp for linux?
- |>
- |> mfg
- |>
- |> lket
-
- For gzip-0.8.1 with gcc 2.3.3 + 0.99.4, I did
-
- configure
- vi Makefile # remove getopt.o which is in libc.a
- make
-
-
- H.J.
-