From dd8aa85eb5f9fa5da23c8a9798d715c427d6a5bd Mon Sep 17 00:00:00 2001
From: Yotam Barnoy
Date: Wed, 12 May 2010 14:11:28 +0000
Subject: PSP: fixed debug function. Compiler optimization was calling the
 destructor before the end of the function, causing incorrect stack output.

svn-id: r49013
---
 backends/platform/psp/trace.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'backends/platform')

diff --git a/backends/platform/psp/trace.h b/backends/platform/psp/trace.h
index 8c113bef81..5bb861e32d 100644
--- a/backends/platform/psp/trace.h
+++ b/backends/platform/psp/trace.h
@@ -120,7 +120,7 @@ public:
 };
 
 /* We don't need anything but this line at the beginning of each function to debug function calls */
-	#define DEBUG_ENTER_FUNC()					PSPStackDebugFuncs(__PRETTY_FUNCTION__)
+	#define DEBUG_ENTER_FUNC()		volatile PSPStackDebugFuncs __foo(__PRETTY_FUNCTION__)
 #else /* Don't debug function calls */
 	#define DEBUG_ENTER_FUNC()
 #endif /* __PSP_DEBUG_FUNCS__ */
-- 
cgit v1.2.3