*BSD News Article 21188


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!network.ucsd.edu!library.ucla.edu!europa.eng.gtefsd.com!uunet!mcsun!news.forth.gr!news.forth.gr!vp
From: vp@nemesis.csi.forth.gr (Vassilis Prevelakis)
Newsgroups: comp.os.386bsd.bugs
Subject: Problem with gcc-2.4.5 under 386BSD
Date: 19 Sep 1993 23:17:10 +0300
Organization: Institute of Computer Science, FORTH Hellas
Lines: 38
Message-ID: <vp.748469140@news.forth.gr>
NNTP-Posting-Host: nemesis.csi.forth.gr

While this isn't really a 386BSD problem, I want to get feedback from
other users of the system before crying wolf in case I screwed things up.

I have installed gcc 2.4.5 and I have observed the following behaviour
from the preprocessor:
--- cut here ------ cut here ------ cut here ------ cut here ---
bigus%  cat ttt
#define M(X)    .X.
M(O)
bigus%  /usr/libexec/cpp ttt
# 1 "ttt"

. O .
bigus%  /usr/libexec/old/cpp ttt
# 1 "ttt"

.O.
bigus%
--- cut here ------ cut here ------ cut here ------ cut here ---

That is the new cpp APPEARS to add spaces around the argument string.
This messes up everything from imake generated makefiles to fancy
macros in C programs.

Since nobody else has so far complained I have to assume that I have done
smth wrong with the installation of gcc.  Has anybody encountered similar
behaviour?

Thanks

**vp

-----------------------------------
Vassilis Prevelakis   |       vp@csi.forth.gr
Thoukididou 10A       |   old style address:
Plaka, Athens 105 58  |       ...!mcvax!ariadne!vp
GREECE                |
Tel. +30 1 32 32 867  |   FAX +30 1 72 24 603