Source-Changes-HG archive

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

[src/trunk]: src/sys/arch fix build with gcc48.



details:   https://anonhg.NetBSD.org/src/rev/4c3db79bbd4e
branches:  trunk
changeset: 335767:4c3db79bbd4e
user:      chs <chs%NetBSD.org@localhost>
date:      Fri Jan 23 03:36:58 2015 +0000

description:
fix build with gcc48.

diffstat:

 sys/arch/cesfic/conf/Makefile.cesfic |  4 ++--
 sys/arch/next68k/stand/boot/en.c     |  6 +++++-
 2 files changed, 7 insertions(+), 3 deletions(-)

diffs (45 lines):

diff -r 75bed8bb0b00 -r 4c3db79bbd4e sys/arch/cesfic/conf/Makefile.cesfic
--- a/sys/arch/cesfic/conf/Makefile.cesfic      Fri Jan 23 03:33:58 2015 +0000
+++ b/sys/arch/cesfic/conf/Makefile.cesfic      Fri Jan 23 03:36:58 2015 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.cesfic,v 1.16 2011/01/21 15:59:05 joerg Exp $
+#      $NetBSD: Makefile.cesfic,v 1.17 2015/01/23 03:39:39 chs Exp $
 
 # Makefile for NetBSD
 #
@@ -35,7 +35,7 @@
 CWARNFLAGS+=   -Wno-format
 CFLAGS+=       -msoft-float
 AFLAGS+=       -x assembler-with-cpp
-AFLAGS+=       -Wa,-m68040 -Wa,-m68030 -Wa,-m68851
+AFLAGS+=       -Wa,-mcpu=68030 -Wa,-m68040 -Wa,-m68030 -Wa,-m68851
 
 ##
 ## (3) libkern and compat
diff -r 75bed8bb0b00 -r 4c3db79bbd4e sys/arch/next68k/stand/boot/en.c
--- a/sys/arch/next68k/stand/boot/en.c  Fri Jan 23 03:33:58 2015 +0000
+++ b/sys/arch/next68k/stand/boot/en.c  Fri Jan 23 03:36:58 2015 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: en.c,v 1.17 2009/10/26 19:16:57 cegger Exp $        */
+/*      $NetBSD: en.c,v 1.18 2015/01/23 03:36:58 chs Exp $        */
 /*
  * Copyright (c) 1996 Rolf Grossmann
  * All rights reserved.
@@ -277,13 +277,17 @@
 {
        volatile struct en_regs *er;
        volatile struct dma_dev *rxdma;
+#if 0
        volatile struct dma_dev *txdma;
+#endif
        int state, rxs;
        size_t rlen;
        char *gotpkt;
 
        rxdma = (struct dma_dev *)P_ENETR_CSR;
+#if 0
        txdma = (struct dma_dev *)P_ENETX_CSR;
+#endif
        er = (struct en_regs *)P_ENET;
 
        DPRINTF(("en_get: rxdma->dd_csr = %x\n",rxdma->dd_csr));



Home | Main Index | Thread Index | Old Index