I'm worried about any libgcc compiled with regparm!=0, but for now this patch improves the situation.
libgcc uses the default calling convention.
Is there an attribute to say "this function uses the default calling convention no matter what CFLAGS we have right now"?
Sure, and you're already using that: the default on i386 is regparm=0.
Segher