This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/54983] ARM gcc creates invalid assembly: bad immediate value for 8-bit offset (1024)
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 19 Oct 2012 11:01:13 +0000
- Subject: [Bug target/54983] ARM gcc creates invalid assembly: bad immediate value for 8-bit offset (1024)
- Auto-submitted: auto-generated
- References: <bug-54983-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54983
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-10-19 11:01:13 UTC ---
I think there might be an issue with some of the inline-asm in asm/io.h:
static inline __attribute__((always_inline))
__attribute__((no_instrument_function)) void __raw_writew(u16 val, volatile
void *addr)
{
asm volatile("strh %1, %0"
: "+Qo" (*(volatile u16 *)addr)
: "r" (val));
Also what options are being passed to the gcc?