From 7af9c95772e1f99d1827e8f41a5427218cf86338 Mon Sep 17 00:00:00 2001
From: clc5q <clc5q@git.zephyr-software.com>
Date: Wed, 28 May 2008 17:33:01 +0000
Subject: [PATCH] Add caller-saved regs to USE list for all CALLs, not just
 interrupt calls.

---
 SMPInstr.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/SMPInstr.cpp b/SMPInstr.cpp
index 9791a73b..8133ced9 100644
--- a/SMPInstr.cpp
+++ b/SMPInstr.cpp
@@ -1062,11 +1062,15 @@ void SMPInstr::MDFixupDefUseLists(void) {
 		this->MDAddRegDef(R_ax, false);
 		this->MDAddRegDef(R_cx, false);
 		this->MDAddRegDef(R_dx, false);
+#if 0
 		if (this->MDIsInterruptCall()) {
+#endif
 			this->MDAddRegUse(R_ax, false);
 			this->MDAddRegUse(R_cx, false);
 			this->MDAddRegUse(R_dx, false);
+#if 0
 		}
+#endif
 	}
 #endif
 	else if (this->MDIsEnterInstr() || this->MDIsLeaveInstr()) {
-- 
GitLab