This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/45207] The -Os flag generates wrong code for ARM966e-s
- From: "fredrik dot hederstierna at securitas-direct dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Aug 2010 12:06:18 -0000
- Subject: [Bug c/45207] The -Os flag generates wrong code for ARM966e-s
- References: <bug-45207-17021@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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