head	1.4;
access;
symbols
	perseant-exfatfs-base-20261102:1.4
	netbsd-11-1-RELEASE:1.1
	netbsd-10-2-RELEASE:1.1
	netbsd-9-5-RELEASE:1.1
	netbsd-11-0-RELEASE:1.1
	netbsd-11-0-RC7:1.1
	netbsd-11-0-RC6:1.1
	netbsd-11-0-RC5:1.1
	netbsd-11-0-RC4:1.1
	netbsd-11-0-RC3:1.1
	netbsd-11-0-RC2:1.1
	netbsd-11-0-RC1:1.1
	perseant-exfatfs-base-20250801:1.1
	netbsd-11:1.1.0.42
	netbsd-11-base:1.1
	netbsd-10-1-RELEASE:1.1
	perseant-exfatfs-base-20240630:1.1
	perseant-exfatfs:1.1.0.40
	perseant-exfatfs-base:1.1
	netbsd-9-4-RELEASE:1.1
	netbsd-10-0-RELEASE:1.1
	netbsd-10-0-RC6:1.1
	netbsd-10-0-RC5:1.1
	netbsd-10-0-RC4:1.1
	netbsd-10-0-RC3:1.1
	netbsd-10-0-RC2:1.1
	thorpej-ifq:1.1.0.38
	thorpej-ifq-base:1.1
	thorpej-altq-separation:1.1.0.36
	thorpej-altq-separation-base:1.1
	netbsd-10-0-RC1:1.1
	netbsd-10:1.1.0.34
	netbsd-10-base:1.1
	bouyer-sunxi-drm:1.1.0.32
	bouyer-sunxi-drm-base:1.1
	netbsd-9-3-RELEASE:1.1
	thorpej-i2c-spi-conf2:1.1.0.30
	thorpej-i2c-spi-conf2-base:1.1
	thorpej-futex2:1.1.0.28
	thorpej-futex2-base:1.1
	thorpej-cfargs2:1.1.0.26
	thorpej-cfargs2-base:1.1
	cjep_sun2x-base1:1.1
	cjep_sun2x:1.1.0.24
	cjep_sun2x-base:1.1
	cjep_staticlib_x-base1:1.1
	netbsd-9-2-RELEASE:1.1
	cjep_staticlib_x:1.1.0.22
	cjep_staticlib_x-base:1.1
	thorpej-i2c-spi-conf:1.1.0.20
	thorpej-i2c-spi-conf-base:1.1
	thorpej-cfargs:1.1.0.18
	thorpej-cfargs-base:1.1
	thorpej-futex:1.1.0.16
	thorpej-futex-base:1.1
	netbsd-9-1-RELEASE:1.1
	bouyer-xenpvh-base2:1.1
	phil-wifi-20200421:1.1
	bouyer-xenpvh-base1:1.1
	phil-wifi-20200411:1.1
	bouyer-xenpvh:1.1.0.14
	bouyer-xenpvh-base:1.1
	is-mlppp:1.1.0.12
	is-mlppp-base:1.1
	phil-wifi-20200406:1.1
	ad-namecache-base3:1.1
	netbsd-9-0-RELEASE:1.1
	netbsd-9-0-RC2:1.1
	ad-namecache-base2:1.1
	ad-namecache-base1:1.1
	ad-namecache:1.1.0.10
	ad-namecache-base:1.1
	netbsd-9-0-RC1:1.1
	phil-wifi-20191119:1.1
	netbsd-9:1.1.0.8
	netbsd-9-base:1.1
	phil-wifi-20190609:1.1
	isaki-audio2:1.1.0.6
	isaki-audio2-base:1.1
	pgoyette-compat-merge-20190127:1.1
	pgoyette-compat-20190127:1.1
	pgoyette-compat-20190118:1.1
	pgoyette-compat-1226:1.1
	pgoyette-compat-1126:1.1
	pgoyette-compat-1020:1.1
	pgoyette-compat-0930:1.1
	pgoyette-compat-0906:1.1
	pgoyette-compat-0728:1.1
	phil-wifi:1.1.0.4
	phil-wifi-base:1.1
	pgoyette-compat-0625:1.1
	pgoyette-compat-0521:1.1
	pgoyette-compat-0502:1.1
	pgoyette-compat-0422:1.1
	pgoyette-compat-0415:1.1
	pgoyette-compat-0407:1.1
	pgoyette-compat-0330:1.1
	pgoyette-compat-0322:1.1
	pgoyette-compat-0315:1.1
	pgoyette-compat:1.1.0.2
	pgoyette-compat-base:1.1;
