Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Sep 1998 16:04:36 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, jdp@polstra.com
Cc:        current@FreeBSD.ORG
Subject:   Re: __ELF__ and the likes
Message-ID:  <199809190604.QAA01497@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> >Are there plans for implementing __ELF__ as a cpp define?
>> 
>> I hope not.
>
>I'm curious about this.  I've always felt that cpp should do exactly
>the same thing as "cc -E".  Why is it that we don't do that?

cpp gets (ab)used for things not related to compiling C programs with cc.
It should not depend on what today's version of cc does.  /usr/bin/cpp
does something closer to
"cc -E -P -traditional -D__GNUC__ -$ -nostdinc -I/usr/include"
to keep close to what old versions of cc did (defining __GNUC__ and
modifying the include search path here are wrong).

Bruc

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809190604.QAA01497>