Hi,

On Wed, Feb 19, 2014, Jacek Caban wrote:
> 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 <[email protected]>:
> >>> 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?
> 

Sorry for the delay, I've commited this as rev 6501 "intrinsics: don't
include {d,f,i}vec.h from inside intrin.h.".

-- 
Adrien Nader

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to