https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116042
--- Comment #1 from Anonymous <iamanonymous.cs at gmail dot com> --- Here is a reduced testcase: register struct str *env asm("ebp"); extern int foo (int base) ; extern int fun (int base) { return foo (base); }