Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/include make volatile variable as __USED()



details:   https://anonhg.NetBSD.org/src/rev/f275166ee96b
branches:  trunk
changeset: 791093:f275166ee96b
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Nov 04 16:56:50 2013 +0000

description:
make volatile variable as __USED()

diffstat:

 sys/arch/alpha/include/tc_machdep.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r ee3328d8a90d -r f275166ee96b sys/arch/alpha/include/tc_machdep.h
--- a/sys/arch/alpha/include/tc_machdep.h       Mon Nov 04 16:56:17 2013 +0000
+++ b/sys/arch/alpha/include/tc_machdep.h       Mon Nov 04 16:56:50 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tc_machdep.h,v 1.5 2012/02/06 02:14:13 matt Exp $ */
+/* $NetBSD: tc_machdep.h,v 1.6 2013/11/04 16:56:50 christos Exp $ */
 
 /*
  * Copyright (c) 1994, 1995 Carnegie-Mellon University.
@@ -73,7 +73,8 @@
        volatile uint32_t no_optimize;                                  \
        no_optimize =                                                   \
            *(volatile uint32_t *)ALPHA_PHYS_TO_K0SEG(0x00000001f0080220); \
-    } while (0)
+       __USE(no_optimize);                                             \
+    } while (/*CONSTCOND*/0)
 
 #define        tc_badaddr(tcaddr)                                              \
     badaddr((void *)(tcaddr), sizeof (uint32_t))



Home | Main Index | Thread Index | Old Index