Re: [Bug 797418] Re: Fails to compile inline assembly code

2011-06-15 Thread Daniel Nilsson
On 06/15/2011 09:54 AM, Marcin Juszkiewicz wrote: > 09:45< ramana> hrw: there is no MCR in Thumb1 > > So add "-marm" into CFLAGS in Makefile and it will build. > Ok, thanks for the quick reply. I took my a while to understand what this meant though. My conclusion is that this version of gcc is

[Bug 797418] Re: Fails to compile inline assembly code

2011-06-15 Thread Marcin Juszkiewicz
09:45 < ramana> hrw: there is no MCR in Thumb1 So add "-marm" into CFLAGS in Makefile and it will build. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/797418 Title: Fails to compile inline assembly

[Bug 797418] Re: Fails to compile inline assembly code

2011-06-15 Thread Ramana Radhakrishnan
The mcr instruction cannot be used in Thumb1 which is what -mthumb -mcpu=arm926ej-s forces you to do. -marm will allow you to do so since it forces the instructions to be in ARM state. cheers Ramana ** Changed in: gcc-4.5-armel-cross (Ubuntu) Status: New => Invalid -- You received this

[Bug 797418] Re: Fails to compile inline assembly code

2011-06-15 Thread Marcin Juszkiewicz
Adding -marm (forcing ARM mode instead of Thumb) allowed me to compile at91bootstrap. Subscribed Linaro Toolchain WG. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/797418 Title: Fails to compile in

[Bug 797418] Re: Fails to compile inline assembly code

2011-06-14 Thread Daniel Nilsson
** Attachment added: "Small testcase, inline.c" https://bugs.launchpad.net/bugs/797418/+attachment/2168941/+files/inline.c -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/797418 Title: Fails to com