Subject: HAVE_GCC3
To: None <tech-toolchain@netbsd.org>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: tech-toolchain
Date: 08/19/2003 17:19:34
We have three uses of HAVE_GCC3 make variable in the tree.

In bsd.own.mk:

.if ${MACHINE_CPU} == "sh3" && !defined(HAVE_GCC3)
NOPIC=		# defined
.endif


In sys/arch/cesfic/conf/Makefile.cesfic it's used to add
-traditional-cpp to AFALGS:

.if defined(HAVE_GCC3)
AFLAGS+=	-x assembler-with-cpp -Wa,-m68030 -Wa,-m68851 -Wa,-m68040
.else
AFLAGS+=	-x assembler-with-cpp -traditional-cpp -Wa,-m68030 -Wa,-m68851 -Wa,-m68040
.endif

And, similarly, in ./sys/arch/m68k/fpsp/Makefile

.if defined(HAVE_GCC3)
AFLAGS		= -x assembler-with-cpp -m68040
.else
AFLAGS		= -x assembler-with-cpp -traditional-cpp -m68040
.endif


If we do plan to keep this variable around, it makes sense to add

.if ${USE_TOOLS_TOOLCHAIN} == "no"
HAVE_GCC3=	yes
.endif

to bsd.own.mk.  I gonna commit that unless there are objections.

SY, Uwe
-- 
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen