https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63890
Iain Sandoe <iains at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |evstupac at gmail dot com --- Comment #2 from Iain Sandoe <iains at gcc dot gnu.org> --- confirmed on x86_64-darwin12 (217256 gcc04.9 and recent trunk). this would presumably affect targets other than darwin, too. looks like the call to the pic base is both (a) unnecessary and (b) hoisted too early in the routine. Having said that, the call to mvount would fail if the thunk call was dropped. possibly? more fallout from the EBX changes? (maybe not, but worth a look).