Re: [PATCH] Fix dllimport attribute handling (PR c/88568)

2019-01-10 Thread Richard Biener
On Thu, 10 Jan 2019, Jakub Jelinek wrote: > Hi! > > handle_dll_attribute sets DECL_EXTERNAL on node for "dllimport" on > VAR_DECLs, it wants to handle those as if those vars are actually declared > extern. The problem is that it doesn't clear TREE_STATIC on them, which > is what is normally the

[PATCH] Fix dllimport attribute handling (PR c/88568)

2019-01-10 Thread Jakub Jelinek
Hi! handle_dll_attribute sets DECL_EXTERNAL on node for "dllimport" on VAR_DECLs, it wants to handle those as if those vars are actually declared extern. The problem is that it doesn't clear TREE_STATIC on them, which is what is normally the case on VAR_DECLs that are DECL_EXTERNAL and so the C F