This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/12080] arm-elf-gcc-3.2 generates wrong interrupt code w/o optimizations on
- From: "jamesl at appliedminds dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Aug 2003 00:49:19 -0000
- Subject: [Bug c/12080] arm-elf-gcc-3.2 generates wrong interrupt code w/o optimizations on
- References: <20030827152130.12080.jamesl@appliedminds.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12080
------- Additional Comments From jamesl at appliedminds dot com 2003-08-28 00:49 -------
I realized I made a couple of mistakes:
@ r3 -> [0xFF8]
@ fp -> [0xFF4]
@ ip -> [0xFF0]
@ lr -> [0xFEC]
@ pc -> [0xFE8]
should be in reverse order:
@ pc -> [0xFF8]
@ lr -> [0xFF4] etc...
And I think the example code has a typo.
Did you mean:
str r3, [fp, #-20]!
instead of:
str r3, [fp, #-20]
In that case, offseting fp by -20 makes the ldmea make everything work out ok.
But the ldmea still needs the ^ at the end