]> rtime.felk.cvut.cz Git - sysless.git/commit
Update of bit operations primitives in cpu_def.h for h8300-elf-gcc (GCC) 4.3.2.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Sun, 11 Jan 2009 14:13:00 +0000 (15:13 +0100)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Sun, 11 Jan 2009 14:13:00 +0000 (15:13 +0100)
commit026d944f9e6bb4df05b8a942fe1c99c97381db2f
treeb58f2b7cb11ed5f42a5ebdcaf2410158df72c60b
parentbac0c262b7d959b83f2c6ca79327d0509ea3cb31
Update of bit operations primitives in cpu_def.h for h8300-elf-gcc (GCC) 4.3.2.

This version provides more functionality, full array support
for char, short, int, long in clear_bit() and set_bit()
functions and the constrains used for bset and bclr instructions
allows compilation with newer GCC versions.
The fallback "o" case is not fully correct because it allows
register with displacement address but dummy "r" constrains
argument forces to prepare address in register anyway and should
eliminate problematic case. If internal GCC optimization is corrected
"o" case should be removed.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
arch/h8300/generic/defines/cpu_def.h