Module Name: src Committed By: rin Date: Sun Sep 11 09:14:56 UTC 2022
Modified Files: src/sys/arch/evbppc/conf: Makefile.evbppc.inc Log Message: Add hack for clang for ibm4xx/trap.c. Integrated as does not recognize {l,st}swx, that have been requisite insns by architecture since 601. Also, it does not pass gas for appropriate -mfoo flag. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/arch/evbppc/conf/Makefile.evbppc.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/evbppc/conf/Makefile.evbppc.inc diff -u src/sys/arch/evbppc/conf/Makefile.evbppc.inc:1.8 src/sys/arch/evbppc/conf/Makefile.evbppc.inc:1.9 --- src/sys/arch/evbppc/conf/Makefile.evbppc.inc:1.8 Sat Jun 25 02:26:53 2011 +++ src/sys/arch/evbppc/conf/Makefile.evbppc.inc Sun Sep 11 09:14:56 2022 @@ -1,7 +1,19 @@ -# $NetBSD: Makefile.evbppc.inc,v 1.8 2011/06/25 02:26:53 matt Exp $ +# $NetBSD: Makefile.evbppc.inc,v 1.9 2022/09/11 09:14:56 rin Exp $ CPPFLAGS += -D__${BOARDTYPE}__ RAMDISKDIR!= cd ${NETBSDSRCDIR}/distrib/${THISPPC:T}/ramdisk && ${PRINTOBJDIR} .-include "${THISPPC}/conf/Makefile.${BOARDTYPE}.inc" + +# XXX hack for clang: +# - integrated as does not recognize {l,st}swx. +# - it does not pass gas for appropriate -mfoo flag. +.if ${ACTIVE_CC} == "clang" +. if !empty(AFLAGS:M-mcpu=403) +COPTS.trap.c+= -fno-integrated-as -Wa,-m403 +. endif +. if !empty(AFLAGS:M-mcpu=405) +COPTS.trap.c+= -fno-integrated-as -Wa,-m405 +. endif +.endif