diff options
author | Geoffrey Keating <geoffk@apple.com> | 2003-10-14 15:01:14 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2003-10-14 15:01:14 +0000 |
commit | d9b46dfb99308239e5fff12faf47ff0516f59f1a (patch) | |
tree | 14952ee66d2232a0326f5f6208e2b1a0063faa99 /gcc | |
parent | 42db0f21ef3a49067b8be50f129f8ad046f7a08e (diff) | |
download | gcc-d9b46dfb99308239e5fff12faf47ff0516f59f1a.zip gcc-d9b46dfb99308239e5fff12faf47ff0516f59f1a.tar.gz gcc-d9b46dfb99308239e5fff12faf47ff0516f59f1a.tar.bz2 |
darwin.c (machopic_indirect_data_reference): Use a scratch register when generating indirect address.
* config/darwin.c (machopic_indirect_data_reference): Use a scratch
register when generating indirect address.
From-SVN: r72473
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/darwin.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6455332..e5d1b3f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-10-14 Geoffrey Keating <geoffk@apple.com> + + * config/darwin.c (machopic_indirect_data_reference): Use a scratch + register when generating indirect address. + 2003-10-14 Richard Earnshaw <rearnsha@arm.com> * arm.c (arm_addimm_operand): MODE arguemnt is unused. diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index a548d31..66c3829 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -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 (); |