Lines Matching defs:decl
31 i386_pe_type_dllimport_p (tree decl)
33 gcc_assert (TREE_CODE (decl) == VAR_DECL
34 || TREE_CODE (decl) == FUNCTION_DECL);
36 if (TARGET_NOP_FUN_DLLIMPORT && TREE_CODE (decl) == FUNCTION_DECL)
43 if (TREE_CODE (decl) == FUNCTION_DECL
44 && (DECL_DECLARED_INLINE_P (decl)
45 || DECL_TEMPLATE_INSTANTIATION (decl)
46 || DECL_ARTIFICIAL (decl)))
55 i386_pe_type_dllexport_p (tree decl)
57 gcc_assert (TREE_CODE (decl) == VAR_DECL
58 || TREE_CODE (decl) == FUNCTION_DECL);
63 if (TREE_CODE (TREE_TYPE (decl)) == METHOD_TYPE
64 && DECL_ARTIFICIAL (decl) && !DECL_THUNK_P (decl))
66 if (TREE_CODE (decl) == FUNCTION_DECL
67 && DECL_DECLARED_INLINE_P (decl))
69 if (DECL_REALLY_EXTERN (decl)
76 static inline void maybe_add_dllimport (tree decl)
78 if (i386_pe_type_dllimport_p (decl))
79 DECL_DLLIMPORT_P (decl) = 1;
82 static inline void maybe_add_dllexport (tree decl)
84 if (i386_pe_type_dllexport_p (decl))
86 tree decl_attrs = DECL_ATTRIBUTES (decl);
90 DECL_ATTRIBUTES (decl) = tree_cons (get_identifier ("dllexport"),
143 /* We don't actually add the attribute to the decl, just set the flag