mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-03 16:54:27 +08:00
i386.c (ix86_delegitimize_address): Support Darwin PIC addresses.
* config/i386/i386.c (ix86_delegitimize_address): Support Darwin PIC addresses. From-SVN: r110716
This commit is contained in:
parent
62de55f71f
commit
7931b1be50
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user