Module Name: src
Committed By: matt
Date: Mon Jan 28 06:16:05 UTC 2013
Modified Files:
src/sys/arch/arm/include: byte_swap.h
Log Message:
Use uint32_t for __asm to appease clang.
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/arm/include/byte_swap.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/include/byte_swap.h
diff -u src/sys/arch/arm/include/byte_swap.h:1.12 src/sys/arch/arm/include/byte_swap.h:1.13
--- src/sys/arch/arm/include/byte_swap.h:1.12 Wed Sep 5 01:03:53 2012
+++ src/sys/arch/arm/include/byte_swap.h Mon Jan 28 06:16:05 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: byte_swap.h,v 1.12 2012/09/05 01:03:53 matt Exp $ */
+/* $NetBSD: byte_swap.h,v 1.13 2013/01/28 06:16:05 matt Exp $ */
/*-
* Copyright (c) 1997, 1999, 2002 The NetBSD Foundation, Inc.
@@ -91,8 +91,9 @@ __byte_swap_u16_variable(uint16_t v)
#ifdef _ARM_ARCH_6
if (!__builtin_constant_p(v)) {
- __asm("rev16\t%0, %1" : "=r" (v) : "0" (v));
- return v;
+ uint32_t v32 = v;
+ __asm("rev16\t%0, %1" : "=r" (v32) : "0" (v32));
+ return v32;
}
#elif !defined(__thumb__) && 0 /* gcc produces decent code for this */
if (!__builtin_constant_p(v)) {