2013/5/3 Ozkan Sezer <[email protected]>
> On Fri, May 3, 2013 at 3:24 PM, JonY <[email protected]> wrote:
> > On 5/3/2013 20:12, Ozkan Sezer wrote:
> >>>
> >>> You are right. That patch affects gcc's own compilation only. It
> >>> doesn't affects user-code.
> >>> Nevertheless for libstdc++-v3 uses - starting with 4.8 - by default
> >>> POSIX-printf due it relies badly on this behavior internally.
> >>
> >> Even then, it affects libstdc++ compilation itself. IMO, mingw[-w64]
> >> should not default to __USE_MINGW_ANSI_STDIO=1 by itself and leave
> >> the decision to user (which is what we already do at present.)
> >>
> >
> > IIRC it is required if C++11 is used due to the presence of print
> templates.
> >
>
> As I said, if the user is doing c++11, he should as well know that he
> needs __USE_MINGW_ANSI_STDIO=1, so it's a user thing.
>
This is documented *nowhere* and far from obvious nor logical.
But you're right. The "right" fix would be to make libstdc++ use the right
printf only internally, but that is either some long macro defining a
__GLIBCXX_PRINTF to use the MinGW-w64 POSIX version if possible. Although
this would still screw up std::printf, which is probably the one used all
over the place.
In short, this is messy, but as Ozkan said, there is a way it works, which
is better than nothing.
/rant
Ruben
>
> --
> O.S.
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite
> It's a free troubleshooting tool designed for production
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap2
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public