OSDN Git Service

* config/darwin.c (machopic_indirect_data_reference): Use a scratch
[pf3gnuchains/gcc-fork.git] / gcc / config / darwin.c
index a548d31..66c3829 100644 (file)
@@ -470,7 +470,7 @@ machopic_indirect_data_reference (rtx orig, rtx reg)
 #endif
 
 #if defined (TARGET_TOC) /* i.e., PowerPC */
-         rtx hi_sum_reg = reg;
+         rtx hi_sum_reg = (no_new_pseudos ? reg : gen_reg_rtx (Pmode));
 
          if (reg == NULL)
            abort ();