RE: [PATCH][ARM][thumb1] Reduce lr save for leaf function with non-far jump

2013-04-15 Thread Joey Ye
> -Original Message- > From: Ramana Radhakrishnan > Sent: Thursday, April 11, 2013 4:40 PM > To: Joey Ye > Cc: gcc-patches@gcc.gnu.org > Subject: Re: [PATCH][ARM][thumb1] Reduce lr save for leaf function with > non-far jump > > On 12/20/12 09:53, Joey Ye wr

Re: [PATCH][ARM][thumb1] Reduce lr save for leaf function with non-far jump

2013-04-11 Thread Ramana Radhakrishnan
On 12/20/12 09:53, Joey Ye wrote: Current GCC thumb1 has an annoying problem that always assuming far branch. So it forces to save lr, even when unnecessarily. The most extreme case complained by partner is: // compiled with "-mthumb -mcpu=cortex-m0 -Os". void foo() { for (;;); } => foo:

RE: [PATCH][ARM][thumb1] Reduce lr save for leaf function with non-far jump

2013-04-11 Thread Joey Ye
Ping ^ 2 > -Original Message- > From: Joey Ye > Sent: Saturday, January 05, 2013 3:41 PM > To: Ramana Radhakrishnan > Cc: Joey Ye; gcc-patches@gcc.gnu.org > Subject: RE: [PATCH][ARM][thumb1] Reduce lr save for leaf function with > non-far jump > > Ping &

RE: [PATCH][ARM][thumb1] Reduce lr save for leaf function with non-far jump

2013-01-15 Thread Joey Ye
Ping^2 > -Original Message- > From: Joey Ye > Sent: Saturday, January 05, 2013 15:41 > To: Ramana Radhakrishnan > Cc: Joey Ye; gcc-patches@gcc.gnu.org > Subject: RE: [PATCH][ARM][thumb1] Reduce lr save for leaf function with > non-far jump > > Ping &

RE: [PATCH][ARM][thumb1] Reduce lr save for leaf function with non-far jump

2013-01-04 Thread Joey Ye
Ping > -Original Message- > From: Joey Ye > Sent: Thursday, December 20, 2012 17:53 > To: gcc-patches@gcc.gnu.org; Ramana Radhakrishnan > Cc: Joey Ye > Subject: [PATCH][ARM][thumb1] Reduce lr save for leaf function with non- > far jump > > Current GCC thumb1 h

[PATCH][ARM][thumb1] Reduce lr save for leaf function with non-far jump

2012-12-20 Thread Joey Ye
Current GCC thumb1 has an annoying problem that always assuming far branch. So it forces to save lr, even when unnecessarily. The most extreme case complained by partner is: // compiled with "-mthumb -mcpu=cortex-m0 -Os". void foo() { for (;;); } => foo: push{lr} // Crazy!!! .L2:

[PATCH][ARM][thumb1] Reduce lr save for leaf function with non-far jump

2012-12-19 Thread Joey Ye
Current GCC thumb1 has an annoying problem that always assuming far branch. So it forces to save lr, even when unnecessarily. The most extreme case complained by partner is: // compiled with "-mthumb -mcpu=cortex-m0 -Os". void foo() { for (;;); } => foo: push{lr} // Crazy!!! .L2: