http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48455
--- Comment #5 from Richard Earnshaw <rearnsha at gcc dot gnu.org> 2011-04-08 13:01:41 UTC --- Created attachment 23928 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23928 second testcase Compile with -Os -mcpu=arm7tdmi -marm -fno-short-enums Note, it looks like a common problem in compiling this file is that the compiler has created a CSE of SP+const which now needs another call-saved reg, rather than re-materializing the value on each use.