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

2023-09-29 Thread Jonathan Wakely
On Fri, 29 Sept 2023 at 15:07, Jonathan Wakely wrote: > > On Tue, 6 Dec 2016 at 17:59, Jonathan Wakely wrote: > > >Subject: [PATCH 3/3] Enable libstdc++ compilation in AVR targets > > > > > >Enable libstdc++ compilation in AVR targets with AVR-Libc. Most > > >floating point math functions are

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

2023-09-29 Thread Jonathan Wakely
On Tue, 6 Dec 2016 at 17:59, Jonathan Wakely wrote: > >Subject: [PATCH 3/3] Enable libstdc++ compilation in AVR targets > > > >Enable libstdc++ compilation in AVR targets with AVR-Libc. Most > >floating point math functions are already defined in AVR-Libc, so > >defines are in place to avoid

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

2017-01-10 Thread Jonathan Wakely
On 23/12/16 13:18 -0200, Felipe Magno de Almeida wrote: On Fri, Dec 16, 2016 at 10:45 AM, Jonathan Wakely 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

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

2016-12-23 Thread Felipe Magno de Almeida
On Fri, Dec 16, 2016 at 10:45 AM, Jonathan Wakely 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 :-) :) >

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

2016-12-16 Thread Jonathan Wakely
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? 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

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

2016-12-15 Thread Jonathan Wakely
On 14/12/16 18:38 -0300, Felipe Magno de Almeida wrote: Hello Jonathan, Sorry for the delay, I was in mid-vacation. Comments are inline. On Tue, Dec 6, 2016 at 3:45 PM, Jonathan Wakely wrote: On 16/09/16 02:53 -0300, Felipe Magno de Almeida wrote: [snip] I've tried

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

2016-12-14 Thread Felipe Magno de Almeida
Hello Jonathan, Sorry for the delay, I was in mid-vacation. Comments are inline. On Tue, Dec 6, 2016 at 3:45 PM, Jonathan Wakely wrote: > On 16/09/16 02:53 -0300, Felipe Magno de Almeida wrote: >> [snip] >> I've tried both approaches. Templates were causing problems of

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

2016-12-06 Thread Jonathan Wakely
On 16/09/16 02:53 -0300, Felipe Magno de Almeida wrote: On Fri, Sep 16, 2016 at 2:42 AM, Marc Glisse wrote: On Thu, 15 Sep 2016, Felipe Magno de Almeida wrote: + || sizeof(uint32_t) == sizeof(void*) +|| sizeof(uint16_t) == sizeof(void*),

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

2016-12-06 Thread Jonathan Wakely
On 10/11/16 13:51 -0200, Felipe Magno de Almeida wrote: @@ -752,11 +770,13 @@ _GLIBCXX_END_NAMESPACE_LDBL_OR_CXX11 // Seconds. [tm_sec] // [00, 60] in C99 (one leap-second), [00, 61] in C89. #if _GLIBCXX_USE_C99 - __beg = _M_extract_num(__beg,

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

2016-12-06 Thread Jonathan Wakely
On 10/11/16 13:51 -0200, Felipe Magno de Almeida wrote: Subject: [PATCH 1/3] Add #ifdef case for 16 bits in cow-stdexcept.cc Added #ifdef case for when void* is 16 bits so it compiles in AVR target. I've committed this patch. From 7ed4af72fe0bdee1a38c7487955590fb64f76a5d Mon Sep 17 00:00:00

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

2016-12-06 Thread Jonathan Wakely
On 10/11/16 13:51 -0200, Felipe Magno de Almeida wrote: --- a/libstdc++-v3/include/bits/locale_facets_nonio.tcc +++ b/libstdc++-v3/include/bits/locale_facets_nonio.tcc @@ -659,30 +659,38 @@ _GLIBCXX_END_NAMESPACE_LDBL_OR_CXX11 // Abbreviated weekday name [tm_wday]

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

2016-11-11 Thread Jonathan Wakely
On 10/11/16 13:39 -0200, Felipe Magno de Almeida wrote: Hello, Sorry for top-posting, but this is a ping for the attached patch. The patch doesn't seem to have been applied nor refused. So I'm pinging to see if I need to change something? I already have a copyright assignment now. Sorry for

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

2016-11-10 Thread Felipe Magno de Almeida
On Thu, Nov 10, 2016 at 1:39 PM, Felipe Magno de Almeida wrote: > Hello, > > Sorry for top-posting, but this is a ping for the attached patch. > > The patch doesn't seem to have been applied nor refused. So I'm > pinging to see if I need to change something? I already

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

2016-11-10 Thread Felipe Magno de Almeida
Hello, Sorry for top-posting, but this is a ping for the attached patch. The patch doesn't seem to have been applied nor refused. So I'm pinging to see if I need to change something? I already have a copyright assignment now. I'm attaching a updated patch that doesn't conflict in the Changelog

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

2016-09-16 Thread Felipe Magno de Almeida
Hello, Another patch. On Fri, Sep 16, 2016 at 2:53 AM, Felipe Magno de Almeida wrote: > On Fri, Sep 16, 2016 at 2:42 AM, Marc Glisse wrote: >> On Thu, 15 Sep 2016, Felipe Magno de Almeida wrote: >> >> + || sizeof(uint32_t) ==

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

2016-09-15 Thread Felipe Magno de Almeida
On Fri, Sep 16, 2016 at 2:42 AM, Marc Glisse wrote: > On Thu, 15 Sep 2016, Felipe Magno de Almeida wrote: > > + || sizeof(uint32_t) == sizeof(void*) > +|| sizeof(uint16_t) == sizeof(void*), > > Indentation is off? > >> Call _M_extract_*

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

2016-09-15 Thread Marc Glisse
On Thu, 15 Sep 2016, Felipe Magno de Almeida wrote: + || sizeof(uint32_t) == sizeof(void*) +|| sizeof(uint16_t) == sizeof(void*), Indentation is off? Call _M_extract_* functions family through temporary int objects Would it make sense to use a template type

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

2016-09-15 Thread Felipe Magno de Almeida
Hello, I've fixed a few compilation errors with libstdc++v3 with AVR-Libc and was even able to use boost.spirit x3 with small patches to boost as well. Attached is the patch. Please don't hesitate to ask modifications for upstream inclusion. Right now std::cout is not working (and just