diff mbox

[ARM] Fix PR target/58423

Message ID CACgzC7C7OYMmT+4Q+_=AzYyeJ0TEcbtKR5DphjNycbV5y_kJ7A@mail.gmail.com
State New
Headers show

Commit Message

Zhenqiang Chen Sept. 23, 2013, 6:58 a.m. UTC
Hi,

The patch fixes PR target/58423.

Bootstrap and no make check regression on Chromebook with ARM mode.

Is it OK for trunk?

Thanks!
-Zhenqiang

ChangeLog:
2013-09-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>

    PR target/58423
    * config/arm/arm.c (arm_emit_ldrd_pop): Attach RTX_FRAME_RELATED_P
    on INSN.

Comments

Yufeng Zhang Sept. 23, 2013, 7:15 a.m. UTC | #1
On 09/23/13 07:58, Zhenqiang Chen wrote:
> --- clean-trunk/gcc/config/arm/arm.c    2013-09-17 14:29:45.632457018 +0800
> +++ pr58423/gcc/config/arm/arm.c    2013-09-18 14:34:24.708892318 +0800
> @@ -17645,8 +17645,8 @@
>                 mem = gen_frame_mem (DImode, stack_pointer_rtx);
>
>               tmp = gen_rtx_SET (DImode, gen_rtx_REG (DImode, j), mem);
> -            RTX_FRAME_RELATED_P (tmp) = 1;
>               tmp = emit_insn (tmp);
> +        RTX_FRAME_RELATED_P (tmp) = 1;

The indent doesn't seem right.

Yufeng
Zhenqiang Chen Sept. 23, 2013, 8:11 a.m. UTC | #2
> -----Original Message-----
> From: gcc-patches-owner@gcc.gnu.org [mailto:gcc-patches-
> owner@gcc.gnu.org] On Behalf Of Yufeng Zhang
> Sent: Monday, September 23, 2013 3:16 PM
> To: gcc-patches@gcc.gnu.org
> Subject: Re: [PATCH, ARM] Fix PR target/58423
> 
> On 09/23/13 07:58, Zhenqiang Chen wrote:
> > --- clean-trunk/gcc/config/arm/arm.c    2013-09-17 14:29:45.632457018
> +0800
> > +++ pr58423/gcc/config/arm/arm.c    2013-09-18 14:34:24.708892318 +0800
> > @@ -17645,8 +17645,8 @@
> >                 mem = gen_frame_mem (DImode, stack_pointer_rtx);
> >
> >               tmp = gen_rtx_SET (DImode, gen_rtx_REG (DImode, j), mem);
> > -            RTX_FRAME_RELATED_P (tmp) = 1;
> >               tmp = emit_insn (tmp);
> > +        RTX_FRAME_RELATED_P (tmp) = 1;
> 
> The indent doesn't seem right.

Thanks for the comments. My gmail server changes "tab" to "4 spaces".

Recreate the patch to remove "tab" and use attachment to make sure no other
automatic changes.

-Zhenqiang
Richard Earnshaw Sept. 23, 2013, 3:11 p.m. UTC | #3
On 23/09/13 09:11, Zhenqiang Chen wrote:
> 
> 
>> -----Original Message-----
>> From: gcc-patches-owner@gcc.gnu.org [mailto:gcc-patches-
>> owner@gcc.gnu.org] On Behalf Of Yufeng Zhang
>> Sent: Monday, September 23, 2013 3:16 PM
>> To: gcc-patches@gcc.gnu.org
>> Subject: Re: [PATCH, ARM] Fix PR target/58423
>>
>> On 09/23/13 07:58, Zhenqiang Chen wrote:
>>> --- clean-trunk/gcc/config/arm/arm.c    2013-09-17 14:29:45.632457018
>> +0800
>>> +++ pr58423/gcc/config/arm/arm.c    2013-09-18 14:34:24.708892318 +0800
>>> @@ -17645,8 +17645,8 @@
>>>                 mem = gen_frame_mem (DImode, stack_pointer_rtx);
>>>
>>>               tmp = gen_rtx_SET (DImode, gen_rtx_REG (DImode, j), mem);
>>> -            RTX_FRAME_RELATED_P (tmp) = 1;
>>>               tmp = emit_insn (tmp);
>>> +        RTX_FRAME_RELATED_P (tmp) = 1;
>>
>> The indent doesn't seem right.
> 
> Thanks for the comments. My gmail server changes "tab" to "4 spaces".
> 
> Recreate the patch to remove "tab" and use attachment to make sure no other
> automatic changes.
> 

