Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Unified Diff: gcc/gcc/config/mips/sde.h

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/gcc/config/mips/predicates.md ('k') | gcc/gcc/config/mips/sdemtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/config/mips/sde.h
diff --git a/gcc/gcc/config/mips/sde.h b/gcc/gcc/config/mips/sde.h
index 3640883e042c17844385a2d9e2f1e56287410dba..d2a32967b75488e5c352c229d0ccb253d30c6ad8 100644
--- a/gcc/gcc/config/mips/sde.h
+++ b/gcc/gcc/config/mips/sde.h
@@ -90,7 +90,8 @@ along with GCC; see the file COPYING3. If not see
/* Use $5 as a temporary for both MIPS16 and non-MIPS16. */
#undef MIPS_EPILOGUE_TEMP_REGNUM
-#define MIPS_EPILOGUE_TEMP_REGNUM (GP_REG_FIRST + 5)
+#define MIPS_EPILOGUE_TEMP_REGNUM \
+ (cfun->machine->interrupt_handler_p ? K0_REG_NUM : GP_REG_FIRST + 5)
/* Using long will always be right for size_t and ptrdiff_t, since
sizeof(long) must equal sizeof(void *), following from the setting
« no previous file with comments | « gcc/gcc/config/mips/predicates.md ('k') | gcc/gcc/config/mips/sdemtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698