Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/dev Add a null asm statement in adb_read_dat...
details: https://anonhg.NetBSD.org/src/rev/b0263994f502
branches: trunk
changeset: 526546:b0263994f502
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sun May 05 18:36:03 2002 +0000
description:
Add a null asm statement in adb_read_date_time()
to avoid wrong reordering by gcc-2.95.3 with -fgcse.
XXX Should we disable -fgcse everywhere?
diffstat:
sys/arch/macppc/dev/adb_direct.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 5f7341077f63 -r b0263994f502 sys/arch/macppc/dev/adb_direct.c
--- a/sys/arch/macppc/dev/adb_direct.c Sun May 05 18:29:06 2002 +0000
+++ b/sys/arch/macppc/dev/adb_direct.c Sun May 05 18:36:03 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: adb_direct.c,v 1.23 2002/05/05 18:29:06 tsutsui Exp $ */
+/* $NetBSD: adb_direct.c,v 1.24 2002/05/05 18:36:03 tsutsui Exp $ */
/* From: adb_direct.c 2.02 4/18/97 jpw */
@@ -1892,6 +1892,9 @@
while (0 == flag) /* wait for result */
;
+ /* XXX to avoid wrong reordering by gcc 2.95.x with -fgcse */
+ __asm volatile ("" ::: "memory");
+
memcpy(time, output + 1, 4);
return 0;
Home |
Main Index |
Thread Index |
Old Index