Hi Adrien, On 02/17/14 21:18, Adrien Nader wrote: > On Wed, Feb 12, 2014, Kai Tietz wrote: >> 2014-02-12 10:58 GMT+01:00 Jacek Caban <ja...@codeweavers.com>: >>> On 02/12/14 08:57, Adrien Nader wrote: >>>> Hi, >>>> >>>> I recently stumbled on an issue where dvec.h gets included from intrin.h >>>> and triggers around 140 different "not declared in this scope" errors. >>>> >>>> Basically, there is an #include <dvec.h> (which is a C++-only header) >>>> near the top of intrin.h and the function declarations for non-SSE2 >>>> bulds come later on (I guess that if SSE2 is used, the compiler already >>>> has declarations for them?). Since dvec.h uses functions which are >>>> declared later on, compilation errors out. >>>> >>>> >>>> Jacek told me over IRC that dvec/fvec/ivec .h probably shouldn't be >>>> included from intrin.h. I've tried remove them and my build issues went >>>> away. >>>> Should that change be commited? Should it also be backported to the >>>> stable branch? >>> IMO we should remove them in trunk, but not stable branch (at least not >>> without a delay). We won't know if we're breaking real world code until >>> we do that. >>> >>> Jacek >> For trunk this change seems to be right. For branches I agree to >> Jacek that we shouldn't do the change. >> >> Kai > Back from my short vacations, patch would be: > > diff --git a/trunk/mingw-w64-headers/crt/intrin.h > b/trunk/mingw-w64-headers/crt/intrin.h > index 6287610..2348e09 100644 > --- a/trunk/mingw-w64-headers/crt/intrin.h > +++ b/trunk/mingw-w64-headers/crt/intrin.h > @@ -147,11 +147,6 @@ extern "C" { > } > #endif > > -#if defined(__cplusplus) > -#include <dvec.h> > -#include <fvec.h> > -#include <ivec.h> > -#endif > #endif > > #define __MACHINEX64 __MACHINE > > I have no idea what the commit message would be however. :P > > Also, I agree that this should only go to trunk, not stable branches > since it changes behaviour. It is however something I will integrate in > win-builds.org.
Thanks for the patch. I believe we may consider it as approved. Do you need me to commit the patch? Thanks, Jacek ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public