Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386 Now that GCC 4.8 on i486 has stolen the frame ...



details:   https://anonhg.NetBSD.org/src/rev/96fa688bda91
branches:  trunk
changeset: 796208:96fa688bda91
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sat May 24 18:39:04 2014 +0000

description:
Now that GCC 4.8 on i486 has stolen the frame pointer, do like amd64 and
add -fno-omit-frame-pointer to kernel DEFCOPTS and modules CFLAGS.

diffstat:

 sys/arch/i386/conf/Makefile.i386   |  3 ++-
 sys/arch/i386/include/Makefile.inc |  7 ++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 5ce1ab3144f8 -r 96fa688bda91 sys/arch/i386/conf/Makefile.i386
--- a/sys/arch/i386/conf/Makefile.i386  Sat May 24 18:06:21 2014 +0000
+++ b/sys/arch/i386/conf/Makefile.i386  Sat May 24 18:39:04 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.i386,v 1.181 2014/02/07 00:25:45 joerg Exp $
+#      $NetBSD: Makefile.i386,v 1.182 2014/05/24 18:39:04 jakllsch Exp $
 
 # Makefile for NetBSD
 #
@@ -33,6 +33,7 @@
 ##
 ## (2) compile settings
 ##
+DEFCOPTS=      -O2 -fno-omit-frame-pointer
 CPPFLAGS+=     -Di386
 CFLAGS+=       -msoft-float
 ## no-sse implies no-sse2 but not no-avx
diff -r 5ce1ab3144f8 -r 96fa688bda91 sys/arch/i386/include/Makefile.inc
--- a/sys/arch/i386/include/Makefile.inc        Sat May 24 18:06:21 2014 +0000
+++ b/sys/arch/i386/include/Makefile.inc        Sat May 24 18:39:04 2014 +0000
@@ -1,3 +1,8 @@
-# $NetBSD: Makefile.inc,v 1.1 2009/11/25 17:08:09 tron Exp $
+# $NetBSD: Makefile.inc,v 1.2 2014/05/24 18:39:04 jakllsch Exp $
+
+# this should really be !(RUMPKERNEL && PIC)
+.if !defined(RUMPKERNEL)
+CFLAGS+=       -fno-omit-frame-pointer
+.endif
 
 USE_SSP?=      yes



Home | Main Index | Thread Index | Old Index