This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/12080] arm-elf-gcc-3.2 generates wrong interrupt code w/o optimizations on


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]