Re: Question regarding the arm gcc 5.3 to build android

2016-04-04 Thread fengwei.yin
Hi Christophe, On 2016/4/4 3:58, Christophe Lyon wrote: On 1 April 2016 at 12:04, Ramana Radhakrishnan wrote: On 31/03/16 18:26, Jim Wilson wrote: On Thu, Mar 31, 2016 at 5:12 AM, fengwei.yin wrote: Because gcc 4.9 could build this file without any issue, I apply --save-temps with gcc 4.9.

Re: Question regarding the arm gcc 5.3 to build android

2016-04-03 Thread Christophe Lyon
On 1 April 2016 at 12:04, Ramana Radhakrishnan wrote: > On 31/03/16 18:26, Jim Wilson wrote: >> On Thu, Mar 31, 2016 at 5:12 AM, fengwei.yin wrote: >>> Because gcc 4.9 could build this file without any issue, I apply >>> --save-temps >>> with gcc 4.9. The ii file is attached. Can't see significan

Re: Question regarding the arm gcc 5.3 to build android

2016-04-01 Thread Ramana Radhakrishnan
On 31/03/16 18:26, Jim Wilson wrote: > On Thu, Mar 31, 2016 at 5:12 AM, fengwei.yin wrote: >> Because gcc 4.9 could build this file without any issue, I apply >> --save-temps >> with gcc 4.9. The ii file is attached. Can't see significant differences. > > There is a patch in gcc-5 to make unified

Re: Question regarding the arm gcc 5.3 to build android

2016-04-01 Thread Ramana Radhakrishnan
On 31/03/16 18:26, Jim Wilson wrote: > On Thu, Mar 31, 2016 at 5:12 AM, fengwei.yin wrote: >> Because gcc 4.9 could build this file without any issue, I apply >> --save-temps >> with gcc 4.9. The ii file is attached. Can't see significant differences. > > There is a patch in gcc-5 to make unified

Re: Question regarding the arm gcc 5.3 to build android

2016-03-31 Thread fengwei.yin
On 2016/4/1 9:30, Jim Wilson wrote: On Thu, Mar 31, 2016 at 5:04 PM, fengwei.yin wrote: Remove the __thumb__ part? If you remove the __thumb__ part, then you will get an assembler error. palantir:2025$ arm-linux-gnueabi-as UnwindCurrent.s UnwindCurrent.s: Assembler messages: UnwindCurrent.

Re: Question regarding the arm gcc 5.3 to build android

2016-03-31 Thread Jim Wilson
On Thu, Mar 31, 2016 at 5:04 PM, fengwei.yin wrote: > Remove the __thumb__ part? If you remove the __thumb__ part, then you will get an assembler error. palantir:2025$ arm-linux-gnueabi-as UnwindCurrent.s UnwindCurrent.s: Assembler messages: UnwindCurrent.s:1504: Error: PC not allowed in registe

Re: Question regarding the arm gcc 5.3 to build android

2016-03-31 Thread fengwei.yin
Hi Jim, On 2016/4/1 1:26, Jim Wilson wrote: On Thu, Mar 31, 2016 at 5:12 AM, fengwei.yin wrote: Because gcc 4.9 could build this file without any issue, I apply --save-temps with gcc 4.9. The ii file is attached. Can't see significant differences. There is a patch in gcc-5 to make unified as

Re: Question regarding the arm gcc 5.3 to build android

2016-03-31 Thread Jim Wilson
On Thu, Mar 31, 2016 at 5:12 AM, fengwei.yin wrote: > Because gcc 4.9 could build this file without any issue, I apply > --save-temps > with gcc 4.9. The ii file is attached. Can't see significant differences. There is a patch in gcc-5 to make unified assembler syntax the default. Unfortunately,

Re: Question regarding the arm gcc 5.3 to build android

2016-03-30 Thread fengwei.yin
Hi Jim, On 2016/3/31 12:47, Jim Wilson wrote: On Wed, Mar 30, 2016 at 6:26 PM, fengwei.yin wrote: Thanks a lot for your quick response. The .ii file was attached. In UnwindFromContext, there is an asm that forces the assembler into ARM mode. if (ucontext == nullptr) { int ret = (({

Re: Question regarding the arm gcc 5.3 to build android

2016-03-30 Thread Jim Wilson
On Wed, Mar 30, 2016 at 6:26 PM, fengwei.yin wrote: > Thanks a lot for your quick response. The .ii file was attached. In UnwindFromContext, there is an asm that forces the assembler into ARM mode. if (ucontext == nullptr) { int ret = (({ unw_tdep_context_t *unw_ctx = (&context_); register

Re: Question regarding the arm gcc 5.3 to build android

2016-03-30 Thread Jim Wilson
On Wed, Mar 30, 2016 at 5:18 PM, yfw wrote: > /tmp/ccZ40ViQ.s:1752: Error: selected processor does not support ARM mode > `cbnz r6,.L91' Looking at gcc, I see that in thumb2 mode, for a conditional branch, it will emit cbnz if the target is in range and it is using a thumb2 low register, otherwis