http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47091
--- Comment #2 from joseph at codesourcery dot com <joseph at codesourcery dot com> 2010-12-29 11:20:39 UTC --- arm-netbsd appears unmaintained. Apart from the desirability of moving NetBSD to EABI, there's a clear bogosity in arm/netbsd.h I noticed a while back: /* Although not normally relevant (since by default, all aggregates are returned in memory) compiling some parts of libc requires non-APCS style struct returns. */ #undef TARGET_RETURN_IN_MEMORY That's a target hook, not a macro. The #define is in arm.c; the #undef has no effect. Presumably a broken conversion from macros to hooks, not noticed for lack of anyone using recent GCC for this target.