------- Comment #7 from ebotcazou at gcc dot gnu dot org 2008-07-11 21:20 ------- > I think it's actually the same problem, the patch that has fixed it on other > platforms probably doesn't behave the same everywhere.
Yep, PE-COFF has a custom binds_local_p hook that doesn't reject DECL_EXTERNAL. That's OK according to http://gcc.gnu.org/ml/gcc/2008-07/msg00205.html Aaron, could you conduct a small experiment? In winnt.c:i386_pe_binds_local_p, just before the 'return true', could you add gcc_assert (!(TREE_CODE (exp) == VAR_DECL && DECL_EXTERNAL (exp))); and see whether it triggers during an Ada bootstrap? If so, what's 'exp'? Thanks in advance. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36207