[PATCH, i386 testsuite]: Require nonpic target for some tests

Tom de Vries Tom_deVries@mentor.com
Mon Mar 16 10:14:00 GMT 2015


On 12-03-15 11:51, Uros Bizjak wrote:
> On Thu, Mar 12, 2015 at 11:41 AM, Tom de Vries <Tom_deVries@mentor.com> wrote:
>
>>>>> Attached patch adds nonpic target requirement for some (obvious)
>>>>> cases, where data access or PIC register setup confuses scan-asms.
>>>>>
>>>>> 2015-01-30  Uros Bizjak  <ubizjak@gmail.com>
>>>>>
>>>>>        * gcc.target/i386/fuse-caller-save-rec.c: Require nonpic target.
>>>>>        * gcc.target/i386/fuse-caller-save-xmm.c: Ditto.
>>>>>        * gcc.target/i386/fuse-caller-save.c: Ditto.
>>>>
>>>>
>>>>
>>>> Hi,
>>>>
>>>> I've reverted this part of the patch. The scans were failing because the
>>>> -fipa-ra optimization was broken for -m32 -fpic (PR64895).
>>>
>>>
>>> Not really.
>>>
>>> Allocator is free to allocate %ebx (or other call-saved
>>> register) as PIC register.
>>>
>>> In this case, unwanted push/pop sequence
>>> will be emitted.
>>>
>>
>> Sure, but I don't see what that has to do with the test-cases. I don't see a
>> pic register used in fuse-caller-save.c and fuse-caller-save-rec.c. I do see
>> a pic register used in gcc.target/i386/fuse-caller-save-xmm.c, but there's
>> no scan for push/pop sequence in there.
>
> You are right, the call is (obviously) to a local function. There is
> no need for PIC reg, so this clears my concerns.
>

The patch for PR64895 has been reverted, so the scans started failing again. 
I've added xfails.

Thanks,
- Tom



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-PR64895-xfails-in-i386-fuse-caller-save-.c.patch
Type: text/x-patch
Size: 3562 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150316/05e029e2/attachment.bin>


More information about the Gcc-patches mailing list