I see SF ate my attachment again. As a reminder, warn1.patch is available at http://www.limegreensocks.com/mingw-w64/Home.html.
Other comments inline. dw On 8/8/2016 6:07 AM, Martin Storsjö wrote: > On Mon, 8 Aug 2016, dw wrote: > >> Q3: ARM is giving a bunch of warnings in the form: "dlltool.exe: Syntax error >> in def file .../mingw-w64-crt/libarm32/powerwmiprovider.def:62." I have >> looked at the def file, but I don't understand what I am seeing. How do I >> diagnose/repair this? > FWIW, I don't know about this, but as far as I know, you can't really use > dlltool to produce implibs for ARM (due to lacking binutils etc), you need > to build genlib (which is bundled in mingw-w64) and use --with-genlib > instead. I have never experimented with genlib. Can someone else take a look at this? > Since there are loads of other warnings (as you point out), and other > bigger issues with the ARM port, I haven't paid attention to whether there > are warnings int his part for me yet or not. > >> Q4: As of 3.8.0, clang (the only compiler I know that builds mingw-w64 for >> ARM) doesn't support __declspec(selectany) or __attribute__((gcc_struct)) on >> ARM. Since (essentially) no one is using this yet, can we assume it will get >> fixed before people will start using the library? Or must we code around it? >> Right now I'm doing a bit of both. > It's not about it being supported on ARM, but about clang not supporting > it at all, regardless of architecture. > > I'd suggest doing > > #if defined(__GNUC__) && !defined(__clang__) > > instead of > > #if defined(__GNUC__) && !defined(__arm__) && !defined(_ARM_) > > Then one can later add specific compiler version checks if clang later > starts supporting it (although I doubt it's relevant since it says it's > about a gcc bug workaround). Ok, I have made the change for __attribute__((gcc_struct)). It appears that clang also doesn't support 'selectany' either as a __declspec or an attribute. Given how many places define this, perhaps this change should go in _mingw.h? I'm thinking: #if defined(__arm__) || defined(_ARM_) #define DECLSPEC_SELECTANY #endif ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://sdm.link/zohodev2dev _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public