This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[BACKPORT 4.4/4.5?] Re: %pc relative addressing of string literals/const data
- From: Dave Korn <dave dot korn dot cygwin at gmail dot com>
- To: David Edelsohn <dje dot gcc at gmail dot com>
- Cc: Joakim Tjernlund <joakim dot tjernlund at transmode dot se>, Alan Modra <amodra at gmail dot com>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 18 Nov 2010 19:51:06 +0000
- Subject: [BACKPORT 4.4/4.5?] Re: %pc relative addressing of string literals/const data
- References: <OF9A1FAE59.64738DA2-ONC12577B3.00441CDC-C12577B3.0044F4DB@transmode.se> <mcreic4eop1.fsf@google.com> <OF9EB3A70C.82F0EF3C-ONC12577B3.004C1686-C12577B3.004C5D8D@transmode.se> <4CAB74F7.2000009@redhat.com> <OFF406B9B7.50DB18C1-ONC12577B3.0070B011-C12577B3.0072F44F@transmode.se> <4CAB94B3.6050900@redhat.com> <OFA4A1D881.1D4EFD3D-ONC12577B3.00764974-C12577B3.0077094E@transmode.se> <20101005221926.GB29181@bubble.grove.modra.org> <OFE81F0B36.9C6A64B9-ONC12577B8.002D5630-C12577B8.003347B2@transmode.se> <20101011125845.GT26553@bubble.grove.modra.org> <OFB53662B0.C84CB86F-ONC12577BA.003109C3-C12577BA.00317E80@LocalDomain> <OF5CBF32FC.7306A2E7-ONC12577BC.004C4412-C12577BC.004C67AE@transmode.se> <AANLkTi=ZtpYRKPxS_0BZmp+bN20aYU4SqHE2O33oA+F0@mail.gmail.com>
On 09/11/2010 03:18, David Edelsohn wrote:
> On Thu, Oct 14, 2010 at 9:54 AM, Joakim Tjernlund
> <joakim.tjernlund@transmode.se> wrote:
>
>> From d8ff0b3f0b44480542eab04d1659f4368b6b09cf Mon Sep 17 00:00:00 2001
>> From: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
>> Date: Sun, 10 Oct 2010 10:34:50 +0200
>> Subject: [PATCH] powerpc: Support -fpic too with mrelocatable
>>
>>
>> Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
>> ---
>> sysv4.h | 3 ++-
>> 1 files changed, 2 insertions(+), 1 deletions(-)
>>
>> diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h
>> index 8da8410..e4b8280 100644
>> --- a/gcc/config/rs6000/sysv4.h
>> +++ b/gcc/config/rs6000/sysv4.h
>> @@ -227,7 +227,8 @@ do { \
>> } \
>> \
>> else if (TARGET_RELOCATABLE) \
>> - flag_pic = 2; \
>> + if (!flag_pic) \
>> + flag_pic = 2; \
>> } while (0)
>>
>> #ifndef RS6000_BI_ARCH
>> --
>> 1.7.2.2
>>
>>
>
> This patch is okay.
>
> Thanks, David
After, say, 48hrs on head, would this patch be suitable for 4.4 and 4.5
backports?
cheers,
DaveK