stdio.h patches for g++ -std=c++11
Corinna Vinschen
vinschen@redhat.com
Fri May 9 14:14:00 GMT 2014
On May 9 12:01, zosrothko wrote:
> Corinna
> Le 09/05/2014 10:43, Corinna Vinschen a écrit :
> >On May 9 07:52, zosrothko wrote:
> >>Hi Corinna
> >>
> >>I made a typo in my previous patch. Here the corrected one.
> >Thanks. Your patches are missing a matching ChangeLog entry, btw.
> >
> >However, on second thought I'm not sure that removing the 'i' variations
> >of the functions from "__cplusplus >= 201103L" in this way is such a
> >good idea.
> >
> >The 'i' functions are a newlib extension for embedded targets.
> >
> >They are not part of any standard, so they are certainly neither part
> >of "__cplusplus >= 201103L", nor part of "__STDC_VERSION__ >= 199901L".
> >
> >So, either we remove these functions from both standards, or we include
> >them in both standards.
> >
> >But if we remove them from both standards when will they be defined at
> >all? This should be cleared up before making this change.
> >
> >Is defining them with only
> >
> > #if !defined(__STRICT_ANSI__)
> >
> >sufficient?
> That won't work because of this
>
> $ g++ -xc++ -std=c++11 -dM -E - < /dev/null | sort | grep ANSI
> #define __STRICT_ANSI__ 1
>
> $ g++ -xc++ -std=gnu++11 -dM -E - < /dev/null | sort | grep ANSI
Are you sure? Your example seems to indicate that
#if !defined(__STRICT_ANSI__)
is ok for the 'i' functions.
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20140509/cbfb05f7/attachment.sig>
More information about the Newlib
mailing list