------- Comment #22 from jason at gcc dot gnu dot org 2009-02-18 18:06 ------- Seems like we already had this discussion last year, starting at
http://gcc.gnu.org/ml/gcc/2007-06/msg00848.html The conclusion there was that binds_local_p means "binds to this executable/shared library", and the PE definition is correct under that meaning. The conclusion in that discussion was that users need to check DECL_EXTERNAL as well if they want to check whether something will bind to the current translation unit. Which leads me back to my patch attached above. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39179