Subject: Re: -traditional-cpp
To: None <tech-kern@netbsd.org>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: tech-kern
Date: 05/26/2002 09:24:31
On Sun, May 26, 2002 at 02:29:13PM +0200, Thomas Klausner wrote:
> There's an additional uses of -traditional-cpp in bsd.dep.mk:
>
> .depend: ${SRCS} ${DPSRCS}
> @rm -f .depend
> @files="${.ALLSRC:M*.s} ${.ALLSRC:M*.S}"; \
> if [ "$$files" != " " ]; then \
> echo ${MKDEP} -a ${MKDEPFLAGS} \
> ${AFLAGS:M-[ID]*:Q} ${CPPFLAGS:Q} -traditional-cpp ${AINC:Q} \
> $$files; \
> ${MKDEP} -a ${MKDEPFLAGS} \
> ${AFLAGS:M-[ID]*} ${CPPFLAGS} -traditional-cpp ${AINC} $$files; \
> fi
>
> What's the point of those?
> Shouldn't they be removed now?
> If it's still needed for some files, then those files should be
> fixed...
No. It is necessary to preprocess .S files with -traditional-cpp for
many architectures because of conflicts between the asm's syntax and
ISO C cpp's semantics.
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>