EmbDev.net

Forum: ARM programming with GCC/GNU tools WinARM arm-elf-gcc generates incorrect bitfield code


von Jason Morgan (Guest)


Rate this post
useful
not useful
This is related to the following thread on gcc bugzilla

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23623


Under certain conditions, the compiler generates ldrb instructions
instead of ldr.  These are incompatible with the ARM internal registers
and produce unpredictable results.


Is there any plan or existing project to fix this problem in WinARM.

This has probably been asked before, but the search on this forums is
broken at present.

von Martin Thomas (Guest)


Rate this post
useful
not useful
Jason Morgan wrote:
> This is related to the following thread on gcc bugzilla
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23623
>
>
> Under certain conditions, the compiler generates ldrb instructions
> instead of ldr.  These are incompatible with the ARM internal registers
> and produce unpredictable results.
>
>
> Is there any plan or existing project to fix this problem in WinARM.

According to the information on the gcc bugzilla the bug has been fixed
in the gcc sources in the CVS/SVN. Usualy I try to release a new
WinARM-collection shortly after a new stable release of gcc so the next
WinARM release should include a gcc which will be build from sources
where this problem is fixed.

Martin Thomas

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.