------- Comment #5 from mirq-gccboogs at rere dot qmqm dot pl 2010-03-23 14:04 ------- The problem is that gcc sometimes emits instructions that are copying the global r4 (even when it's marked as const) into temporary. Originally I thought that the simplies case was this asm statememt, but it looks like it depends on having adress of a structure field taken as a parameter for a function that's later inlined. I'll file a new report with the second example and this explanation.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43471