From owner-freebsd-current Wed Jan 17 17:32:36 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA25142 for current-outgoing; Wed, 17 Jan 1996 17:32:36 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [192.216.222.3]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id RAA25097 for ; Wed, 17 Jan 1996 17:32:24 -0800 (PST) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id RAA23759 for ; Wed, 17 Jan 1996 17:27:13 -0800 Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.6.12/8.6.12) with ESMTP id RAA19205 for ; Wed, 17 Jan 1996 17:27:17 -0800 Message-Id: <199601180127.RAA19205@austin.polstra.com> To: freebsd-current@FreeBSD.org Subject: src/lib/libc/sys/Makefile.inc: proposed change Date: Wed, 17 Jan 1996 17:27:17 -0800 From: John Polstra Sender: owner-current@FreeBSD.org Precedence: bulk I ran into a problem in "src/lib/libc/sys/Makefile.inc" recently, and I want to see if anybody envisions any problems with a change I want to make to it. I was making a modified local version of the libc tree for generating an ELF library. That involved creating a couple of new preprocessor macros, and using them in some of the assembly language files. I don't have the precise details handy, but an assembly died on a statement something like this: movl $FOO,%eax where "FOO" was one of the new macros I defined. The problem was that, by default, "cpp" considers `$' to be a valid character in an identifier. So it was interpreting `$FOO' as an identifier, rather than as two separate tokens. This is never correct in i386 assembly language, since `$' is an operator that means "interpret as a literal". So I want to modify "Makefile.inc" in that directory so that cpp is invoked with the "-$" option, which makes `$' _not_ a valid identifier character. (Yes, I know I have to double the dollar sign in the makefile.) I tried it locally, and it seemed to work fine. Do any of you see any problem with making that change? -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth