Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/next68k/next68k Sprinkle extern to appease gcc -fno...



details:   https://anonhg.NetBSD.org/src/rev/86f3db73ca2b
branches:  trunk
changeset: 780907:86f3db73ca2b
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Aug 11 01:21:04 2012 +0000

description:
Sprinkle extern to appease gcc -fno-common.

diffstat:

 sys/arch/next68k/next68k/machdep.c |  7 ++++---
 sys/arch/next68k/next68k/nextrom.c |  8 ++++----
 2 files changed, 8 insertions(+), 7 deletions(-)

diffs (57 lines):

diff -r c1f337ac7625 -r 86f3db73ca2b sys/arch/next68k/next68k/machdep.c
--- a/sys/arch/next68k/next68k/machdep.c        Sat Aug 11 01:10:11 2012 +0000
+++ b/sys/arch/next68k/next68k/machdep.c        Sat Aug 11 01:21:04 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.108 2012/07/28 19:08:24 matt Exp $       */
+/*     $NetBSD: machdep.c,v 1.109 2012/08/11 01:21:04 tsutsui Exp $    */
 
 /*
  * Copyright (c) 1998 Darrin B. Jewell
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.108 2012/07/28 19:08:24 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.109 2012/08/11 01:21:04 tsutsui Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -115,7 +115,8 @@
 #include "ksyms.h"
 
 int nsym;
-char *ssym, *esym;
+char *ssym;
+extern char *esym;
 
 #define        MAXMEM  64*1024 /* XXX - from cmap.h */
 
diff -r c1f337ac7625 -r 86f3db73ca2b sys/arch/next68k/next68k/nextrom.c
--- a/sys/arch/next68k/next68k/nextrom.c        Sat Aug 11 01:10:11 2012 +0000
+++ b/sys/arch/next68k/next68k/nextrom.c        Sat Aug 11 01:21:04 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nextrom.c,v 1.24 2011/12/18 04:29:32 tsutsui Exp $     */
+/*     $NetBSD: nextrom.c,v 1.25 2012/08/11 01:21:04 tsutsui Exp $     */
 /*
  * Copyright (c) 1998 Darrin B. Jewell
  * All rights reserved.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nextrom.c,v 1.24 2011/12/18 04:29:32 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nextrom.c,v 1.25 2012/08/11 01:21:04 tsutsui Exp $");
 
 #include "opt_ddb.h"
 #include "opt_serial.h"
@@ -50,8 +50,8 @@
 int mon_putc(int);
 
 extern char etext[], edata[], end[];
-int nsym;
-char *ssym, *esym;
+extern int nsym;
+extern char *ssym, *esym;
 
 volatile struct mon_global *mg;
 



Home | Main Index | Thread Index | Old Index