------- Comment #5 from t66667 at gmail dot com  2010-08-25 16:11 -------
Hi,
(In reply to comment #4)
> Well.  I do not have access to i686-pc-mingw32-gcc and this seems related to
> 
> /* Return whether OP is a DECL whose address is function-invariant.  */
> 
> bool
> decl_address_invariant_p (const_tree op)
> {
>   /* The conditions below are slightly less strict than the one in
>      staticp.  */
> ...
>     case VAR_DECL:
>       if (((TREE_STATIC (op) || DECL_EXTERNAL (op))
>            && !DECL_DLLIMPORT_P (op))
>           || DECL_THREAD_LOCAL_P (op)
>           || DECL_CONTEXT (op) == current_function_decl
>           || decl_function_context (op) == current_function_decl)
>         return true;
>       break;
> 
> WTF !DECL_DLLIMPORT_P (op)!?  (also noticed by rth recently)
> 
> A fix is to remove that check here, but I can't test that.
> 

Thanks. Indeed, removal of this check here fixed PR45405.
Tested on Windows 7 x64 multi-lib native GCC trunk.


-- 


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

Reply via email to