From 3f3ce442d88d3812bce22d7e6fb5c21530d869c2 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sat, 19 Mar 2011 22:47:28 +0100 Subject: [PATCH] powerpc: don't clobber register r31 --- orc/orcpowerpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orc/orcpowerpc.c b/orc/orcpowerpc.c index f813109..b048b85 100644 --- a/orc/orcpowerpc.c +++ b/orc/orcpowerpc.c @@ -399,7 +399,7 @@ powerpc_load_constant (OrcCompiler *p, int i, int reg) { int j; int value = p->constants[i].value; - int greg = POWERPC_R31; + int greg = p->gp_tmpreg; int label_skip, label_data; switch (p->constants[i].type) { -- 2.7.4