------- Comment #8 from ktietz at gcc dot gnu dot org 2009-02-14 21:25 ------- (In reply to comment #7) > What happens if you just use > > return default_binds_local_p_1 (exp, (TREE_CODE (exp) == VAR_DECL || TREE_CODE > (exp) == FUNCTION_DECL) > && DECL_DLLIMPORT_P (exp)); > > ? >
Same issue @GOTPCREL code gets emitted. ... movq __zn1k...@gotpcrel(%rip), %rax cmpl $1, (%rax) ... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39179