[Bug c/45207] The -Os flag generates wrong code for ARM966e-s

fredrik dot hederstierna at securitas-direct dot com gcc-bugzilla@gcc.gnu.org
Fri Aug 6 12:06:00 GMT 2010



------- Comment #6 from fredrik dot hederstierna at securitas-direct dot com  2010-08-06 12:06 -------
Yes you are right, unfortunately I just had problems to break out any small
test case from our sources.

I think I found out what is the source of the problems.
The "-Os" disable alignment of functions. In some case I try to force alignment

void __attribute__((aligned(4))) _irq_off(void);

since we have some thumb->arm trampoline functions to modify cpu-flags.
I guess somehow some functions got thumb-aligned, but I try to investigate this
further.

/Fredrik


-- 


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



More information about the Gcc-bugs mailing list