------- Comment #9 from rearnsha at gcc dot gnu dot org 2009-12-22 13:33 ------- I've looked at several backends and certainly not all do (sparc for example).
I think they get away with it because the stack pointer is valid in all addressing constructs -- that's not true for Thumb where SP can only be used for 32-bit loads. However, that doesn't mean there isn't an underlying bug. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38644