locks; strict;
comment	@# @;


1.4
date	2026.11.02.13.43.39;	author thorpej;	state Exp;
branches;
next	1.3;
commitid	xFBDIb7dmxrNhT1H;

1.3
date	2026.11.02.12.27.22;	author thorpej;	state Exp;
branches;
next	1.2;
commitid	S07xRcwsgMAERS1H;

1.2
date	2026.11.02.11.48.34;	author thorpej;	state Exp;
branches;
next	1.1;
commitid	h77G658npvDcES1H;

1.1
date	2018.02.25.00.27.16;	author mrg;	state Exp;
branches
	1.1.40.1;
next	;
commitid	rhNeBRRdy64OPasA;

1.1.40.1
date	2026.11.04.23.20.49;	author perseant;	state Exp;
branches;
next	;
commitid	3QTNojfCEH9lUb2H;


desc
@@


1.4
log
@Add -fno-unwind-tables to CFLAGS on all m68k platforms.
@
text
@#	$NetBSD: Makefile.kern.m68k.inc,v 1.3 2026/11/02 12:27:22 thorpej Exp $

# Special make rule to build fpu files in the kernel and avoid passing
# -msoft-float.  Use this with config(1) file, eg:
#   file arch/m68k/m68k/fpu.c compile-with "${M68K_KERN_FPU}"

M68K_KERN_FPU= \
	${CC} ${COPTS.${<:T}} ${CFLAGS:N-msoft-float} ${CPPFLAGS} -c $< -o $@@

# Kernel debugging and profiling require the frame pointer.
HAVE_DDB!=	grep '\#define[ 	]*DDB' opt_ddb.h 2>/dev/null || echo no
HAVE_KGDB!=	grep '\#define[ 	]*KGDB' opt_kgdb.h 2>/dev/null || echo no

.if defined(PROF) || ${HAVE_DDB} != "no" || ${HAVE_KGDB} != "no"
CFLAGS+=	-fno-omit-frame-pointer
.endif

#
# Turn off all unwind tables; they're not terribly useful in our
# kernel environment and add a lot of needless bulk.
#
CFLAGS+=	-fno-unwind-tables
@


1.3
log
@Also set -fno-omit-frame-pointer if DDB or KGDB is configured.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.kern.m68k.inc,v 1.2 2026/11/02 11:48:34 thorpej Exp $
d17 6
@


1.2
log
@Profiling requires the frame pointer, so if PROF is set in the Makefile,
add -fno-omit-frame-pointer.

Problem reported by Romain Dolbeau on port-m68k.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.kern.m68k.inc,v 1.1 2018/02/25 00:27:16 mrg Exp $
d10 5
a14 2
# Profiling requires the frame pointer.
.if defined(PROF)
@


1.1
log
@add a special rule to build m68k/fpu.c to avoid passing -msoft-float.
fixes GCC 6 kernel builds that use this file.
@
text
@d1 1
a1 1
#	$NetBSD$
d9 5
@


1.1.40.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.kern.m68k.inc,v 1.4 2026/11/02 13:43:39 thorpej Exp $
a8 14

# Kernel debugging and profiling require the frame pointer.
HAVE_DDB!=	grep '\#define[ 	]*DDB' opt_ddb.h 2>/dev/null || echo no
HAVE_KGDB!=	grep '\#define[ 	]*KGDB' opt_kgdb.h 2>/dev/null || echo no

.if defined(PROF) || ${HAVE_DDB} != "no" || ${HAVE_KGDB} != "no"
CFLAGS+=	-fno-omit-frame-pointer
.endif

#
# Turn off all unwind tables; they're not terribly useful in our
# kernel environment and add a lot of needless bulk.
#
CFLAGS+=	-fno-unwind-tables
@


