------- Comment #25 from jakub at gcc dot gnu dot org 2007-12-13 17:18 ------- Ok, got it, minimal testcase is: extern void foo (void); int bar (void) { foo (); return 1; } extern void foo (void); with -fno-unit-at-a-time there is no .IMPORT directive for foo (removing the prototype after use fixes this).
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34003