Subject: -traditional-cpp
To: None <tech-kern@netbsd.org>
From: Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
List: tech-kern
Date: 05/26/2002 14:29:13
Hi!

I'm currently cleaning our tree of __STDC__ if(def)s.

Currently, share/mk/sys.mk contains the line:

	COMPILE.S?=    ${CC} ${AFLAGS} ${CPPFLAGS} -c -traditional-cpp

Which makes it necessary to leave the __STDC__ checks at least in
lib/libc/arch/*/SYS.h.

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...

Bye,
 Thomas

-- 
Thomas Klausner - wiz@danbala.tuwien.ac.at
When all other means of communication fail, try words.