EmbDev.net

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


Author: Jason Morgan (Guest)
Posted on:

Rate this post
0 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.

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 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

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.