[Bug target/39179] Wrong code in c++ for const members initialized in external file

ktietz at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat Feb 14 21:25:00 GMT 2009



------- 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    __ZN1K1kE@GOTPCREL(%rip), %rax
        cmpl    $1, (%rax)
...


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39179



More information about the Gcc-bugs mailing list