Fix compilation errors with libstdc++v3 for AVR target and allow --enable-libstdcxx

Felipe Magno de Almeida felipe.m.almeida@gmail.com
Fri Dec 23 15:19:00 GMT 2016


On Fri, Dec 16, 2016 at 10:45 AM, Jonathan Wakely <jwakely@redhat.com> wrote:
> On 15/12/16 21:41 -0300, Felipe Magno de Almeida wrote:
>>
>> Good point. Do you want me to update the patch with __men or go your way
>> with the wrapper?

Hello Jonathan,

> I think my wrapper's too ugly :-)

:)

> So please follow the same approach as for tm_mon (pass __mem to the
> function, the copy it to tm_mon if there was no error). That adds a
> write and a branch for every extracted field, which I hope shouldn't
> have too much impact.

Please find it attached.

Changelog is the same:

2016-11-10  Felipe Magno de Almeida <felipe@expertisesolutions.com.br>

   * include/bits/locale_facets_nonio.tcc: Avoid compilation errors
   with non-standard struct tm.

-- 
Felipe Magno de Almeida
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-temporary-int-objects-to-access-struct-tm-member.patch
Type: text/x-diff
Size: 5033 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20161223/da0eb0cd/attachment.bin>


More information about the Libstdc++ mailing list