http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55940
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2013-01-11 Ever Confirmed|0 |1 --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> 2013-01-11 11:26:44 UTC --- Please provide preprocessed source and compiler command-line. I suppose VBoxHost_RTR0MemObjGetPagePhysAddr is static so the compiler is free to choose a more optimal calling convention. If you want to avoid this mark it with the used attribute, I don't think an explicit regparm(0) will prevent this. Just guessing, without a testcase.