> It's equivalent - once the end of the translation unit is reached.  But 
> with C99 you can have the declaration with extern or without inline, 
> coming *after* the definition, which is what causes it to be exported.
OK,
is there any chance to convince the frontend to make the final representation 
looking
same (i.e. not add the DECL_EXTERN flag?).  DECL_EXTERN on function across 
cgraph code
is always understood as extern inline and having such function marked as needed 
is
a paradox.
Visibility pass already does quite some flags sanitization, so we might do that 
there,
but that would imply need for cgraph to remember those functions somewhere 
before unit
is finalized, so I would preffer frontend to do that.

Honza

Reply via email to