diff options
| author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-02-07 20:13:24 +0000 |
|---|---|---|
| committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-02-07 20:13:24 +0000 |
| commit | 3855de6ca77cdf90fa2f0b2e23a68d870b8295fc (patch) | |
| tree | 1ec4cdc67979c2ed3236b627710e9ca1af304443 | |
| parent | 42d5f86317febfa212c4f28a7518d5fbe8b5806e (diff) | |
| download | ppe42-gcc-3855de6ca77cdf90fa2f0b2e23a68d870b8295fc.tar.gz ppe42-gcc-3855de6ca77cdf90fa2f0b2e23a68d870b8295fc.zip | |
* config/i386/i386.c (ix86_delegitimize_address): Support Darwin
PIC addresses.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110716 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/config/i386/i386.c | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 82f7ec9e41c..71da549d4bd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-02-07 Geoffrey Keating <geoffk@apple.com> + + * config/i386/i386.c (ix86_delegitimize_address): Support Darwin + PIC addresses. + 2006-02-07 Roger Sayle <roger@eyesopen.com> * config/sparc/sparc.c (sparc_type_code): Don't handle CHAR_TYPE. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index f4eb04e5217..edfe04f5737 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -7152,6 +7152,14 @@ ix86_delegitimize_address (rtx orig_x) return x; } + if (TARGET_MACHO && darwin_local_data_pic (x) + && GET_CODE (orig_x) != MEM) + { + x = XEXP (x, 0); + if (y) + return gen_rtx_PLUS (Pmode, y, x); + return x; + } return orig_x; } |

