# make.PPC32gnu - GNU compilation tools definitions for generic PowerPC # # Copyright 1995-2004 Wind River Systems, Inc. # # modification history # -------------------- # 01j,28oct04,to removed -fno-zero-initialized-in-bss (now in defs.gnu) # 01i,27may04,to 970 cleanups. # 01h,19apr04,to Add -fno-zero-initialized-in-bss flag for gcc3.x (tmp?) # 01g,14apr04,rec PPC970 support # 01f,02jul04,pch SPR 98864: AltiVec support for gnu build of fioLib # 01e,08jun04,pch set _WRS_HARDWARE_FP for hard-float 440 # 01d,04feb04,pch PPC32 floating-point adjustments # 01c,07nov03,c_c Removed Compiler definitions. # 01b,05feb03,pch Add CPU_VARIANT support # 01a,11dec02,pch Created (from make.PPC440gnu vn 01f). # # DESCRIPTION # This file contains definitions and flags for the gnu tools # (compiler, assembler, linker etc.) to build for a generic # PowerPC with PPC60x hardware floating point. # If building for a specific processor (as a variant), # defs.ppc will set its type number into PPC32VARIANT. #*/ CPU = PPC32 TOOL = gnu include $(TGT_DIR)/h/tool/common/defs.ppc CC_OPTIM_DRIVER = -fno-builtin -fvolatile CC_OPTIM_NORMAL = -O2 -fstrength-reduce -fno-builtin CC_OPTIM_TARGET = -O2 -fvolatile -fno-builtin ifneq ($(PPC32VARIANT),) ifneq ($(PPC32VARIANT),970) CC_ARCH_SPEC = -mcpu=$(PPC32VARIANT) \ -mhard-float -mstrict-align -mno-implicit-fp else CC_ARCH_SPEC = -mcpu=power4 -Wa,-mppc64bridge \ -mhard-float -mstrict-align -mno-implicit-fp OPTION_ALTIVEC_AS = -Wa,-maltivec OPTION_ALTIVEC_C = -maltivec endif ifeq ($(PPC32VARIANT),440) # inform ppc440.h that we are building for hardware FP CC_ARCH_SPEC += -D_WRS_HARDWARE_FP endif ifeq ($(PPC32VARIANT),604) OPTION_ALTIVEC_AS = -Wa,-maltivec OPTION_ALTIVEC_C = -maltivec endif else CC_ARCH_SPEC = -mhard-float -mstrict-align -mno-implicit-fp -DPPC32_fp60x # *** TEMP HACK: enable AltiVec support for math/fioLib.c # *** Remove this when the coprocessor abstraction # *** supports printf/scanf format extensions. OPTION_ALTIVEC_C = -maltivec -D_WRS_ALTIVEC_SUPPORT endif LD_SCRIPT_RAM = -defsym wrs_kernel_rom_size=0x0$(ROM_SIZE) \ -T $(TGT_DIR)/h/tool/gnu/ldscripts/link.DOTBOOTRAM LD_SCRIPT_ROM = -defsym wrs_kernel_rom_size=0x0$(ROM_SIZE) \ -T $(TGT_DIR)/h/tool/gnu/ldscripts/link.DOTBOOTROM CF = # No Cfront support for PowerPC MAKETAIL = CLEANTAIL = # end of make.PPC32gnu