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


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

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
AFLAGS+=	-x assembler-with-cpp -traditional-cpp -Wa,-m68030 -Wa,-m68851 -Wa,-m68040

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

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

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

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

to  I gonna commit that unless there are objections.

SY, Uwe
--                         |       Zu Grunde kommen            |       Ist zu Grunde gehen