summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/arch/arm/v7/helpers.h6
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index fa4ced8..3d4c8b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+15-07-31 Cyrille Bagard <nocbos@gmail.com>
+
+ * src/arch/arm/v7/helpers.h:
+ Remove last compiler warnings with lists built from one register.
+
15-07-30 Cyrille Bagard <nocbos@gmail.com>
* tools/d2c/spec.c:
diff --git a/src/arch/arm/v7/helpers.h b/src/arch/arm/v7/helpers.h
index b4fe9b4..e03f5ab 100644
--- a/src/arch/arm/v7/helpers.h
+++ b/src/arch/arm/v7/helpers.h
@@ -246,11 +246,13 @@ return shift_t;
})
-#define ListFromRegister(reg) \
+#define ListFromRegister(regop) \
({ \
GArchOperand *__result; \
+ GArmV7Register *__reg; \
__result = g_armv7_reglist_operand_new(); \
- g_armv7_reglist_add_register(G_ARMV7_REGLIST_OPERAND(__result), reg); \
+ __reg = G_ARMV7_REGISTER(regop); \
+ g_armv7_reglist_add_register(G_ARMV7_REGLIST_OPERAND(__result), __reg); \
__result; \
})