Please fix your mailer.  The GNU coding standard uses hard tabs and
gratuitous changes to the white space are a pain to deal with.

R.
Richard Earnshaw Sept. 26, 2013, 12:22 p.m. UTC | #4
On 26/09/13 09:50, Zhenqiang Chen wrote:
> 
> 
>> -----Original Message-----
>> From: Richard Earnshaw
>> Sent: Monday, September 23, 2013 11:11 PM
>> To: Zhenqiang Chen
>> Cc: Yufeng Zhang; gcc-patches@gcc.gnu.org
>> Subject: Re: [PATCH, ARM] Fix PR target/58423
>>
>> On 23/09/13 09:11, Zhenqiang Chen wrote:
>>>
>>>
>>>> -----Original Message-----
>>>> From: gcc-patches-owner@gcc.gnu.org [mailto:gcc-patches-
>>>> owner@gcc.gnu.org] On Behalf Of Yufeng Zhang
>>>> Sent: Monday, September 23, 2013 3:16 PM
>>>> To: gcc-patches@gcc.gnu.org
>>>> Subject: Re: [PATCH, ARM] Fix PR target/58423
>>>>
>>>> On 09/23/13 07:58, Zhenqiang Chen wrote:
>>>>> --- clean-trunk/gcc/config/arm/arm.c    2013-09-17 14:29:45.632457018
>>>> +0800
>>>>> +++ pr58423/gcc/config/arm/arm.c    2013-09-18 14:34:24.708892318
>> +0800
>>>>> @@ -17645,8 +17645,8 @@
>>>>>                 mem = gen_frame_mem (DImode, stack_pointer_rtx);
>>>>>
>>>>>               tmp = gen_rtx_SET (DImode, gen_rtx_REG (DImode, j), mem);
>>>>> -            RTX_FRAME_RELATED_P (tmp) = 1;
>>>>>               tmp = emit_insn (tmp);
>>>>> +        RTX_FRAME_RELATED_P (tmp) = 1;
>>>>
>>>> The indent doesn't seem right.
>>>
>>> Thanks for the comments. My gmail server changes "tab" to "4 spaces".
>>>
>>> Recreate the patch to remove "tab" and use attachment to make sure no
>>> other automatic changes.
>>>
>>
>> Please fix your mailer.  The GNU coding standard uses hard tabs and
>> gratuitous changes to the white space are a pain to deal with.
> 
> Thanks for the comments. Patch is updated to use hard tabs. 
>  
> -Zhenqiang
> 

OK.

R.
diff mbox

Patch

--- clean-trunk/gcc/config/arm/arm.c    2013-09-17 14:29:45.632457018 +0800
+++ pr58423/gcc/config/arm/arm.c    2013-09-18 14:34:24.708892318 +0800
@@ -17645,8 +17645,8 @@ 
               mem = gen_frame_mem (DImode, stack_pointer_rtx);

             tmp = gen_rtx_SET (DImode, gen_rtx_REG (DImode, j), mem);
-            RTX_FRAME_RELATED_P (tmp) = 1;
             tmp = emit_insn (tmp);
+        RTX_FRAME_RELATED_P (tmp) = 1;

             /* Generate dwarf info.  */

@@ -17674,8 +17674,8 @@ 
               mem = gen_frame_mem (SImode, stack_pointer_rtx);

             tmp = gen_rtx_SET (SImode, gen_rtx_REG (SImode, j), mem);
-            RTX_FRAME_RELATED_P (tmp) = 1;
             tmp = emit_insn (tmp);
+        RTX_FRAME_RELATED_P (tmp) = 1;

             /* Generate dwarf info.  */
             REG_NOTES (tmp) = alloc_reg_note (REG_CFA_RESTORE,
@@ -17699,8 +17699,9 @@ 
                          plus_constant (Pmode,
                                         stack_pointer_rtx,
                                         offset));
-      RTX_FRAME_RELATED_P (tmp) = 1;
-      emit_insn (tmp);
+      tmp = emit_insn (tmp);
+      arm_add_cfa_adjust_cfa_note (tmp, offset,
+                                   stack_pointer_rtx, stack_pointer_rtx);
       offset = 0;
     }

@@ -17723,6 +17724,8 @@ 
                               gen_rtx_REG (SImode, PC_REGNUM),
                               NULL_RTX);
       REG_NOTES (par) = dwarf;
+      arm_add_cfa_adjust_cfa_note (par, UNITS_PER_WORD,
+                   stack_pointer_rtx, stack_pointer_rtx);
     }
 }